Skip to content

Uploading to PyPI

Jeff Jennings edited this page Jul 5, 2023 · 2 revisions

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

  1. Update the version (in frank/__init__.py).

  2. If you added new, non-Python files to the project that need to be distributed as well, e.g., configuration files, add them to MANIFEST.in.

    2b. Tag/publish the new version in the github repo (https://github.com/discsim/frank/releases).

  3. Open a terminal and go into the project's root dir (where setup.py is located) python setup.py sdist to create a tar with all the package files.

  4. Check the resulting files, especially the egg file: are all the files contained?

  5. If everything is ok, upload the new version to PyPI: python setup.py sdist upload OR twine upload dist/<.gz for appropriate version> (see https://packaging.python.org/tutorials/packaging-projects/)

From: https://github.com/mtazzari/uvplot/wiki/How-to-upload-a-new-version-to-PyPI

Clone this wiki locally