From 1a240fb9f038839f0e6f157ce4c7fcbcbf777ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarek=20Ziad=C3=A9?= Date: Thu, 8 Jan 2009 23:56:31 +0000 Subject: fixed #4394 make the storage of the password optional in .pypirc --- Lib/distutils/command/upload.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lib/distutils/command/upload.py') 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") -- cgit v1.2.1