Skip to content
Tero Saarni edited this page May 30, 2023 · 5 revisions

Publish release

PyPI homepages

The pypi configuration should be stored in ~/.pypirc.

Upload release to testpypi

git clean -fdx
flit publish --repository testpypi

Packages can be deleted from test.pypi.org but NOT reuploaded with the same version. To delete, go to https://test.pypi.org/manage/projects/, click manage on package and delete. Update package version in src/certy/__init__.py and run rm -r dist.

When happy with the results, set the real version number and upload to pypi:

flit publish

For flit documentation for pyproject.toml see https://flit.pypa.io/en/stable/pyproject_toml.html.

TODO

First, generate an API token for your account or project at https://pypi.org/manage/account/token/. Then, use this token when publishing instead of your username and password. See https://pypi.org/help/#apitoken for help using API tokens to publish.

Clone this wiki locally