����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
python311
/
lib64
/
python3.11
/
distutils
/
__pycache__
/
Filename :
config.cpython-311.opt-1.pyc
back
Copy
� ����!A?hW�����������������������R�����d�Z�ddlZddlmZ�ddlZddlmZ�dZ�G�d��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��������������������`�����e�Zd�ZdZdZdZdZdZdddez��fdgZd gZ d ��Z d��Zd��Zd ��Z d��Zd��ZdS�)� 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 serverr ���c������������������|�����t�����������j�����������������������������t�����������j�����������������������������d������������d������������S�)zReturns rc file path.�~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����������������������|�������������������������������������}t����������j��������t����������j��������|t����������j��������t����������j��������z��d������������d������������5�}|���������������������t����������||fz���������������ddd�������������dS�#�1�swxY�w�Y���dS�)zCreates a default .pypirc file.i����wN)r���r����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�����������������������|�������������������������������������}t����������j�����������������������������|�������������r�|����������������������d|z���������������|�j��������p|�j��������}t������������������������}|���������������������|�������������|� ����������������������������������}d|v�r�|� ��������������������dd������������}d��|���������������������d������������D���������������}|g�k����r d|v�rdg}ni�S�|D�]�}d|i}|� ��������������������|d������������|d<���d |�j��������fd |�j��������fdfD�]:\��} } |� ��������������������|| ������������r|� ��������������������|| ������������|| <����5| || <����;|dk����r||�j��������dfv�r|�j��������|d <���|c�S�|d���������|k����s|d ���������|k����r|c�S���nod|v�rkd}|� ��������������������|d ������������r|� ��������������������|d ������������}n|�j��������}|� ��������������������|d������������|� ��������������������|d ������������|||�j��������d�S�i�S�)zReads the .pypirc file.zUsing PyPI login from %s� distutilsz index-serversc������������������f�����g�|�].}|������������������������������������d�k�����|��������������������������������������/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���� r���r(���r���� repository�realm)r���Nzserver-loginr���)r���r���r+���r(���r,���)r���r���r ����exists�announcer+����DEFAULT_REPOSITORYr����read�sections�get�split� DEFAULT_REALM� has_option)r���r���r+����configr1���� index_servers�_serversr(����current�key�defaults��� r����_read_pypirczPyPIRCCommand._read_pypirc1���s������ � � � � �� �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��� r���c������������������l����t����������j����������������������5��t����������j��������dt�����������������������ddl}ddd�������������n#�1�swxY�w�Y���|���������������������dd������������}|���������������������|������������d������������������������������dd������������}|������������������������������������ ��������������������|������������S�) z%Read and decode a PyPI HTTP response.�ignorer���Nzcontent-typez text/plain�����charset�ascii) �warnings�catch_warnings�simplefilter�DeprecationWarning�cgi� getheader�parse_headerr2���r0����decode)r����responserF����content_type�encodings��� r����_read_pypi_responsez!PyPIRCCommand._read_pypi_responseq���s������� � $� &� &�� �� ��!�(�,>�?�?�?��J�J�J� �� �� �� �� �� �� �� �� �� �� ����� �� �� �� �� �)�)�.�,�G�G���#�#�L�1�1�!�4�8�8��G�L�L���}�}���%�%�h�/�/�/s����?�A�Ac������������������0�����d|�_���������d|�_��������d|�_��������dS�)zInitialize options.Nr���)r+���r,���� show_responser���s��� r����initialize_optionsz PyPIRCCommand.initialize_optionsz���s����������� �����r���c������������������V�����|�j����������|�j��������|�_���������|�j���������|�j��������|�_��������dS�dS�)zFinalizes options.N)r+���r/���r,���r4���r���s��� r����finalize_optionszPyPIRCCommand.finalize_options����s2�������?�"�"�5�D�O��:���+�D�J�J�J���r���)�__name__� __module__�__qualname__�__doc__r/���r4���r+���r,����user_options�boolean_optionsr���r!���r<���rM���rP���rR�����r���r���r���r������s������������������:���M��J��E�� �� *�� � � 3� 4�L��'�'�O�@��@��@�;��;��;�>��>��>�@0��0��0������,��,��,��,��,r���r���) rV���r����configparserr���rB���� distutils.cmdr���r���r���rY���r���r����<module>r\������s��������� � � � � ��(��(��(��(��(��(�������!��!��!��!��!��!���o,��o,��o,��o,��o,�G��o,��o,��o,��o,��o,r���