Failing to Upload to test.pypi.org
OS version
Mint 21
Python version
3.10.12
Pip version
23.2.1
Guide link
https://packaging.python.org/tutorials/packaging-projects
Problem description
I successfully managed to upload the tutorial example-package but following the same steps on another project the upload to Test PyPI fails.
The upload makes it to 100% and appears to be complete, but has issued 2 warnings along the way. And looking up the uploaded package [https://test.pypi.org/project/...] I find that it is not found.
The terminal cursor is not returned on upload completion and on pressing Ctrl-C, receive the error stacktrace:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/gmseed/.local/lib/python3.10/site-packages/twine/main.py", line 51, in
Error message
python3 -m twine upload --repository testpypi dist/*
Uploading distributions to https://test.pypi.org/legacy/
Enter your username: __token__
Enter your password:
Uploading quarchpy_j21-1.0-py3-none-any.whl
WARNING Retrying (Retry(total=9, connect=5, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol
(_ssl.c:2426)'))': /legacy/
WARNING Retrying (Retry(total=8, connect=5, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol
(_ssl.c:2426)'))': /legacy/
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 224.1/224.1 MB • 01:40 • 2.3 MB/s
I've now tried this on both Linux Mint 21 and Win10 and get the same. On the sample tutorial example, when that finished it provides a link to the newly uploaded package, but in this case after the "100% complete", there is no link, and rightly so because it doesn't exist. But in itself this is confusing because it states 100% complete, but it's telling lies.
I even opened the Terminal As Administrator on Win10 and got exactly the same response.