Skip to content
Steven Christe edited this page Mar 14, 2024 · 2 revisions

Release Process

add a new git tag

git tag vM.m.P

check that the right version string is now being generated

python -m setuptools_scm

push the tags to github

git push origin --tags

delete the contents of the dist directory then build your wheels with

python3 -m build --wheel

check that everything is okay (you may want to run rstcheck on the README.rst) twine check dist/*

check the upload to testpypi with

twine upload --repository testpypi dist/*

If everything looks good you can then upload to actual Pypi with twine upload dist/*

Next create the release on Github.

Uploading to pypi and testpypi assumes that you have api token installed in ~$HOME/.pypirc

Clone this wiki locally