/usr/lib/python3.6/site-packages/setuptools/command
NameSizeModeActions
__pycache__/-0755rm
alias.py24260644editdlrm
bdist_egg.py181850644editdlrm
bdist_rpm.py15080644editdlrm
bdist_wininst.py6370644editdlrm
build_clib.py44840644editdlrm
build_ext.py131730644editdlrm
build_py.py95960644editdlrm
develop.py80460644editdlrm
dist_info.py9600644editdlrm
easy_install.py872040644editdlrm
egg_info.py248000644editdlrm
install.py46830644editdlrm
install_egg_info.py22030644editdlrm
install_lib.py38400644editdlrm
install_scripts.py24390644editdlrm
launcher manifest.xml6280644editdlrm
py36compat.py49860644editdlrm
register.py2700644editdlrm
rotate.py21640644editdlrm
saveopts.py6580644editdlrm
sdist.py67110644editdlrm
setopt.py50850644editdlrm
test.py92140644editdlrm
upload.py11720644editdlrm
upload_docs.py73110644editdlrm
__init__.py5940644editdlrm
Edit: /usr/lib/python3.6/site-packages/setuptools/command/upload.py (1172B)
import getpass from distutils.command import upload as orig class upload(orig.upload): """ Override default upload behavior to obtain password in a variety of different ways. """ 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 = ( self.password or self._load_password_from_keyring() or self._prompt_for_password() ) def _load_password_from_keyring(self): """ Attempt to load password from keyring. Suppress Exceptions. """ try: keyring = __import__('keyring') return keyring.get_password(self.repository, self.username) except Exception: pass def _prompt_for_password(self): """ Prompt for a password on the tty. Suppress Exceptions. """ try: return getpass.getpass() except (Exception, KeyboardInterrupt): pass