Hacked By AnonymousFox

Current Path : /opt/imunify360/venv/lib/python3.11/site-packages/packaging/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib/python3.11/site-packages/packaging/__pycache__/requirements.cpython-311.pyc

�

h��f����ddlZddlmZmZmZmZddlmZ	ddl
mZddlm
Z
mZddlmZGd�d	e��ZGd
�d��ZdS)�N)�Any�List�Optional�Set�)�parse_requirement)�ParserSyntaxError)�Marker�_normalize_extra_values)�SpecifierSetc��eZdZdZdS)�InvalidRequirementzJ
    An invalid requirement was found, users should refer to PEP 508.
    N)�__name__�
__module__�__qualname__�__doc__���v/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/packaging/requirements.pyrrs���������rrc�V�eZdZdZdeddfd�Zdefd�Zdefd�Zdefd�Z	d	e
defd
�ZdS)�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"}tt|����|�d}~wwxYw|j|_|jr�tj�|j��}|j	dkr8tj�
|��|jkrtd���n3|j	r|jr|j	s|jstd|j�����|j|_nd|_t|j
r|j
ng��|_
t|j��|_d|_|j�>t#jt"��|_t'|j��|j_dSdS)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���|jg}|jr@d�t|j����}|�d|�d���|jr'|�t
|j����|jr9|�d|j����|jr|�d��|jr|�d|j����d�|��S)N�,�[�]z@ � z; �)	rr'�join�sorted�appendr(rrr))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�~�~�rc��d|�d�S)Nz<Requirement('z')>r�r,s r�__repr__zRequirement.__repr__Os��)��)�)�)�)rc�R�t|jjt|��f��S�N)�hash�	__class__rrr>s r�__hash__zRequirement.__hash__Rs ���T�^�,�c�$�i�i�8�9�9�9r�otherc���t|t��stS|j|jko?|j|jko/|j|jko|j|jko|j|jkSrA)�
isinstancer�NotImplementedrr'r(rr))r,rEs  r�__eq__zRequirement.__eq__Usu���%��-�-�	"�!�!�
�I���#�
,���u�|�+�
,���%�/�1�
,���E�I�%�
,���u�|�+�	
r)
rrrrrr0r<r?�intrDr�boolrIrrrrrs���������J�3�J�4�J�J�J�J�4������(*�#�*�*�*�*�:�#�:�:�:�:�

�C�

�D�

�

�

�

�

�

rr)�urllib.parser �typingrrrr�_parserrr�
_tokenizerr	�markersr
r�
specifiersr�
ValueErrorrrrrr�<module>rSs���
����+�+�+�+�+�+�+�+�+�+�+�+�<�<�<�<�<�<�)�)�)�)�)�)�4�4�4�4�4�4�4�4�$�$�$�$�$�$����������K
�K
�K
�K
�K
�K
�K
�K
�K
�K
r

Hacked By AnonymousFox1.0, Coded By AnonymousFox