Viewing File: /opt/alt/python35/lib64/python3.5/distutils/__pycache__/config.cpython-35.opt-2.pyc



]@sLddlZddlmZddlmZdZGdddeZdS)N)RawConfigParser)CommandzE[distutils]
index-servers =
    pypi

[pypi]
username:%s
password:%s
c@seZdZdZdZdZdZdddefdgZdgZd	d
Z	ddZ
d
dZddZddZ
ddZdS)
PyPIRCCommandzhttps://upload.pypi.org/legacy/pypiNzrepository=rzurl of repository [default: %s]
show-response&display full response text from servercCstjjtjjddS)N~z.pypirc)ospathjoin
expanduser)selfr+/opt/alt/python35/lib64/python3.5/config.py_get_rc_file&szPyPIRCCommand._get_rc_filecCs\|j}tjtj|tjtjBdd}|jt||fWdQRXdS)Niw)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	<xdd
|jfd|jfdfD]A\}
}|j||
r_|j||
|	|
<q(||	|
<q(W|dkr||jdfkr|j|	d
<|	S|	d|ks|	d
|kr|	SqWnd
|krId
}|j|d
r|j|d
}n	|j}d	|j|d	d|j|dd
|d|d|jiSiS)NzUsing PyPI login from %sZ	distutilsz
index-serverscSs.g|]$}|jdkr|jqS))strip).0serverrrr
<listcomp>>s	z.PyPIRCCommand._read_pypirc.<locals>.<listcomp>
rr!r
repositoryrealmrzserver-login)rN)rr
rexistsZannouncer$DEFAULT_REPOSITORYr%
DEFAULT_REALMrreadsectionsgetsplitZ
has_option)rrr$r%configr*Z
index_serversZ_serversr!currentkeydefaultrrr_read_pypirc0sX	
	
	
	
zPyPIRCCommand._read_pypirccCsPddl}|jdd}|j|djdd}|jj|S)Nrzcontent-typez
text/plaincharsetascii)cgiZ	getheaderZparse_headerr+r)decode)rresponser5Zcontent_typeencodingrrr_read_pypi_responseqsz!PyPIRCCommand._read_pypi_responsecCsd|_d|_d|_dS)Nr)r$r%Z
show_response)rrrrinitialize_optionsxs		z PyPIRCCommand.initialize_optionscCs:|jdkr|j|_|jdkr6|j|_dS)N)r$r'r%r()rrrrfinalize_options~szPyPIRCCommand.finalize_options)rNr)__name__
__module____qualname__r'r(r$r%Zuser_optionsZboolean_optionsrrr1r9r:r;rrrrrs 		Ar)r
configparserrZ
distutils.cmdrrrrrrr<module>s

Back to Directory File Manager