Closed henryiii closed 3 months ago
twine_username
Someone reported that TWINE_USERNAME wasn't working, and we spent around an hour debugging it. Finally came across https://github.com/pypa/twine/blob/94f810c54c8bc9d418a9ed64890ca9fa4ec7b59f/twine/auth.py#L34-L39 - 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:
__token__
-u
Someone ran into this in https://github.com/pypa/twine/issues/1113
Sorry for the confusion this change caused! #1040 was my doing, so I'll take responsibility for improving the behavioral change documentation here.
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 https://github.com/pypa/twine/blob/94f810c54c8bc9d418a9ed64890ca9fa4ec7b59f/twine/auth.py#L34-L39 - 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:
__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 https://github.com/pypa/twine/issues/1113