%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python3.8/distutils/__pycache__/
Upload File :
Create Path :
Current File : //usr/local/lib/python3.8/distutils/__pycache__/config.cpython-38.pyc

U

qa@s<dZddlZddlmZddlmZdZGdddeZdS)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@sheZdZdZdZdZdZdZdddefdgZd	gZ	d
dZ
dd
ZddZddZ
ddZddZdS)
PyPIRCCommandz;Base command that knows how to handle the .pypirc file
    zhttps://upload.pypi.org/legacy/pypiNzrepository=rzurl of repository [default: %s])
show-responseNz&display full response text from serverrcCstjtjddS)zReturns rc file path.~z.pypirc)ospathjoin
expanduserselfr,/usr/local/lib/python3.8/distutils/config.py_get_rc_file&szPyPIRCCommand._get_rc_filec	CsH|}tt|tjtjBdd}|t||fW5QRXdS)zCreates a default .pypirc file.iwN)rr	fdopenopenO_CREATO_WRONLYwriteDEFAULT_PYPIRC)rusernamepasswordrcfrrr
_store_pypirc*s zPyPIRCCommand._store_pypirccCs|}tj|r|d||jp.|j}t}|||	}d|krF|
dd}dd|dD}|gkrd|krdg}niS|D]}d|i}|
|d	|d	<d
|jfd|jfdfD].\}	}
|
||	r|
||	||	<q|
||	<q|dkr ||jdfkr |j|d
<|S|d|ks:|d
|kr|SqnRd
|krd
}|
|d
rp|
|d
}n|j}|
|d	|
|d|||jdSiS)zReads the .pypirc file.zUsing PyPI login from %sZ	distutilsz
index-serverscSs g|]}|dkr|qS))strip).0serverrrr
<listcomp>=sz.PyPIRCCommand._read_pypirc.<locals>.<listcomp>
rr!r
repositoryrealm)rNzserver-loginr)rrr$r!r%)rr	r
existsZannouncer$DEFAULT_REPOSITORYrreadsectionsgetsplit
DEFAULT_REALMZ
has_option)rrr$Zconfigr)Z
index_serversZ_serversr!currentkeydefaultrrr_read_pypirc0sb








zPyPIRCCommand._read_pypirccCs8ddl}|dd}||ddd}||S)z%Read and decode a PyPI HTTP response.rNzcontent-typez
text/plaincharsetascii)cgiZ	getheaderZparse_headerr*r(decode)rresponser4Zcontent_typeencodingrrr_read_pypi_responsepsz!PyPIRCCommand._read_pypi_responsecCsd|_d|_d|_dS)zInitialize options.Nr)r$r%Z
show_responser
rrrinitialize_optionswsz PyPIRCCommand.initialize_optionscCs(|jdkr|j|_|jdkr$|j|_dS)zFinalizes options.N)r$r'r%r,r
rrrfinalize_options}s

zPyPIRCCommand.finalize_options)__name__
__module____qualname____doc__r'r,r$r%Zuser_optionsZboolean_optionsrrr0r8r9r:rrrrrs&@r)r>r	configparserrZ
distutils.cmdrrrrrrr<module>s


Zerion Mini Shell 1.0