You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The guide says to type in token and enter the api key as the password, however:
typing in token doesn't appear on the command line
the password is not asked for
a 403 is returned, regardless if entering __token__ or the pypi token blindly.
Erroneous output
$ python3 -m twine upload --repository testpypi dist/* --verbose
Uploading distributions to https://test.pypi.org/legacy/
INFO dist/example_package_ekohilas-0.0.1-py3-none-any.whl (2.7 KB)
INFO dist/example_package_ekohilas-0.0.1.tar.gz (2.1 KB)
INFO Querying keyring for password
Enter your API token:
INFO username: __token__
INFO password: <hidden>
Uploading example_package_ekohilas-0.0.1-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 kB • 00:00 • ?
INFO Response from https://test.pypi.org/legacy/:
403 Forbidden
INFO <html>
<head>
<title>403 Invalid or non-existent authentication information. See
https://test.pypi.org/help/#invalid-auth for more information.</title>
</head>
<body>
<h1>403 Invalid or non-existent authentication information. See
https://test.pypi.org/help/#invalid-auth for more information.</h1>
Access was denied to this resource.<br/><br/>
Invalid or non-existent authentication information. See
https://test.pypi.org/help/#invalid-auth for more information.
</body>
</html>
ERROR HTTPError: 403 Forbidden from https://test.pypi.org/legacy/
Forbidden
However uploads work fine when using .pypirc
Please list the steps required to reproduce this behaviour
Is there an existing issue for this?
What keywords did you use to search existing issues?
token
upload
password
What operating system are you using?
Linux
If you selected 'Other', describe your Operating System here
No response
What version of Python are you running?
Python 3.12.0
How did you install twine? Did you use your operating system's package manager or pip or something else?
python3 -m pip install --upgrade twine
What version of twine do you have installed (include the complete output)
Which package repository are you using?
test.pypi.org
Please describe the issue that you are experiencing
Following the guide here: https://packaging.python.org/tutorials/packaging-projects
The guide says to type in token and enter the api key as the password, however:
__token__
or the pypi token blindly.Erroneous output
However uploads work fine when using
.pypirc
Please list the steps required to reproduce this behaviour
python3 -m twine upload --repository testpypi dist/*
Anything else you'd like to mention?
pypa/packaging-problems#841
The text was updated successfully, but these errors were encountered: