Exercise

We released the distribution to the PyPI test repository as it was just a toy problem. For more serious stuff, you should deploy the package to the PyPI main repository, https://pypi.python.org/pypi. As an exercise, deploy a package on the main PyPI server. The process is similar to what we discussed earlier.

  • Create a new account on the PyPI website. Note that you need to create a separate account; the test PyPI account won't work here.
  • In the .pypirc file, create a new profile to store credentials for the main server. See the following illustration for an inspiration:
    [distutils] index-servers= pypitest pypimain [pypimain] repository = https://pypi.python.org/pypi username=<add PyPI main username> password=<add PyPI main password> [pypitest] ...

Get Learning Python Application Development 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.