Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to release a new Python package

Nothing novel here, just want these instructions all in one place for my own use.

1.) Ensure everything is pushed to master and is working

2.) Ensure is up to date with latest

3.) Ensure version in is incremented

4.) Tag the repo - e.g., git tag 0.2 && git push origin 0.2

5.) Draft a release with the latest tag and the content from

6.) Create the build - rm -rf build; rm -rf dist; python sdist bdist_wheel

7.) Upload to Pypi using Twine - twine upload dist/*

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