diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-01-08 23:56:31 +0000 |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-01-08 23:56:31 +0000 |
commit | 1a240fb9f038839f0e6f157ce4c7fcbcbf777ebc (patch) | |
tree | f60ab4380cf7de758fda0994eb9c0071e489f041 /Lib/distutils/command/upload.py | |
parent | 5b913e31a1cbcea7807fca4cc272079039a3bd67 (diff) | |
download | cpython-git-1a240fb9f038839f0e6f157ce4c7fcbcbf777ebc.tar.gz |
fixed #4394 make the storage of the password optional in .pypirc
Diffstat (limited to 'Lib/distutils/command/upload.py')
-rw-r--r-- | Lib/distutils/command/upload.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/command/upload.py b/Lib/distutils/command/upload.py index 8805d41da0..e30347e507 100644 --- a/Lib/distutils/command/upload.py +++ b/Lib/distutils/command/upload.py @@ -50,6 +50,11 @@ class upload(PyPIRCCommand): self.repository = config['repository'] self.realm = config['realm'] + # getting the password from the distribution + # if previously set by the register command + if not self.password and self.distribution.password: + self.password = self.distribution.password + def run(self): if not self.distribution.dist_files: raise DistutilsOptionError("No dist file created in earlier command") |