Thank you for taking the time to report an issue.
To more efficiently resolve this issue, we'd like to know some basic information about your system and setup.
1) Your operating system:
Windows 10
2) Version of python you are running:
python --version
Python 3.6.5 :: Anaconda, Inc.
3) How did you install twine? Did you use your operating system's package manager or pip or something else?
Installed via conda install twine
4) Version of twine you have installed (include complete output of):
twine --version
twine version 1.11.0 (pkginfo: 1.4.2, requests: 2.19.1, setuptools: 40.2.0,
requests-toolbelt: 0.8.0, tqdm: 4.25.0)
5) Which package repository are you targeting?
If you're having issues uploading a specific package, you must include a copy of the following:
PKG-INFO file.pypirc file (REMOVE ALL USERNAMES & PASSWORDS BEFORE UPLOADING)I am trying to upload a package that I've successfully loaded and tested with 'test.pypi.org'. I'm now attempting to go through the same process but now using 'pypi.org' instead of 'test.pypi.org'. This fails with a 404 response:
C:\home\miniconda3\envs\packaging\Scripts>twine.exe upload --repository-url https://pypi.org/legacy/ ........\gitclimate_indices\dist*
Uploading distributions to https://pypi.org/legacy/
Enter your username: monocongo
Enter your password:
Uploading climate_indices-1.0.0-py3-none-any.whl
100%|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 46.6k/46.6k [00:00<00:00, 131kB/s]
HTTPError: 404 Client Error: Not Found for url: https://pypi.org/legacy/
If the issue is predictable and consistently reproducible, please list the steps here.
$ twine.exe upload --repository-url https://pypi.org/legacy/ ........\gitclimate_indices\dist*
Uploading distributions to https://pypi.org/legacy/
Enter your username: monocongo
Enter your password:
Uploading climate_indices-1.0.0-py3-none-any.whl
100%|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 46.6k/46.6k [00:00<00:00, 131kB/s]
HTTPError: 404 Client Error: Not Found for url: https://pypi.org/legacy/
It turns out that I was using the wrong URL, https://pypi.org/legacy/, whereas the correct URL to use for this is https://upload.pypi.org/legacy/. Once I fixed this all went as expected.
Just wanted to note that this information can also be cached in the .pypirc file.
...
repository = https://pypi.org/legacy/
...
Me too, but I fixed it by type "python -m twine upload dict/*"
And, well geat. Its run
Most helpful comment
It turns out that I was using the wrong URL,
https://pypi.org/legacy/, whereas the correct URL to use for this ishttps://upload.pypi.org/legacy/. Once I fixed this all went as expected.