This document is written for collaborators and describes how to update the package on PyPi. This tutorial as basically aligned with python packaging tutorial.
Be sure you have installed the requirements.txt
and your pip is up to date.
- Update version in setup.py.
- Update release_notes.md.
- Build library.
# Build library
python3 setup.py sdist bdist_wheel
- Upload the new packages to test PyPi
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- Test it with a project.
pip install -i https://test.pypi.org/simple/ hueyx
- If everything is ok, upload the packge to PyPi.
twine upload dist/*