Commit 776bf48a authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #961 from pypa/feature/upload-infer-username

In upload, infer the username using getpass.getuser()
parents 5c80844b d2adf3da
v34.3.0
-------
* #941: In the upload command, if the username is blank,
default to ``getpass.getuser()``.
v34.2.0
-------
......
......@@ -10,6 +10,10 @@ class upload(orig.upload):
def 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
# sign of success.
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