OwlCyberSecurity - MANAGER
Edit File: index_command.cpython-311.pyc
� �������h-���������������������������d�Z�ddlZddlZddlZddlmZ�ddlmZmZm Z �ddl mZ�ddlm Z �ddlmZ�erddlmZ�dd lmZ��ej��������e������������Zd e d���������fd�Z�G�d ��de������������Zddded dfd�Z�G�d��de e������������ZdS�)a&�� Contains command classes which may interact with an index / the network. Unlike its sister module, req_command, this module still uses lazy imports so commands which don't always hit the network (e.g. list w/o --outdated or --uptodate) don't need waste time importing PipSession and friends. �����N)�Values)� TYPE_CHECKING�List�Optional)�certifi)�Command)�CommandContextMixIn)� SSLContext�� PipSession�returnr ���c�����������������������t�����������j��������dk�����rt�������������������������������d�������������d�S� �dd�l}�n+#�t ����������$�r�t�������������������������������d�������������Y�d�S�w�xY�w �ddlm}�n+#�t ����������$�r�t�������������������������������d�������������Y�d�S�w�xY�w|� ��������������������|�j ��������������������}|���������������������t����������j �����������������������������������|S�)N)����� ���z7Disabling truststore because Python version isn't 3.10+r���z1Disabling truststore since ssl support is missing)� truststorez5Disabling truststore because platform isn't supported)�sys�version_info�logger�debug�ssl�ImportError�warning�pip._vendorr���r ����PROTOCOL_TLS_CLIENT�load_verify_locationsr����where)r���r����ctxs��� �/builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/cli/index_command.py�_create_truststore_ssl_contextr������s������� ��'�!�!����N�O�O�O��t��� � � � ������������J�K�K�K��t�t������*�*�*�*�*�*�*������������N�O�O�O��t�t������� � �� 7� 8� 8�C����g�m�o�o�.�.�.��Js!����3��$A�A�A&��&$B� Bc������������ ���������������e�Zd�ZdZd��fd�Zededeee ������������������fd���������������Z deddfd�Z � �d ded ee���������d ee���������ddfd�Z ��xZS�)�SessionCommandMixinzE A class mixin for command classes needing _build_session(). r ���Nc������������������V������t������������������������������������������������������������d�|�_��������d�S�)N)�super�__init__�_session)�self� __class__s��� �r���r$���zSessionCommandMixin.__init__7���s$������� ��������.2�� � � ������optionsc������������������������g�}t����������|dd������������s(t����������|dd������������}|r|���������������������|�������������t����������|dd������������}|r|���������������������|�������������|pdS�)z7Return a list of index urls from user-provided options.�no_indexF� index_urlN�extra_index_urls)�getattr�append�extend)�clsr)���� index_urls�url�urlss��� r����_get_index_urlsz#SessionCommandMixin._get_index_urls;���s��������� ��w� �E�2�2�� '��'�;��5�5�C��� '��!�!�#�&�&�&��w� 2�D�9�9���� $����d�#�#�#��!�T�!r(���r���c�����������������������|�j����������6|����������������������|����������������������|������������������������|�_���������|�j����������J��|�j���������S�)zGet a default-managed session.)r%���� enter_context�_build_session)r&���r)���s��� r����get_default_sessionz'SessionCommandMixin.get_default_sessionI���sE�������=� � �.�.�t�/B�/B�7�/K�/K�L�L�D�M���=�,�,�,��}�r(����retries�timeoutc������������������`����ddl�m}�|j��������}|r!t����������j�����������������������������|������������sJ��d|j��������vrt������������������������}nd�}�||r t����������j�����������������������������|d������������nd�|�|n|j ��������|j ��������|����������������������|������������|�������������}|j��������r|j��������|_ ��������|j��������r|j��������|_��������|j��������s|r|�|n|j��������|_��������|j��������r'|j��������|j��������d�|_��������d|_��������|j��������|_��������|j���������|j��������_��������|j��������|j��������_��������|S�)Nr���r���zlegacy-certszhttp-v2)�cacher:���� trusted_hostsr2����ssl_context)�http�httpsF)�pip._internal.network.sessionr���� cache_dir�os�path�isabs�deprecated_features_enabledr����joinr:���r>���r5����cert�verify�client_certr;����proxy�proxies� trust_env� pip_proxy�no_input�auth� prompting�keyring_provider)r&���r)���r:���r;���r���rC���r?����sessions��� r���r8���z"SessionCommandMixin._build_sessionS���sg������ =�<�<�<�<�<��%� ��8��� � �i� 8� 8�8�8�8���!D�D�D�8�:�:�K�K��K��*�8A�K�"�'�,�,�y�)�4�4�4�t�&�2�G�G���!�/��+�+�G�4�4�#� �� �� ����<�� *�$�\�G�N����� /�"�.�G�L���?�� R�g�� R�)0�)<�g�g�'�/�G�O���=�� .�� � �����G�O��!&�G�� '� �G���&-�%5�!5����(/�(@���%��r(���)r ���N)NN)�__name__� __module__�__qualname__�__doc__r$����classmethodr���r���r����strr5���r9����intr8���� __classcell__)r'���s���@r���r!���r!���2���s�������������������3��3��3��3��3��3���"�f��"��$�s�)�1D��"��"��"���[�"��6���l����������"&�!%� 1��1��1���#��1���#�� 1� � �1��1��1��1��1��1��1��1r(���r!���rT���r���r)���c������������������*�����ddl�m}��||�|�������������d�S�)Nr���)�pip_self_version_check)�!pip._internal.self_outdated_checkr^���)rT���r)����checks��� r����_pip_self_version_checkra�������s,������Q�Q�Q�Q�Q�Q� �E�'�7�����r(���c��������������������"�����e�Zd�ZdZdeddfd�ZdS�)�IndexGroupCommandz� Abstract base class for commands with the index_group options. This also corresponds to the commands that permit the pip version check. r)���r ���Nc����������������������t����������|d������������sJ��|j��������s|j��������rdS� �|����������������������|dt ����������d|j���������������������������������}|5��t ����������||�������������ddd�������������dS�#�1�swxY�w�Y���dS�#�t����������$�r:�t����������� ��������������������d�������������t����������� ��������������������dd� �������������Y�dS�w�xY�w) z� Do the pip version check if not disabled. This overrides the default behavior of not doing the check. r+���Nr�������)r:���r;���z6There was an error checking the latest version of pip.zSee below for errorT)�exc_info)�hasattr�disable_pip_version_checkr+���r8����minr;���ra���� Exceptionr���r���r���)r&���r)���rT���s��� r����handle_pip_version_checkz*IndexGroupCommand.handle_pip_version_check����s2�������w� �+�+�+�+�+��,�� ��0@�� ��F� ?��)�)����A�w��/�/��*�����G� ��� :�� :�'���9�9�9� :�� :�� :�� :�� :�� :�� :�� :�� :�� :�� :�� :����� :�� :�� :�� :�� :�� :���� ?�� ?�� ?��N�N�S�T�T�T��L�L�.��L�>�>�>�>�>�>� ?���s6����-A<��A/�"A<��/A3�3A<��6A3�7A<��<A�C��?C�)rU���rV���rW���rX���r���rk�����r(���r���rc���rc�������s@�����������������?���?�4��?��?��?��?��?��?r(���rc���)rX����loggingrD���r����optparser����typingr���r���r���r���r����pip._internal.cli.base_commandr����!pip._internal.cli.command_contextr ���r���r ���rB���r���� getLoggerrU���r���r���r!���ra���rc���rl���r(���r����<module>rs������s�������������� � � � �� � � � ��������������0��0��0��0��0��0��0��0��0��0��������������2��2��2��2��2��2��A��A��A��A��A��A���9�������8�8�8�8�8�8� �� �8� $� $�����(>���������,R��R��R��R��R�-��R��R��R�j�\���F���t���������?��?��?��?��?��!4��?��?��?��?��?r(���