Edit File: requirements.cpython-311.pyc
� ������Fh�����������������������������d�dl�Zd�dlmZmZmZmZ�ddlmZ �ddl mZ�ddlm Z mZ�ddlmZ��G�d��d e������������Z�G�d ��d������������ZdS�)�����N)�Any�List�Optional�Set����)�parse_requirement)�ParserSyntaxError)�Marker�_normalize_extra_values)�SpecifierSetc�������������������������e�Zd�ZdZdS�)�InvalidRequirementzJ An invalid requirement was found, users should refer to PEP 508. N)�__name__� __module__�__qualname__�__doc__��������v/builddir/build/BUILD/imunify360-venv-2.5.3/opt/imunify360/venv/lib/python3.11/site-packages/packaging/requirements.pyr���r������s��������������������r���r���c��������������������V�����e�Zd�ZdZdeddfd�Zdefd�Zdefd�Zdefd�Z d e defd �ZdS�)�Requirementz�Parse a requirement. Parse a given requirement string into its parts, such as name, specifier, URL, and extras. Raises InvalidRequirement on a badly-formed requirement string. �requirement_string�returnNc���������������������� �t����������|������������}n/#�t����������$�r"}t����������t����������|������������������������|�d�}~ww�xY�w|j��������|�_��������|j��������r�t����������j�����������������������������|j��������������������}|j ��������dk����r8t����������j��������� ��������������������|������������|j��������k����rt����������d�������������n3|j ��������r|j��������r|j ��������s|j��������st����������d|j������������������������|j��������|�_��������nd�|�_��������t����������|j ��������r|j ��������ng�������������|�_ ��������t����������|j��������������������|�_��������d�|�_��������|j���������>t#����������j��������t"����������������������|�_��������t'����������|j��������������������|�j��������_��������d�S�d�S�)N�filezInvalid URL givenz Invalid URL: )�_parse_requirementr ���r����str�name�url�urllib�parse�urlparse�scheme� urlunparse�netloc�set�extrasr���� specifier�markerr ����__new__r����_markers)�selfr����parsed�e� parsed_urls��� r����__init__zRequirement.__init__!���s������ 4�'�(:�;�;�F�F�� �� 4�� 4�� 4�$�S��V�V�,�,�!�3����� 4����� ��� ��:�� ���.�.�v�z�:�:�J�� �F�*�*��<�*�*�:�6�6�&�*�D�D�,�-@�A�A�A��E� �'�� G�J�,=�� G��%� G�.8�.?� G��)�)E���)E�)E�F�F�F�&,�j�D�H�H��D�H� #�V�]�$J�F�M�M�� K� K���'3�F�4D�'E�'E���(,����=�$� �.��0�0�D�K�#:�6�=�#I�#I�D�K� � � ��%�$s������ >�9�>c�����������������������|�j���������g}|�j��������r@d���������������������t����������|�j��������������������������������}|���������������������d|��d��������������|�j��������r'|���������������������t ����������|�j���������������������������������|�j��������r9|���������������������d|�j������������������������|�j��������r|���������������������d�������������|�j��������r|���������������������d|�j������������������������d���������������������|������������S�)N�,�[�]z@ � z; ��) r���r'����join�sorted�appendr(���r���r���r)���)r,����parts�formatted_extrass��� r����__str__zRequirement.__str__;���s������� �I�;���;�� 2�"�x�x��t�{�(;�(;�<�<���L�L�0�-�0�0�0�1�1�1��>�� .��L�L��T�^�,�,�-�-�-��8�� "��L�L��d�h���)�)�)��{�� "����S�!�!�!��;�� -��L�L�+�d�k�+�+�,�,�,��w�w�u�~�~�r���c�����������������������d|���d�S�)Nz<Requirement('z')>r����r,���s��� r����__repr__zRequirement.__repr__O���s������)��)�)�)�)r���c������������������R�����t����������|�j��������j��������t����������|�������������f������������S��N)�hash� __class__r���r���r>���s��� r����__hash__zRequirement.__hash__R���s �������T�^�,�c�$�i�i�8�9�9�9r����otherc������������������������t����������|t����������������������st����������S�|�j��������|j��������k����o?|�j��������|j��������k����o/|�j��������|j��������k����o|�j��������|j��������k����o|�j��������|j��������k����S�rA���)� isinstancer����NotImplementedr���r'���r(���r���r)���)r,���rE���s��� r����__eq__zRequirement.__eq__U���su�������%��-�-�� "�!�!�� �I���#�� ,���u�|�+� ,���%�/�1� ,����E�I�%� ,����u�|�+� r���) r���r���r���r���r���r0���r<���r?����intrD���r����boolrI���r���r���r���r���r������s������������������J�3��J�4��J��J��J��J�4����������(*�#��*��*��*��*�:�#��:��:��:��:� �C�� �D�� �� �� �� �� �� r���r���)�urllib.parser ����typingr���r���r���r����_parserr���r���� _tokenizerr ����markersr ���r���� specifiersr���� ValueErrorr���r���r���r���r����<module>rS������s������ ���������+��+��+��+��+��+��+��+��+��+��+��+��<��<��<��<��<��<��)��)��)��)��)��)��4��4��4��4��4��4��4��4��$��$��$��$��$��$�����������������K ��K ��K ��K ��K ��K ��K ��K ��K ��K r���