8f ddlmZddlmZmZddlmZddlm Z ddl m Z m Z ddl mZddlmZGd d eZGd d Zd S)) annotations)AnyIterator)parse_requirement)ParserSyntaxError)Marker_normalize_extra_values) SpecifierSet)canonicalize_nameceZdZdZdS)InvalidRequirementzJ An invalid requirement was found, users should refer to PEP 508. N)__name__ __module__ __qualname____doc__/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/packaging/requirements.pyrrsrrcBeZdZdZddZdd Zdd Zdd Zdd ZddZ dS) RequirementzParse 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_stringstrreturnNonec t|}n/#t$r"}tt||d}~wwxYw|j|_|jpd|_t |jpg|_t|j |_ d|_ |j >tj t|_ t|j |j _dSdSN)_parse_requirementrrrnameurlsetextrasr specifiermarkerr __new__r _markers)selfrparsedes r__init__zRequirement.__init__"s 4'(:;;FF  4 4 4$SVV,,! 3 4  %z1T #FM$7R 8 8 '3F4D'E'E%) = $ .00DK#:6=#I#IDK  % $s >9>r Iterator[str]c#K|V|jr/dt|j}d|dV|jrt |jV|jrd|jV|jrdV|jrd|jVdSdS)N,[]z@  z; )r"joinsortedr#rr r$)r'rformatted_extrass r _iter_partszRequirement._iter_parts1s ; *"xxt{(;(;<< )&))) ) ) ) > &dn%% % % % 8 !tx// ! ! !{  ; %$t{$$ $ $ $ $ $ % %rc\d||jS)N)r1r4rr's r__str__zRequirement.__str__Cs$wwt'' 22333rcd|dS)Nzrr7s r__repr__zRequirement.__repr__Fs)))))rintct|jjg|t |jRSr)hash __class__rr4r rr7s r__hash__zRequirement.__hash__IsG' !!"3DI">">??     rotherrboolct|tstSt|jt|jko?|j|jko/|j|jko|j|jko|j|jkSr) isinstancerNotImplementedr rr"r#r r$)r'r@s r__eq__zRequirement.__eq__Qs%-- "! ! di ( (,=ej,I,I I , u|+ ,%/1 ,EI% , u|+  rN)rrrr)rrrr+)rr)rr;)r@rrrA) rrrrr*r4r8r:r?rErrrrrs J J J J%%%%$4444****           rrN) __future__rtypingrr_parserrr _tokenizerrmarkersr r specifiersr utilsr ValueErrorrrrrrrNs#""""" <<<<<<))))))44444444$$$$$$$$$$$$ F F F F F F F F F F r