Skip to content
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

How do I remove the autofilled username when using flit publish? #611

Closed
schuelermine opened this issue Dec 10, 2022 · 2 comments
Closed

Comments

@schuelermine
Copy link

schuelermine commented Dec 10, 2022

I’ve published my first package using Flit. When I did that, I got a message from PyPI informing me that non-API-token-based uploads will, in the future, no longer be supported for 2FA-enabled accounts. I would therefore like to upload my project using the __token__ username instead, but ever since I entered my username the first time, flit autofills it, and I can’t see how to get rid of that.

@takluyver
Copy link
Member

Flit is missing a bit of UI to manage credentials at the moment - see also #113. The username should be written into a file ~/.pypirc - you can edit it out of that, or just delete the whole file if there's nothing else of interest there.

I also want to have a better workflow for automatically creating and storing specific tokens rather than storing your password, but this needs some changes in Warehouse (PyPI server code) - pypi/warehouse#6396 and pypi/warehouse#6378 .

@schuelermine
Copy link
Author

Thanks, I found the file! I’d previously tried searching my ~ for anything named “flit” but had no luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants