AlkantarClanX12

Your IP : 3.128.31.227


Current Path : /opt/alt/python311/lib64/python3.11/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/distutils/__pycache__/config.cpython-311.opt-2.pyc

�

c��fW��P�	ddlZddlmZddlZddlmZdZGd�de��ZdS)�N)�RawConfigParser)�CommandzE[distutils]
index-servers =
    pypi

[pypi]
username:%s
password:%s
c�^�eZdZ	dZdZdZdZdddezfdgZdgZd	�Z	d
�Z
d�Zd�Zd
�Z
d�ZdS)�
PyPIRCCommandzhttps://upload.pypi.org/legacy/�pypiNzrepository=�rzurl of repository [default: %s])�
show-responseNz&display full response text from serverr	c�~�	tj�tj�d��d��S)N�~z.pypirc)�os�path�join�
expanduser��selfs �7/opt/alt/python311/lib64/python3.11/distutils/config.py�_get_rc_filezPyPIRCCommand._get_rc_file's+��#��w�|�|�B�G�.�.�s�3�3�Y�?�?�?�c� �	|���}tjtj|tjtjzd��d��5}|�t||fz��ddd��dS#1swxYwYdS)Ni��w)rr�fdopen�open�O_CREAT�O_WRONLY�write�DEFAULT_PYPIRC)r�username�password�rc�fs     r�
_store_pypirczPyPIRCCommand._store_pypirc+s���-�
�
�
�
 �
 ��
�Y�r�w�r�2�:���#;�U�C�C�S�
I�
I�	;�Q�
�G�G�N�h��%9�9�:�:�:�	;�	;�	;�	;�	;�	;�	;�	;�	;�	;�	;�	;����	;�	;�	;�	;�	;�	;s� B�B�
Bc���	|���}tj�|���r�|�d|z��|jp|j}t��}|�|��|�	��}d|vr�|�
dd��}d�|�d��D��}|gkr
d|vrdg}niS|D]�}d|i}|�
|d��|d<d	|jfd
|jfdfD]:\}	}
|�
||	��r|�
||	��||	<�5|
||	<�;|dkr||jdfvr|j|d	<|cS|d|ks|d	|kr|cS��nod|vrkd}|�
|d	��r|�
|d	��}n|j}|�
|d��|�
|d
��|||jd�SiS)NzUsing PyPI login from %s�	distutilsz
index-serversc�f�g|].}|���dk�|�����/S)�)�strip)�.0�servers  r�
<listcomp>z.PyPIRCCommand._read_pypirc.<locals>.<listcomp>>s<��5�5�5�v�%�|�|�~�~��3�3�#�L�L�N�N�3�3�3r�
rr(r�
repository�realm)rNzserver-loginr)rrr+r(r,)rrr
�exists�announcer+�DEFAULT_REPOSITORYr�read�sections�get�split�
DEFAULT_REALM�
has_option)rrr+�configr1�
index_servers�_serversr(�current�key�defaults           r�_read_pypirczPyPIRCCommand._read_pypirc1s���%�
�
�
�
 �
 ��
�7�>�>�"���9	5��M�M�4�r�9�:�:�:���C�D�,C�J�$�&�&�F��K�K��O�O�O����(�(�H��h�&�&� &�
�
�;�� H� H�
�5�5�)�/�/��5�5�5�5�5���r�>�>���)�)�$*�8��� "�	�&�'�'�F�'��0�G�*0�*�*�V�Z�*H�*H�G�J�'�+7�*.�*A�*C�*1�4�3E�)F�);�)=�3�3���W�"�,�,�V�S�9�9�3�+1�:�:�f�c�+B�+B�G�C�L�L�+2�G�C�L�L�
�&�(�(�"�t�'>��&G�G�G�04�0G���-�&������)�Z�7�7���-��;�;�&����<�/'�2 �8�+�+�'���$�$�V�\�:�:�9�!'���F�L�!A�!A�J�J�!%�!8�J�$*�J�J�v�z�$B�$B�$*�J�J�v�z�$B�$B�&0�"(�!%�!3�	5�5�5��	rc�n�	tj��5tjdt��ddl}ddd��n#1swxYwY|�dd��}|�|��d�dd��}|����	|��S)N�ignorerzcontent-typez
text/plain��charset�ascii)
�warnings�catch_warnings�simplefilter�DeprecationWarning�cgi�	getheader�parse_headerr2r0�decode)r�responserF�content_type�encodings     r�_read_pypi_responsez!PyPIRCCommand._read_pypi_responseqs���3�
�
$�
&�
&�	�	��!�(�,>�?�?�?��J�J�J�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	� �)�)�.�,�G�G���#�#�L�1�1�!�4�8�8��G�L�L���}�}���%�%�h�/�/�/s�A�A�Ac�2�	d|_d|_d|_dS)Nr)r+r,�
show_responsers r�initialize_optionsz PyPIRCCommand.initialize_optionszs!��!������
�����rc�X�	|j�|j|_|j�|j|_dSdS)N)r+r/r,r4rs r�finalize_optionszPyPIRCCommand.finalize_options�s5�� ��?�"�"�5�D�O��:���+�D�J�J�J��r)�__name__�
__module__�__qualname__r/r4r+r,�user_options�boolean_optionsrr!r<rMrPrR�rrrrs��������:���M��J��E�
��	*��
�	 �	3�	4�L�'�'�O�@�@�@�;�;�;�>�>�>�@0�0�0����,�,�,�,�,rr)r�configparserrrB�
distutils.cmdrrrrXrr�<module>r[s����

�	�	�	�(�(�(�(�(�(�����!�!�!�!�!�!���o,�o,�o,�o,�o,�G�o,�o,�o,�o,�o,r