OwlCyberSecurity - MANAGER
Edit File: config.cpython-312.pyc
� ����t��e/�����������������������B�����d�Z�ddlZddlmZ�ddlmZ�dZ�G�d��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��������������������^�����e�Zd�ZdZdZdZdZdZdddez��fdgZd gZ d ��Z d��Zd��Zd ��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������������������|�����t���������j������������������j������������������t���������j������������������j������������������d�������d�������S�)zReturns rc file path.�~z.pypirc)�os�path�join� expanduser��selfs��� ��/builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/_distutils/config.py�_get_rc_filezPyPIRCCommand._get_rc_file%���s&�������w�w�|�|�B�G�G�.�.�s�3�Y�?�?�����c����������������������|�j��������������������������}t��������j������������������t��������j������������������|t��������j������������������t��������j ������������������z��d�������d�������5�}|j ������������������t��������||fz����������ddd��������y#�1�sw�Y���yxY�w)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)���se������ � � � �� �Y�Y�r�w�w�r�2�:�:����#;�U�C�S� I�� ;�Q� �G�G�N�h��%9�9�:� ;�� ;�� ;�s����A?�?Bc����������������������|�j��������������������������}t��������j������������������j������������������|��������r�|�j ������������������d|z����������|�j ������������������xs�|�j������������������}t����������������}|j������������������|��������|j��������������������������}d|v��r|j������������������dd�������}|j������������������d�������D��cg�c]%��}|j��������������������������dk7��r|j����������������������������'�}}|g�k(��r d|v�rdg}ni�S�|D�]���}d|i}|j������������������|d�������|d<���d |�j������������������fd |�j������������������fdfD�]2��\��} } |j������������������|| �������r|j������������������|| �������|| <����.| || <����4�|dk(��r#||�j������������������dfv�r|�j������������������|d <���|c�S�|d���|k(��s |d ���|k(��s��|c�S��i�S�d|v�red}|j������������������|d �������r|j������������������|d �������}n|�j������������������}|j������������������|d�������|j������������������|d �������|||�j������������������d�S�i�S�c�c}w�)zReads the .pypirc file.zUsing PyPI login from %s� distutilsz index-servers� ��r����serverr���� repository�realm)r���Nzserver-loginr���)r���r���r(���r'���r)���)r���r ���r����exists�announcer(����DEFAULT_REPOSITORYr����read�sections�get�split�strip� DEFAULT_REALM� has_option)r���r ���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�}|j������������������dd�������}|j������������������|�������d���j������������������dd�������}|j ��������������������������j������������������|�������S�)z%Read and decode a PyPI HTTP response.r���Nzcontent-typez text/plainr����charset�ascii)�cgi� getheader�parse_headerr/���r-����decode)r����responser>����content_type�encodings��� r����_read_pypi_responsez!PyPIRCCommand._read_pypi_responsex���sP��������)�)�.�,�G���#�#�L�1�!�4�8�8��G�L���}�}��%�%�h�/�/r���c������������������.�����d|�_���������d|�_��������d|�_��������y)zInitialize options.Nr���)r(���r)���� show_responser���s��� r����initialize_optionsz PyPIRCCommand.initialize_options����s����������� ���r���c������������������z�����|�j��������������������|�j������������������|�_���������|�j�������������������|�j������������������|�_��������yy)zFinalizes options.N)r(���r,���r)���r2���r���s��� r����finalize_optionszPyPIRCCommand.finalize_options����s5�������?�?�"�"�5�5�D�O��:�:���+�+�D�J��r���)�__name__� __module__�__qualname__�__doc__r,���r2���r(���r)����user_options�boolean_optionsr���r"���r:���rE���rH���rJ�����r���r���r���r������sb������@�:���M��J��E�� ��>�AS�S�T�I��L� �'�'�O�@�;�G�R0��,r���r���)rN���r ����configparserr����cmdr���r���r���rQ���r���r����<module>rT������s*������ � ��(�����u,�G��u,r���