summaryrefslogtreecommitdiff
path: root/Lib/distutils/command/upload.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-01-08 23:56:31 +0000
committerTarek Ziadé <ziade.tarek@gmail.com>2009-01-08 23:56:31 +0000
commit1a240fb9f038839f0e6f157ce4c7fcbcbf777ebc (patch)
treef60ab4380cf7de758fda0994eb9c0071e489f041 /Lib/distutils/command/upload.py
parent5b913e31a1cbcea7807fca4cc272079039a3bd67 (diff)
downloadcpython-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.py5
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")