CREATE A VIRTUAL ENVIRONMENT
Install the virtualenv package:
$ python -m pip install virtualenv
Go to the folder where you want to create the virtual environment.
Create the virtual environment:
$ python -m virtualenv -p python3 <enviroment-name>
Activate the virtual environment:
$ .\enviroment-folder\Scripts\activate
Install the following packages setuptools and wheel:
$ pip install setuptools wheel
EXPORT PYTHON DEPENDENCIES
$ pip freeze > requirements.txt
IMPORT PYTHON DEPENDENCIES
$ pip install -r requirements.txt
PYPI
Make sure you have installed the following packages:
$ pip install twine setuptools wheel
Create the distributions:
$ python setup.py sdist bdist_wheel
Upload the package to PyPI:
$ twine upload