Commit ed360af8 authored by Jason R. Coombs's avatar Jason R. Coombs

Infer the username using getpass.getuser() if no username is resolved from .pypirc.

parent 90e95f23
...@@ -10,6 +10,10 @@ class upload(orig.upload): ...@@ -10,6 +10,10 @@ class upload(orig.upload):
def finalize_options(self): def finalize_options(self):
orig.upload.finalize_options(self) orig.upload.finalize_options(self)
self.username = (
self.username or
getpass.getuser()
)
# Attempt to obtain password. Short circuit evaluation at the first # Attempt to obtain password. Short circuit evaluation at the first
# sign of success. # sign of success.
self.password = ( self.password = (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment