Skip to content

Publishing To PyPi

cbefus edited this page Oct 24, 2020 · 1 revision

So that this process is not forgotten.

We have been using Twine to publish to PyPI.

Make Sure you push a new version number in setup.py before publishing (or it will fail)

$ rm -rf dist/ build/
$ pip install twine
$ python setup.py sdist bdist_wheel
$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
username: <pypi test username>
password: <pypi test password>
$ twine upload dist/*

Clone this wiki locally