fixed #4394 make the storage of the password optional in .pypirc

This commit is contained in:
Tarek Ziadé 2009-01-08 23:56:31 +00:00
parent 5b913e31a1
commit 1a240fb9f0
9 changed files with 172 additions and 75 deletions

View file

@ -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")