Re@s9ddlZddlmZGdddejZdS)N)uploadc@s:eZdZdZddZddZddZdS) rza Override default upload behavior to obtain password in a variety of different ways. cCsPtjj||jp"tj|_|jpF|jpF|j|_dS)N) origrfinalize_optionsusernamegetpassgetuserpassword_load_password_from_keyring_prompt_for_password)selfr /builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/command/upload.pyr s    zupload.finalize_optionsc Cs?y&td}|j|j|jSWntk r:YnXdS)zM Attempt to load password from keyring. Suppress Exceptions. keyringN) __import__ get_password repositoryr Exception)r rr r r r s   z"upload._load_password_from_keyringc Cs-ytjSWnttfk r(YnXdS)zH Prompt for a password on the tty. Suppress Exceptions. N)rrKeyboardInterrupt)r r r r r #szupload._prompt_for_passwordN)__name__ __module__ __qualname____doc__rr r r r r r rs   r)rdistutils.commandrrr r r r s