HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/setuptools/_distutils/__pycache__/config.cpython-37.pyc
B

N��g/�@s<dZddlZddlmZddlmZdZGdd�de�ZdS)	z�distutils.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
d�Z
dd
�Zdd�Zdd�Z
dd�Zdd�ZdS)�
PyPIRCCommandz6Base command that knows how to handle the .pypirc filezhttps://upload.pypi.org/legacy/�pypiNzrepository=�rzurl of repository [default: %s])z
show-responseNz&display full response text from serverz
show-responsecCstj�tj�d�d�S)zReturns rc file path.�~z.pypirc)�os�path�join�
expanduser)�self�r�@/tmp/pip-unpacked-wheel-yrlplx0q/setuptools/_distutils/config.py�_get_rc_file%szPyPIRCCommand._get_rc_filec	CsH|��}t�t�|tjtjBd�d��}|�t||f�WdQRXdS)zCreates a default .pypirc file.i��wN)rr	�fdopen�open�O_CREAT�O_WRONLY�write�DEFAULT_PYPIRC)r
�username�password�rc�frrr�
_store_pypirc)s zPyPIRCCommand._store_pypirccCs�|��}tj�|��r�|�d|�|jp.|j}t�}|�|�|�	�}d|k�rF|�
dd�}dd�|�d�D�}|gkr�d|kr�dg}niSx�|D]�}d|i}|�
|d	�|d	<xHd
|jfd|jfdfD].\}	}
|�
||	�r�|�
||	�||	<q�|
||	<q�W|dk�r"||jdfk�r"|j|d
<|S|d|k�s<|d
|kr�|Sq�WnRd
|k�r�d
}|�
|d
��rp|�
|d
�}n|j}|�
|d	�|�
|d�|||jd�SiS)zReads the .pypirc file.zUsing PyPI login from %s�	distutilsz
index-serverscSs g|]}|��dkr|���qS)�)�strip)�.0�serverrrr�
<listcomp>=sz.PyPIRCCommand._read_pypirc.<locals>.<listcomp>�
rr!r�
repository�realm)rNzserver-loginr)rrr$r!r%)rr	r
�exists�announcer$�DEFAULT_REPOSITORYr�read�sections�get�split�
DEFAULT_REALM�
has_option)r
rr$�configr*�
index_servers�_serversr!�current�key�defaultrrr�_read_pypirc/sX









zPyPIRCCommand._read_pypirccCs8ddl}|�dd�}|�|�d�dd�}|���|�S)z%Read and decode a PyPI HTTP response.rNzcontent-typez
text/plainr�charset�ascii)�cgi�	getheader�parse_headerr+r)�decode)r
�responser8�content_type�encodingrrr�_read_pypi_responsexsz!PyPIRCCommand._read_pypi_responsecCsd|_d|_d|_dS)zInitialize options.Nr)r$r%�
show_response)r
rrr�initialize_options�sz PyPIRCCommand.initialize_optionscCs(|jdkr|j|_|jdkr$|j|_dS)zFinalizes options.N)r$r(r%r-)r
rrr�finalize_options�s

zPyPIRCCommand.finalize_options)�__name__�
__module__�__qualname__�__doc__r(r-r$r%�user_options�boolean_optionsrrr5r?rArBrrrrrsIr)rFr	�configparserr�cmdrrrrrrr�<module>s