[New-bugs-announce] [issue4394] make the storage of the password optional in .pypirc (using the prompt)

Tarek Ziadé report at bugs.python.org
Sun Nov 23 15:58:32 CET 2008


New submission from Tarek Ziadé <ziade.tarek at gmail.com>:

Right now you HAVE to store a clear text password in .pypirc.

But this should not be necessary since the "register" command does a
getpass.getpass call to get the password from the prompt and use it to
authenticate to pypi.

So what do we miss ? 

We miss a bit of persistency for the upload command to get that password
when register + upload have been called in the same command line, typically:

$ python setup.py register sdist upload

this patch does it, and adds a test for it.

I am wondering though if upload wouldn't be better not to depend on a 
previous call to register (basically by adding a getpass.getpass call
there too), but this can be a second patch.

----------
components: Distutils
files: no_password.patch
keywords: patch
messages: 76268
nosy: tarek
severity: normal
status: open
title: make the storage of the password optional in .pypirc (using the prompt)
type: feature request
versions: Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file12110/no_password.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4394>
_______________________________________


More information about the New-bugs-announce mailing list