I am trying to pack a new project and upload it to the TestPyPI server. Due to the introduction of the new PyPI.org, almost all of the instructions that I found are outdated and are trying to download at https://testpypi.python.org/pypi now returns 401 Gone.
The migration guide to the new PyPI.org says what to use https://test.pypi.org/legacyas a repository for TestPyPI. However, when I paste this URL into my file .pypircand try to download my package, I get the following error:
python setup.py sdist upload -r testpypi
[...]
running upload
Submitting dist/<package_name> to https://test.pypi.org/legacy
Upload failed (404): Not Found
error: Upload failed (404): Not Found
Here is the contents of my file ~/.pypirc:
[distutils]
index-servers =
pypi
testpypi
[pypi]
repository: https://pypi.python.org/pypi
username: your_username
password: your_password
[testpypi]
repository: https://test.pypi.org/legacy
username: pbaranay
password: my_password
source
share