Skip to content

Instantly share code, notes, and snippets.

@woctezuma
Last active May 3, 2023 22:40
Show Gist options
  • Save woctezuma/1b7cffc9d0fe122cc67ffa6c5c1e8c4c to your computer and use it in GitHub Desktop.
Save woctezuma/1b7cffc9d0fe122cc67ffa6c5c1e8c4c to your computer and use it in GitHub Desktop.
My PyPI Release How To
pip install bumpversion setuptools wheel twine

bumpversion --current-version 0.4.0 minor setup.py
git add setup.cfg setup.py
git commit -m "Bump version to v0.5.0"

git tag "0.5.0"
git push --tags
git push

python setup.py sdist bdist_wheel
twine upload dist/*
@woctezuma
Copy link
Author

woctezuma commented Jun 25, 2019

Use patch instead of minor to bump from 0.4.0 to 0.4.1 with:

bumpversion --current-version 0.4.0 patch setup.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment