PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  pY@sRdZddlZddlmZddlmZdZGdddeZdS)zdistutils.pypirc Provides the PyPIRCCommand class, the base class for the command classes that uses .pypirc in the distutils.command package. N)RawConfigParser)CommandzE[distutils] index-servers = pypi [pypi] username:%s password:%s c@seZdZdZdZdZdZdZdddefdgZdgZ d d Z d d Z ddZ ddZ ddZddZdS) PyPIRCCommandz;Base command that knows how to handle the .pypirc file zhttps://upload.pypi.org/legacy/pypiNz repository=rzurl of repository [default: %s] show-response&display full response text from servercCstjjtjjddS)zReturns rc file path.~z.pypirc)ospathjoin expanduser)selfr%/opt/python35/lib/python3.5/config.py _get_rc_file&szPyPIRCCommand._get_rc_filec Cs\|j}tjtj|tjtjBdd}|jt||fWdQRXdS)zCreates a default .pypirc file.iwN)rr fdopenopenO_CREATO_WRONLYwriteDEFAULT_PYPIRC)rusernamepasswordrcfrrr _store_pypirc*s .zPyPIRCCommand._store_pypircc CsM|j}tjj|rI|jd||jp>|j}|jpP|j}t }|j ||j }d|kr|j dd}dd|j dD}|gkrd|krdg}niSxo|D]}d|i} |j |d | d >s z.PyPIRCCommand._read_pypirc.. rr!r repositoryrealmrNz server-login)rN)rr r existsZannouncer$DEFAULT_REPOSITORYr% DEFAULT_REALMrreadsectionsgetsplitZ has_option) rrr$r%configr*Z index_serversZ_serversr!currentkeydefaultrrr _read_pypirc0sX                   zPyPIRCCommand._read_pypirccCsPddl}|jdd}|j|djdd}|jj|S)z%Read and decode a PyPI HTTP response.rNz content-typez text/plaincharsetascii)cgiZ getheaderZ parse_headerr+r)decode)rresponser5Z content_typeencodingrrr_read_pypi_responseqs z!PyPIRCCommand._read_pypi_responsecCsd|_d|_d|_dS)zInitialize options.Nr)r$r%Z show_response)rrrrinitialize_optionsxs  z PyPIRCCommand.initialize_optionscCs:|jdkr|j|_|jdkr6|j|_dS)zFinalizes options.N)r$r'r%r()rrrrfinalize_options~s zPyPIRCCommand.finalize_options)rNr)__name__ __module__ __qualname____doc__r'r(r$r%Z user_optionsZboolean_optionsrrr1r9r:r;rrrrrs"      A  r)r?r configparserrZ distutils.cmdrrrrrrrs