Recommend use venv instead of virtualenv
From the Python docs: "Changed in version 3.5: The use of venv is now recommended for creating virtual environments." -https://docs.python.org/3/library/venv.html
This commit is contained in:
parent
c8a87e48ab
commit
2ef3cb2510
|
@ -7,12 +7,12 @@ Good Integration Practices
|
||||||
Install package with pip
|
Install package with pip
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
For development, we recommend to use virtualenv_ environments and pip_
|
For development, we recommend you use venv_ for virtual environments and pip_
|
||||||
for installing your application and any dependencies
|
for installing your application and any dependencies
|
||||||
as well as the ``pytest`` package itself. This ensures your code and
|
as well as the ``pytest`` package itself. This ensures your code and
|
||||||
dependencies are isolated from the system Python installation.
|
dependencies are isolated from the system Python installation.
|
||||||
|
|
||||||
First you need to place a ``setup.py`` file in the root of your package with the following minimum content::
|
Next, place a ``setup.py`` file in the root of your package with the following minimum content::
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue