September 2018
Intermediate to advanced
606 pages
14h 32m
English
Now that we have the local install tested, we are ready to upload the package to PyPI. But, before we do that, make sure that the metadata in setup.py (such as the name of the project, and the contact and license information) is reasonable, and that the project name is not already taken on PyPI. It is also good practice to first test upload to and download from the PyPI test instance (https://test.pypi.org) before uploading to https://pypi.org.
Before the upload, we need to create a file called .pypirc in the home directory containing (replace yourusername and yourpassword):
[distutils]accountindex-servers= pypi pypitest[pypi]username = yourusernamepassword = yourpassword[pypitest]repository = https://test.pypi.org/legacy/
Read now
Unlock full access