A sample python package.
$ python setup.py sdist upload -r pypitest
Make sure to put this file in your home folder – its path should be ~/.pypirc. And then from the terminal, run:
$ chmod 600 ~/.pypirc
https://python-packaging.readthedocs.io/en/latest/minimal.html
http://peterdowns.com/posts/first-time-with-pypi.html
https://packaging.python.org/guides/migrating-to-pypi-org/#uploading