Reader small image

You're reading from  Learning Python Application Development

Product typeBook
Published inSep 2016
Reading LevelIntermediate
PublisherPackt
ISBN-139781785889196
Edition1st Edition
Languages
Right arrow
Author (1)
Ninad Sathaye
Ninad Sathaye
author image
Ninad Sathaye

Ninad Sathaye has spent several years of his professional career designing and developing performance-critical engineering applications written in a variety of languages, including Python and C++. He has worked as a software architect in the semiconductor industry, and more recently in the domain of Internet of Things. He holds a master's degree in mechanical engineering.
Read more about Ninad Sathaye

Right arrow

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] 
    repository = https://testpypi.python.org/pypi 
    username=<add username>
    password=<add password>
  • Appropriately, update the url field in setup.py.

  • Follow the other steps in package creation and release. Remember to specify...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Python Application Development
Published in: Sep 2016Publisher: PacktISBN-13: 9781785889196

Author (1)

author image
Ninad Sathaye

Ninad Sathaye has spent several years of his professional career designing and developing performance-critical engineering applications written in a variety of languages, including Python and C++. He has worked as a software architect in the semiconductor industry, and more recently in the domain of Internet of Things. He holds a master's degree in mechanical engineering.
Read more about Ninad Sathaye