For pip/venv:
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
(For newer systems python3 may be referred to as python)
For Anaconda:
conda create --name env pip
conda activate pip
pip install -r requirements.txt
python setup.py develop
Once finished working, run:
python setup.py develop --uninstall
See Python Packaging User Guide for more info.
Run:
tox
This will package the project, install and run tests.
Run:
pycodestyle
Checking the current version:
python setup.py version
Marking new release:
git tag deepracer-utils-<version>
git push origin deepracer-utils-<version>
The version number should conform with PEP 440.
Example: <version>
can be 0.25
for a release version or 0.25b1
for the first beta of 0.25.
Building the package:
rm dist/*
python setup.py sdist bdist_wheel
Uploading to test.pypi.org:
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Uploading to pypi.org:
python -m twine upload dist/*