HEX
Server: LiteSpeed
System: Linux srv146.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: kodi1989 (1633)
PHP: 8.1.34
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/packaging/__pycache__/requirements.cpython-37.pyc
B

��fu�@szddlmZmZmZmZddlmZddlm	Z	ddl
mZmZddl
mZddlmZGdd	�d	e�ZGd
d�d�ZdS)
�)�Any�Iterator�Optional�Set�)�parse_requirement)�ParserSyntaxError)�Marker�_normalize_extra_values)�SpecifierSet)�canonicalize_namec@seZdZdZdS)�InvalidRequirementzJ
    An invalid requirement was found, users should refer to PEP 508.
    N)�__name__�
__module__�__qualname__�__doc__�rr�G/opt/alt/python37/lib/python3.7/site-packages/packaging/requirements.pyr
sr
c@sneZdZdZedd�dd�Zeeed�dd�Zed	�d
d�Zed	�dd
�Z	e
d	�dd�Zee
d�dd�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.
    N)�requirement_string�returnc
Cs�yt|�}Wn0tk
r<}ztt|��|�Wdd}~XYnX|j|_|jpNd|_t|jp\g�|_t|j	�|_	d|_
|j
dk	r�t�t�|_
t
|j
�|j
_dS)N)�_parse_requirementrr
�str�name�url�set�extrasr�	specifier�markerr	�__new__r
�_markers)�selfr�parsed�errr�__init__!s 
zRequirement.__init__)rrccst|V|jr*d�t|j��}d|�d�V|jr<t|j�V|jr\d|j��V|jr\dV|jrpd|j��VdS)N�,�[�]z@ � z; )r�join�sortedrrrr)r!rZformatted_extrasrrr�_iter_parts0szRequirement._iter_parts)rcCsd�|�|j��S)N�)r)r+r)r!rrr�__str__BszRequirement.__str__cCsd|�d�S)Nz<Requirement('z')>r)r!rrr�__repr__EszRequirement.__repr__cCst|jjf|�t|j����S)N)�hash�	__class__rr+rr)r!rrr�__hash__HszRequirement.__hash__)�otherrcCsRt|t�stSt|j�t|j�koP|j|jkoP|j|jkoP|j|jkoP|j|jkS)N)	�
isinstancer�NotImplementedrrrrrr)r!r2rrr�__eq__Ps
zRequirement.__eq__)rrrrrr$rr+r-r.�intr1r�boolr5rrrrrsrN)�typingrrrr�_parserrr�
_tokenizerr�markersr	r
�
specifiersr�utilsr�
ValueErrorr
rrrrr�<module>s