Skip to content

PyPI How to upload a new version

Felix Hamborg edited this page May 26, 2025 · 8 revisions

The following steps need to be performed if you want to publish a new version to PyPI.

You need to have pythons build and twine package installed. (python3 -m pip install --upgrade build twine) The following steps need to be performed if you want to publish a new version to PyPI.

In the root-directory of the repository:

Open setup.py and change the version, e.g. version = 1.0.3

python -m build
python -m twine upload dist/*
find dist -mindepth 1 -delete
find news_please.egg-info -mindepth 1 -delete

Clone this wiki locally