PyPI package signing and upload with twine

Posted on April 28, 2015
python, gpg

1) Install wheel and twine

sudo pip install twine
sudo pip install wheel

(Or use your distribution’s packages)

2) Make a and a .pypirc

Not covered here

3) Remove old package and make a new distributable

rm dist/*
python sdist bdist_wheel

4) Sign and upload

twine upload -s dist/*