Upload to pypi

To upload a Python package to pypi.org, you'd first need to register:

https://pypi.org/account/register/

Then create a .pypirc file in your home-directory. Make sure it's chmodded 600 and has the following content:

[pypi]
username = <your pypi username>
password = <your pypi password>

To securely upload your package, install twine:

$ pip install twine

To create a distribution of your package:

$ python setup.py sdist

To upload your package:

$ twine upload dist/*