Skip to content

Publishing to Pypi

cbefus edited this page Feb 4, 2022 · 6 revisions

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 pyproject.toml before publishing (or it will fail)

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

Poetry publish looks nice but I cant see how to first publish to test.pypi

Clone this wiki locally