Wiki

Clone wiki

agalma / Releasing through PyPI

Releasing through PyPI

Configure ~/.pypirc

#!python
[distutils]
index-servers =
    pypi
    test

[pypi]
repository = https://pypi.python.org/pypi
username = <username>
password = <password>

[test]
repository = https://testpypi.python.org/pypi
username = <username>
password = <password>

Upload to testpypi

python setup.py sdist upload -r test

Test installation from testpypi

sudo pip install -i https://testpypi.python.org/pypi agalma

or

pip install -i https://testpypi.python.org/pypi agalma

Upload to pypi

Once all testing is done and the release has been made, upload the source tarball to the real pypi site with:

python setup.py sdist upload -r pypi

Then also upload the tarball to the Bitbucket download page.

Updated