Verify (in repo):
- setup.py has been updated
- CHANGELOG has been updated
(env)classy:bootstrap-cfn filippos$ cat ~/.pypirc
[distutils]
index-servers=pypi
[pypi]
repository = https://pypi.python.org/pypi
username = ministryofjustice
password = somepasswordhere
..
create virtualenv and install twine
pip install twine
(env)classy:bootstrap-cfn filippos$ rm -rf dist ; python setup.py sdist --formats=gztar
running sdist
running egg_info
writing requirements to bootstrap_cfn.egg-info/requires.txt
writing bootstrap_cfn.egg-info/PKG-INFO
writing top-level names to bootstrap_cfn.egg-info/top_level.txt
writing dependency_links to bootstrap_cfn.egg-info/dependency_links.txt
reading manifest file 'bootstrap_cfn.egg-info/SOURCES.txt'
writing manifest file 'bootstrap_cfn.egg-info/SOURCES.txt'
running check
creating bootstrap_cfn-0.5.11
creating bootstrap_cfn-0.5.11/bootstrap_cfn
creating bootstrap_cfn-0.5.11/bootstrap_cfn.egg-info
(env)classy:bootstrap-cfn filippos$ twine upload dist/*
Uploading distributions to https://pypi.python.org/pypi
Uploading bootstrap_cfn-0.5.11.tar.gz
/Users/filippos/moj/env/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:100: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
(env)classy:bootstrap-cfn filippos$