John Costa's Blog

Software Engineer, Cyclist, and Video Gamer.

My Notes on Uploading a Package PyPI

These are my notes for uploading to Pypi. Additionally, I’ve included some useful links that provide a lot of background.

http://diveintopython3.ep.io/packaging.html

http://wiki.python.org/moin/CheeseShopTutorial

http://packages.python.org/an_example_pypi_project/setuptools.html

  1. Register at PyPI

    You can do so here: Register at PyPI

  2. create a .pypirc file in your home directory

        vi .pypirc
    
        [distutils]
        index-servers = pypi
    
        [pypi]
        username: < username >
        password: < password >
        
  3. upload your package to PyPI

        cd  < package root >
        python setup.py register sdist upload
        

Comments