Failed to upload packages to PyPI: 410 Gone

Upgrade to the very latest pip and setuptools; install twine:

pip install -U pip setuptools twine

Edit ~/.pypirc and comment out or remove repository:

[pypi]
#repository:https://pypi.python.org/pypi

Use twine to upload your module to pypi from within the folder containing the module source, setup.py, and other files:

python setup.py sdist
twine upload dist/*

See https://packaging.python.org/guides/migrating-to-pypi-org/#uploading

Leave a Comment