-
Notifications
You must be signed in to change notification settings - Fork 995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
warehouse: Friendlier token "username", prefix #6342
warehouse: Friendlier token "username", prefix #6342
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't $
as a username prefix going to cause headaches for some shells?
Aside from that I'd just like to see us file an issue preemptively of merge and reference it for removal of backward compatibility for beta "grammar" of these.
Yeah, hadn't thought of that. I'll change it to
👍 |
Alright, opened #6345 to track removal. |
Caret (^) is an escape character in Windows batch scripts. https://stackoverflow.com/questions/20342828/what-does-symbol-mean-in-batch-script Is there a reason that we aren't using the "token" username here? |
😞 Maybe
I listed some reasons in this comment: #6345 (comment) |
I had a look at the regex used in warehouse for validating usernames and came up with some potentially nicer options:
and my personal favorite, because |
FYI, |
I like |
d2c46d5
to
0847378
Compare
pypi API token is currently beta feature, since pypi/warehouse#6342 pypi "token user" has changed to "__token__".
Just made the change, and |
Changes the token username to
__token__
and the prefix topypi-
.Preserves the original
@token
username andpypi:
token prefix for backwards compatibility during the beta.Closes #6287.