8f) UddlmZddlZddlZddlZddlZddlmZmZm Z m Z ddl m Z m Z mZmZmZddl mZddlmZddlmZmZdd lmZgd ZeeegefZGd d eZGd deZ GddeZ!Gdde Z"d8dZ# d9d:dZ$ddej%ej&ej'ej(ej)ej*d Z+d!e,d"<d;d(Z-dd4Z0d?d5Z1Gd6d7Z2dS)@) annotationsN)AnyCallable TypedDictcast) MarkerAtom MarkerListOpValueVariable) parse_marker)ParserSyntaxError)InvalidSpecifier Specifiercanonicalize_name) InvalidMarkerUndefinedComparisonUndefinedEnvironmentNameMarkerdefault_environmentceZdZdZdS)rzE An invalid marker 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/markers.pyrrr rceZdZdZdS)rzP An invalid operation was attempted on a value that doesn't support it. Nrrr r!rr$r"r rceZdZdZdS)rz\ A name was attempted to be used that does not exist inside of the environment. Nrrr r!rr*sr rceZdZUded< ded< ded< ded< ded< ded< ded< ded < ded < ded < ded <d S) Environmentstrimplementation_nameimplementation_versionos_nameplatform_machineplatform_releaseplatform_systemplatform_versionpython_full_versionplatform_python_implementationpython_version sys_platformN)rrr__annotations__rr r!r&r&1s> LLL     ('''9r r&resultsrreturncrt|dtr|d\}}}t|tr/|jdkr$t |j}t |}nCt|tr.|jdkr#t |j}t |}|||f|d<|S)z! Normalize extra values. rextra) isinstancetupler valuerr )r4lhsoprhsnormalized_extras r!_normalize_extra_valuesr?ys'!*e$$"qz R c8 $ $ *g)=)=0;; ())CC X & & *39+?+?0;; ())C"c\ Nr Tmarkerlist[str] | MarkerAtom | strfirst bool | Noner'ct|tttfsJt|trJt |dkr7t|dttfrt |dSt|tr>d|D}|rd|Sdd|zdzSt|trdd|DS|S)Nrrc38K|]}t|dVdS)F)rBN)_format_marker.0ms r! z!_format_marker..s/@@A///@@@@@@r  ()c6g|]}|Sr) serializerGs r! z"_format_marker..s 7771777r )r8listr9r'lenrFjoin)r@rBinners r!rFrFs ftUC0 1 111 1 64  ) KK1   vay4- 0 0 fQi(((&$ @@@@@  /88E?? "%(3. . FE " "xx77777888 r c ||vSNrr;r=s r!rXs 3#:r c ||vSrVrrWs r!rXrXs s#~r )inznot in=>zdict[str, Operator] _operatorsr;r<r r=boolc d td||g}||dS#t$rYnwxYwt |}|td|d|d|d|||S)NT) prereleasesz Undefined z on z and .)rrSrOcontainsrr]getr)r;r<r=specopers r!_eval_oprgs4",,..#!67788}}Sd}333      'NN2<<>>::D |!"Mr"M"M"M"MS"M"M"MNNN 4S>>s6A AAvalueskeytuple[str, ...]cD|dkrtd|DS|S)Nr7c34K|]}t|VdSrVr)rHvs r!rJz_normalize..s+::a&q))::::::r )r9)rirhs r! _normalizerns1  g~~::6:::::: Mr markersr environmentdict[str, str]cgg}|D]%}t|tttfsJt|tr*|dt ||ft|tr|\}}}t|t r|j}||}|j} n|j}|j}||} t|| |\}} |dt||| |dvsJ|dkr|g'td|DS)N)ri)andorruc34K|]}t|VdSrV)all)rHitems r!rJz$_evaluate_markers..s(,,Ts4yy,,,,,,r ) r8rQr9r'append_evaluate_markersr r:rnrgany) rorpgroupsr@r;r<r=environment_key lhs_value rhs_values r!rzrzsX "tF""&4"455555 fd # # " 2J  / DD E E E E  & & "!LCS#x(( 9"%)'8 I I "%)'8 #-i#X#X#X Iy 2J  hy"i@@ A A A A]****~~ b!!! ,,V,,, , ,,r infosys._version_infocd|}|j}|dkr ||dt|jzz }|S)Nz{0.major}.{0.minor}.{0.micro}finalr)format releaselevelr'serial)rversionkinds r!format_full_versionrsH-44T::G  D w47S---- Nr cttjj}tjj}||t jt jt jt j t jt j t j d t j ddtjd S)Nrb) r(r)r*r+r,r-r.r/r0r1r2)rsysimplementationrnameosplatformmachinereleasesystemr1python_implementationrSpython_version_tuple)iverr(s r!rrs s19 : :D,12"&7$,..$,..#?,,$,..'688*2*H*J*J((8#@#B#B2A2#FGG    r c@eZdZddZddZddZdd Zdd ZdddZdS)rr@r'r5Nonec tt||_dS#t$r"}t t ||d}~wwxYwrV)r? _parse_marker_markersrrr')selfr@es r!__init__zMarker.__init__sY /3M&4I4IJJDMMM"! / / /A''Q . /s!% AA  Ac*t|jSrV)rFrrs r!__str__zMarker.__str__sdm,,,r cd|dS)Nz rrs r!__repr__zMarker.__repr__!s$4$$$$r intcRt|jjt|fSrV)hash __class__rr'rs r!__hash__zMarker.__hash__$s T^,c$ii8999r otherrr^czt|tstSt|t|kSrV)r8rNotImplementedr')rrs r!__eq__z Marker.__eq__'s1%(( "! !4yyCJJ&&r Nrpdict[str, str] | Nonec tdt}d|d<|ddr|dxxdz cc<|"|||dd|d<t |j|S)a$Evaluate a marker. Return the boolean from evaluating the given marker against the environment. environment is an optional argument to override all or part of the determined environment. The environment is determined from the current Python process. rqr`r7r/+local)rrendswithupdaterzr)rrpcurrent_environments r!evaluatezMarker.evaluate-s##35H5J5JKK')G$ 4 5 > >s C C B  5 6 6 6' A 6 6 6  "  & &{ 3 3 3#7+3/1#G, 0CDDDr )r@r'r5r)r5r')r5r)rrr5r^rV)rprr5r^) rrrrrrrrrrr r!rrs////2----%%%%::::'''' EEEEEEEr r)r4rr5r)T)r@rArBrCr5r')r;r'r<r r=r'r5r^)rhr'rir'r5rj)ror rprqr5r^)rrr5r')r5r&)3 __future__roperatorrrrtypingrrrr_parserr r r r r rr _tokenizerr specifiersrrutilsr__all__r'r^Operator ValueErrorrrrr&r?rFltleeqnegegtr]r3rgrnrzrrrrr r!rs #""""""  111111111111@@@@@@@@@@@@@@222222))))))33333333$$$$$$    S#J$ %J * zEEEEE)EEEP    "@D: & %--  + + + +  # #            ----<$AEAEAEAEAEAEAEAEAEAEr