mirror of
https://github.com/python/cpython.git
synced 2025-08-11 20:40:27 +00:00
fixed #4394 make the storage of the password optional in .pypirc
This commit is contained in:
parent
5b913e31a1
commit
1a240fb9f0
9 changed files with 172 additions and 75 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue