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/*
Last active
May 3, 2023 22:40
-
-
Save woctezuma/1b7cffc9d0fe122cc67ffa6c5c1e8c4c to your computer and use it in GitHub Desktop.
My PyPI Release How To
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
patch
instead ofminor
to bump from0.4.0
to0.4.1
with:bumpversion --current-version 0.4.0 patch setup.py