Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 820 Bytes

maintenance.md

File metadata and controls

26 lines (21 loc) · 820 Bytes

PyPi upload

Package a Python Package/ version bump See: https://packaging.python.org/tutorials/packaging-projects/

  1. Update setup.py to new version number
  2. Commit this change
  3. Tag and upload

Install dependencies:

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/*