Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 773 Bytes

maintenance.md

File metadata and controls

30 lines (24 loc) · 773 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.

rm -rf build/ dist/ lazy_dataset.egg-info/
git pull
bump2version --verbose --tag patch  # major, minor or patch
python setup.py sdist bdist_wheel
twine upload --repository testpypi dist/*
git push origin --tags
git push
twine upload dist/*