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
# As of 2024-01-01, PyPI requires API tokens for uploads, meaning
# that the username is invariant.
return"__token__"
- I should have remembered this, but https://blog.pypi.org/posts/2024-01-01-2fa-enforced/ was too far down on the page and there's no mention of this in the twine 5.0 changelog (other than a link to #1040, which still isn't clear in the title)
I think this could be improved, a few ideas:
Expand the details of this in the changelog entry for 5.0.0
Check to see if a username other than __token__ is set in this PyPI/TestPyPI branch, and issue a warning about requesting a username.
Is there an existing issue for this?
What keywords did you use to search existing issues?
twine_username
Please describe why your using this option
Someone reported that TWINE_USERNAME wasn't working, and we spent around an hour debugging it. Finally came across
twine/twine/auth.py
Lines 34 to 39 in 94f810c
I think this could be improved, a few ideas:
__token__
is set in this PyPI/TestPyPI branch, and issue a warning about requesting a username.-u
.Anything else you'd like to mention?
Someone ran into this in #1113
The text was updated successfully, but these errors were encountered: