Distribute Python Packages

First attempt on distributing a Python package.

# Run outside virtualenv (deactivate if virtualenv is active)
python -m pip install setuptools wheel twine

Get the PyPA sample project: https://github.com/pypa/sampleproject

Create a source distribution: python setup.py sdist

Update config.py:

Create a PyPI account

Create a .pypirc file in the home folder (if you can live with having the password i cleartext in the home folder).

Upload the build: twine upload dist/*