There is more

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/

Get CMake Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.