Config file for ~/.pypirc
[pypi]
username: theusername
password: theusernamepassword
Packages:
- twine
git checkout <TAG>
python3 setup.py sdist
gpg --detach-sign -a dist/*
twine upload dist/*
rm -Rf dist *.egg-info
It's possible to remove/delete a released version but is impossible to upload it with changes, in reality once the package is removed it will not allow you to upload another one despite of seem like is doing it. The source dist package or tarball is located in this location and likely it will be missing if that's removed: https://pypi.python.org/simple/package-name