hddlmZmZddlmZddlmZmZddlm Z ddl m Z ddl m Z mZmZmZGdd eZGd d eZGd d eZGddeZGddeZdS))AnyOptional) SpecifierSet)NormalizedNamecanonicalize_name)install_req_drop_extras)InstallRequirement) CandidateCandidateLookup Requirement format_nameceZdZdeddfdZdefdZdefdZdefdZ de de fd Z e defd Ze defd Zdefd Zdefd Zdede fdZdS)ExplicitRequirement candidatereturnNc||_dSNrselfrs /builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/requirements.py__init__zExplicitRequirement.__init__ s "c*t|jSr)strrrs r__str__zExplicitRequirement.__str__s4>"""rc0|jjd|jdSN()) __class____name__rrs r__repr__zExplicitRequirement.__repr__s .)??DN????rc*t|jSr)hashrrs r__hash__zExplicitRequirement.__hash__sDN###rothercPt|tsdS|j|jkSNF) isinstancerrrr)s r__eq__zExplicitRequirement.__eq__s)%!455 5~00rc|jjSr)r project_namers rr0z ExplicitRequirement.project_names~**rc|jjSr)rnamers rr2zExplicitRequirement.name#s~""rc4|jSr)rformat_for_errorrs rr4z$ExplicitRequirement.format_for_error(s~..000rc|jdfSrrrs rget_candidate_lookupz(ExplicitRequirement.get_candidate_lookup+s~t##rc||jkSrrrs ris_satisfied_byz#ExplicitRequirement.is_satisfied_by.sDN**r)r$ __module__ __qualname__r rrrr%intr(rboolr.propertyrr0r2r4r r6r8rrrr sT#)##########@#@@@@$#$$$$1C1D1111 +n+++X+#c###X#1#1111$o$$$$++t++++++rrceZdZdeddfdZedefdZdefdZdefdZ de de fd Z de fd Zedefd Zedefd Zdefd ZdefdZdede fdZdS)SpecifierRequirementireqrNc|j Jd||_d|_d|_t d|jjD|_dS)NThis is a link, not a specifierc34K|]}t|VdSrr.0es r z0SpecifierRequirement.__init__..8+ Q Q!!21!5!5 Q Q Q Q Q Qr)link_ireq _equal_cache_hash frozensetextras_extrasrrAs rrzSpecifierRequirement.__init__3sVy  "C    +/$(  Q Qtz?P Q Q QQQ rc^|j|jSt|j|_|jSrrMrrLrs r_equalzSpecifierRequirement._equal:-   ($ $ OO  rc4t|jjSr)rrLreqrs rrzSpecifierRequirement.__str__Bs4:>"""rcT|jjdt|jjdSr )r#r$rrLrXrs rr%zSpecifierRequirement.__repr__Es*.)DDC ,?,?DDDDrr)cZt|tstS|j|jkSr)r,r@NotImplementedrUr-s rr.zSpecifierRequirement.__eq__Hs*%!566 "! !{el**rc^|j|jSt|j|_|jSrrNr'rUrs rr(zSpecifierRequirement.__hash__M+ : !: $+&& zrcj|jjs Jdt|jjjS)N'Specifier-backed ireq is always PEP 508)rLrXrr2rs rr0z!SpecifierRequirement.project_nameTs/z~HHHHH~ !4555rc6t|j|jSr)rr0rQrs rr2zSpecifierRequirement.nameYs4,dl;;;rc dt|dD}t|dkrdSt|dkr|dSd|dddz|dzS) Nc6g|]}|Sr>)strip)rGss r z9SpecifierRequirement.format_for_error..bs 999q999r,rr z, z and )rsplitlenjoin)rpartss rr4z%SpecifierRequirement.format_for_error]s} :9CIIOOC$8$8999 u::??2 ZZ1__8Oyyss$$w.r::rcd|jfSr)rLrs rr6z)SpecifierRequirement.get_candidate_lookupjsTZrrc|j|jksJd|jd|j|jjs Jd|jjj}||jdS)Nz6Internal issue: Candidate is not for this requirement z vs r`T prereleases)r2rLrX specifiercontainsversion)rrspecs rr8z$SpecifierRequirement.is_satisfied_byms~*** /~ / /#'9 / /+**z~HHHHH~z~'}}Y.D}AAAr)r$r9r:r rr=rrUrr%objectr<r.r;r(rr0r2r4r r6r r8r>rrr@r@2sR/RDRRRR!!!!X!#####E#EEEE+F+t++++ #6n666X6.rJr)rKrrLrMrNrOrPrQrRs rrz*SpecifierWithoutExtrasRequirement.__init__s^y  "C   ,T22 +/$(  Q Qtz?P Q Q QQQ rc^|j|jSt|j|_|jSrrTrs rrUz(SpecifierWithoutExtrasRequirement._equalrVrr)cZt|tstS|j|jkSr)r,rxr[rUr-s rr.z(SpecifierWithoutExtrasRequirement.__eq__s*%!BCC "! !{el**rc^|j|jSt|j|_|jSrr]rs rr(z*SpecifierWithoutExtrasRequirement.__hash__r^r)r$r9r:__doc__r rr=rrUrvr<r.r;r(r>rrrxrxzs R/RDRRRR!!!!X!+F+t++++ #rrxceZdZdZdededdfdZdefdZdefdZ de fd Z d e de fd Zedefd Zedefd ZdefdZdefdZdede fdZdS)RequiresPythonRequirementz4A requirement representing Requires-Python metadata.rrmatchrNcX||_t||_d|_||_dSr)rrr_specifier_stringrN _candidate)rrrrs rrz"RequiresPythonRequirement.__init__s)"!$Y$( rcd|jS)NzPython )rrrs rrz!RequiresPythonRequirement.__str__s))))rcJ|jjdt|jdSr )r#r$rrrrs rr%z"RequiresPythonRequirement.__repr__s(.)DDC,?,?DDDDrcl|j|jSt|j|jf|_|jSr)rNr'rrrs rr(z"RequiresPythonRequirement.__hash__s3 : !: 414?CDD zrr)cpt|tsdS|j|jko|j|jkSr+)r,rrrr-s rr.z RequiresPythonRequirement.__eq__s?%!:;; 5  "e&= = 45#33 rc|jjSr)rr0rs rr0z&RequiresPythonRequirement.project_names ++rc|jjSr)rr2rs rr2zRequiresPythonRequirement.names ##rc t|Srrrs rr4z*RequiresPythonRequirement.format_for_error4yyrcd|j|jjdr |jdfSdS)NTrpNN)rrrsrrtrs rr6z.RequiresPythonRequirement.get_candidate_lookups6 > " "4?#: " M M )?D( (zrrc|j|jjks Jd|j|jdS)NzNot Python candidateTrp)r2rrrrsrtrs rr8z)RequiresPythonRequirement.is_satisfied_bysC~!55557M555~&&y'8d&KKKr)r$r9r:r~rr rrrr%r;r(rr<r.r=rr0r2r4r r6r8r>rrrrsi>> , y T    *****E#EEEE# C D    ,n,,,X,$c$$$X$#o LLtLLLLLLrrceZdZdZdeddfdZdefdZdefdZde de fd Z de fd Z edefd Zedefd Zdefd ZdefdZdede fdZdS)UnsatisfiableRequirementz'A requirement that cannot be satisfied.r2rNc||_dSr_name)rr2s rrz!UnsatisfiableRequirement.__init__s  rc|jdS)Nz (unavailable)rrs rrz UnsatisfiableRequirement.__str__s*,,,,rcJ|jjdt|jdSr )r#r$rrrs rr%z!UnsatisfiableRequirement.__repr__s&.)@@C OO@@@@rr)cZt|tstS|j|jkSr)r,rr[rr-s rr.zUnsatisfiableRequirement.__eq__s*%!9:: "! !zU[((rc*t|jSr)r'rrs rr(z!UnsatisfiableRequirement.__hash__sDJrc|jSrrrs rr0z%UnsatisfiableRequirement.project_name zrc|jSrrrs rr2zUnsatisfiableRequirement.namerrc t|Srrrs rr4z)UnsatisfiableRequirement.format_for_errorrrcdS)Nrr>rs rr6z-UnsatisfiableRequirement.get_candidate_lookupszrrcdSr+r>rs rr8z(UnsatisfiableRequirement.is_satisfied_bysur)r$r9r:r~rrrrr%rvr<r.r;r(r=r0r2r4r r6r r8r>rrrrsZ11^-----A#AAAA)F)t))))  #    nXcX#otrrN)typingrr pip._vendor.packaging.specifiersrpip._vendor.packaging.utilsrrpip._internal.req.constructorsrpip._internal.req.req_installr baser r r rrr@rxrrr>rrrs 999999IIIIIIIIBBBBBB<<<<<<FFFFFFFFFFFF#+#+#+#+#++#+#+#+LEBEBEBEBEB;EBEBEBP(<D3L3L3L3L3L 3L3L3Ll#####{#####r