Package a Python Package/ version bump See: https://packaging.python.org/tutorials/packaging-projects/
- Update
setup.py
to new version number - Commit this change
- Tag and upload
pip install --upgrade setuptools
pip install --upgrade wheel
pip install --upgrade twine
# pip install --upgrade bleach html5lib # some versions do not work
pip install --upgrade bump2version
bump2version
takes care to increase the version number, create the commit and tag.
bump2version --verbose --tag patch # major, minor or patch
python setup.py sdist # bdist_wheel # Wheel does not work with git links in extras_require. sdist just ignores it.
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
git push origin --tags
twine upload dist/*