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

Allow pypi password to be specified on the console #208

Open
ccmaymay opened this issue Jan 29, 2017 · 3 comments
Open

Allow pypi password to be specified on the console #208

ccmaymay opened this issue Jan 29, 2017 · 3 comments

Comments

@ccmaymay
Copy link

Some people don't like to save passwords in cleartext on disk. If a password is not specified in .pypirc could it be read and passed on from the console, e.g., using getpass?

@reinout
Copy link
Collaborator

reinout commented Feb 6, 2017

I don't know, actually. We use "twine" for the actual upload. Twine apparently supports keychain and prompt:

https://github.com/pypa/twine/blob/3efd3b5d2715f537096b95cb2e6853e02990b059/twine/utils.py

Could be worth a try. I don't know if it works if twine starts prompting (as in: do we capture the prompt or does it 'just work'). If twine works OK, it might still be that we need to disable a check we do on the .pypirc ourselves.

@ccmaymay
Copy link
Author

ccmaymay commented Feb 7, 2017

With no password set in .pypirc I get the following during a release:

Upload to pypi (Y/n)? Y
Uploading concrete-4.12.8.dev0.tar.gz
[================================] 200134/200134 - 00:00:00
Response status code: 401
Reason: You must be identified to edit package information
There were errors or warnings.
ERROR: Package upload has failed.
None
Retry this command? [Yes/no/quit/?]

(There is no prompt for a password.)

@brainwane
Copy link

keyring support might be the way to go here.

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

3 participants