-
Notifications
You must be signed in to change notification settings - Fork 5
Uploading to PyPI
The following steps need to be performed if you want to publish a new version to PyPI.
-
Update the version (in
frank/__init__.py
). -
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).
-
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. -
Check the resulting files, especially the egg file: are all the files contained?
-
If everything is ok, upload the new version to PyPI:
python setup.py sdist upload
ORtwine 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