2biEF%SrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSK J r J r J r J r JrJrJrJrJr SSKJr SSKJrJr SSKJr SSKJr SS KJr SS KJr SS K J!r! \ (a SS K J"r" SS K#J$r$ S/r%\\\&\'4r(\ \'/\\'\44r)\RT"S\RV5r,\RT"S5r-\RT"S5r.\R^\R`\Rb\Rd\Rf\Rh\Rj\Rl\Rn\Rp\Rr\Rt\Rv\Rx/r=\\ S\R|4\?S'\R\R\R/rC\\ S\R|4\?S'\CVs/sHn\'"U"5R5PM snrE\R"\G5rH"SS5rI"SS5rJS6S\'S\S\SS\\RS\KS\\ISS44 S jjrLS!\'S\(4S"jrMS7S#\JS\\RS\I4S$jjrNS8S%\S\'S&\&S\SS\\RS\\SS4S'jjrOS8S#\JS\\RS\SS\\S\\I4 S(jjrP"S)S*5rQS\SS\)4S+jrRS#\'S\\'\'44S,jrS"S-S.\T5rUS\R4S/jrWS0\(S\(4S1jrXS0\(S\(4S2jrYS0\(S\(4S3jrZS4\'S\S\\'\'44S5jr[gs snf)9z Requirements file parsing N)Values) TYPE_CHECKINGAnyCallableDict GeneratorIterableListOptionalTuple) cmdoptions)InstallationErrorRequirementsFileParseError) SearchScope) PipSession)raise_for_status) auto_decode)get_url_scheme)NoReturn) PackageFinderparse_requirementsz^(http|https|file):z (^|\s+)#.*$z#(?P\$\{(?P[A-Z0-9_]+)\}).SUPPORTED_OPTIONSSUPPORTED_OPTIONS_REQcX\rSrSrS S\S\S\S\S\\\\4S\\S S4S jjr S r g) ParsedRequirementTN requirement is_editable comes_from constraintoptions line_sourcereturncLXlX lX0lXPlX@lX`lgN)rrrr!r r")selfrrrr r!r"s ڌ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_internal/req/req_file.py__init__ParsedRequirement.__init__Us%'&$ $&)rr rr"r!r)NN) __name__ __module__ __qualname____firstlineno__strboolr rrr(__static_attributes__r*r'rrTsi-1%)''' '  ' $sCx.) 'c]' ''r*rc 6\rSrSrS\S\S\S\S\SS4 S jrS r g) ParsedLineffilenamelinenoargsoptsr r#NcXlX lX@lXPlU(aSUlSUlX0lgUR(a#SUlSUlURSUlgSUlg)NTFr)r6r7r9r is_requirementrr editables)r&r6r7r8r9r s r'r(ParsedLine.__init__gsa!   $ "&D $D #  ^^"&D #D #~~a0D "'D r*)r r6rr;r7r9r) r+r,r-r.r/intrr0r(r1r2r*r'r4r4fsA((( (  (  ( (r*r4r6sessionfinderrr!r r#c## [U5n[X5nURX5Hn[XsX!S9nUcMUv M g7f)aUParse a requirements file and yield ParsedRequirement instances. :param filename: Path or url of requirements file. :param session: PipSession instance. :param finder: Instance of pip.index.PackageFinder. :param options: cli options. :param constraint: If true, parsing a constraint file rather than requirements file. )r!r@r?N)get_line_parserRequirementsFileParserparse handle_line) r6r?r@r!r line_parserparser parsed_line parsed_reqs r'rrsK "&)K #G 9F||H9     !  :s 6A Acontentcx[UR5SS9n[U5n[U5n[ U5nU$)zpSplit, filter, and join lines, and return a line iterator :param content: the content of the requirements file )start) enumerate splitlines join_linesignore_commentsexpand_env_variables)rJ lines_enums r' preprocessrTs= )););)=QGJJ'J ,J%j1J r*linec lSRUR(aSOSURUR5nUR(deUR (a*[ URUR UURS9$0n[HYnX@RR;dMURRU(dM>URRUX4'M[ SURSUR3n[ URUR UURUUS9$)Nz{} {} (line {})z-cz-r)rrrr line  of )rrrr r!r") formatr r6r7r;rrrSUPPORTED_OPTIONS_REQ_DESTr9__dict__)rUr!line_comes_from req_optionsdestr"s r'handle_requirement_liner_s  (..T  O     !((((&    .Dyy)))dii.@.@.F.F$(II$6$6t$< !/dkk]$t}}o>  ((((&#   r*r9r7c^UR(a[RSUU5 T(abUR(aURTlUR(a/TRR U4SjUR55 U(GaUR nURnURRnURSLaSn/nUR(aU(d UR/nUR(a"U(dUR UR5 UR (aUR Sn [RR[RRU55n [RR!X5n [RR#U 5(aU n UR%U 5 U(aUR'U5 [)UUUS9n XlUR*(aUR-5 UR.(aUR15 U(a4UR2=(d /Hn SUSU3nUR5XS9 M ggg) Nz>%s line %s has --hash but no requirement, and will be ignored.c3J># UHoTR;dMUv M g7fr%)features_enabled).0fr!s r' %handle_option_line..s",0aW=U=U4U0s# #Tr) find_links index_urlsno_indexrWrX)source)hashesloggerwarningrequire_hashesrbextendrgrh search_scoperi index_urlextra_index_urlsospathdirnameabspathjoinexistsappendupdate_index_urlsrpreset_allow_all_prereleases prefer_binaryset_prefer_binary trusted_hostsadd_trusted_host)r9r6r7r@r!r?rgrhrivaluereq_dirrelative_to_reqs_filerphostrjs ` r'handle_option_liners {{ L      %)%8%8G "   $ $ + +,00,  && && &&// ==D HJ >>(..)J     d33 4 ??OOA&Eggoobggooh&?@G$&GGLL$@ !ww~~344-   e $   % %j 1"!! + 88  , , .     $ $ & **0b0 XJ7(((=1 Or*cUR(a [X5nU$[URURUR UUU5 g)aHandle a single parsed requirements line; This can result in creating/yielding requirements, or updating the finder. :param line: The parsed line to be processed. :param options: CLI options. :param finder: The finder - updated by non-requirement lines. :param session: The session - updated by non-requirement lines. Returns a ParsedRequirement object if the line is a requirement line, otherwise returns None. For lines that contain requirements, the only options that have an effect are from SUPPORTED_OPTIONS_REQ, and they are scoped to the requirement. Other options from SUPPORTED_OPTIONS may be present, but are ignored. For lines that do not contain requirements, the only options that have an effect are from SUPPORTED_OPTIONS. Options from SUPPORTED_OPTIONS_REQ may be present, but are ignored. These lines may contain multiple options (although our docs imply only one is supported), and all our parsed and affect the finder. N)r;r_rr9r6r7)rUr!r@r?rIs r'rErEsH: ,T;  II MM KK     r*c \rSrSrS\S\SS4SjrS\S\S\ \ SS44S jr S\S\S\ \ SS44S jr S\S\S\ \ SS44S jr S rg) rCiBr?rFr#NcXlX lgr%)_session _line_parser)r&r?rFs r'r(RequirementsFileParser.__init__Cs  'r*r6r c#B# URX5ShvN gN7f)z*Parse a given file, yielding parsed lines.N)_parse_and_recurse)r&r6r s r'rDRequirementsFileParser.parseKs**8@@@s c## URX5GHOnUR(Gd5URR(dURR(aURR(aURRSnSnOURRSnSn[ R U5(a [RRX5nOW[ R U5(d=[RR[RRU5U5nURXE5ShvN GMKUv GMR gN7f)NrFT) _parse_filer;r9 requirements constraints SCHEME_REsearchurllibrDurljoinrsrtrwrur)r&r6r rUreq_pathnested_constraints r'r)RequirementsFileParser._parse_and_recurseQs$$X:D&&& &&$))*?*?99))#yy55a8H(-%#yy44Q7H(,%##H--%||33HGH"))(33!ww||1  H  228OOO 5;0PsEE+E)E+c## [XR5up4[U5nUH*upgURU5up[UUUU U5v M, g![a"n SUSU R 3n [ U 5eSn A ff=f7f)NzInvalid requirement:  )get_file_contentrrTrOptionParsingErrormsgrr4) r&r6r _rJrS line_numberrUargs_strr9ers r'r"RequirementsFileParser._parse_fileps&h > ( !+ K 6!%!2!24!8   ",& 6-dV2aeeW=055 6s(*BAB B A==BB)rr)r+r,r-r.r LineParserr(r/r0rr4rDrrr1r2r*r'rCrCBs(( (  (AA)-A :tT) *A )- :tT) *>)- :tT) *r*rCcJ^S[S[[[44U4SjjnU$)NrUr#c,>[5nUR5nSUlT (aT RUl[ U5up4[ R "U5nURXR5upxX74$![an[SU35UeSnAff=f)NzCould not split options: ) build_parserget_default_valuesrqformat_controlbreak_args_optionsshlexsplit ValueErrorr parse_args) rUrGdefaultsr options_strr!rr9rr@s r' parse_line#get_line_parser..parse_lines,,.! &,&;&;H # 24 8 Wkk+.G##G6~  W$'@ %NOUV V Ws A55 B?BB)r/r r)r@rs` r'rBrBs'sF{!3( r*c(URS5n/nUSSnUHSnURS5(dURS5(a O&URU5 URS5 MU SR U5SR U54$)zBreak up the line into an args and options string. We only want to shlex (and then optparse) the options, not the args. args can contain markers which are corrupted by shlex.  N-z--r)r startswithrypoprw)rUtokensr8r!tokens r'rrs ZZ_F DQiG   C E$4$4T$:$:  KK  KKN  88D>388G, ,,r*c&\rSrSrS\SS4SjrSrg)rirr#NcXlgr%rr&rs r'r(OptionParsingError.__init__sr*r)r+r,r-r.r/r(r1r2r*r'rrsCDr*rc[R"SS9n[[-nUHnU"5nUR U5 M S[ S[ SS4SjnX@lU$)z/ Return a parser for parsing requirement lines F)add_help_optionr&rr#rc[U5er%)rrs r' parser_exit!build_parser..parser_exits  %%r*)optparse OptionParserrr add_optionrr/exit)rGoption_factoriesoption_factoryoptionrs r'rrsf " "5 9F(+@@*!&!+ &#&C&J& K Mr*rSc## Sn/nUHup4URS5(a[RU5(a\[RU5(aSU-nU(a/URU5 UceUSR U54v /nMX44v MU(dUnURUR S55 M U(aUceUSR U54v gg7f)zJoins a line ending in '' with the previous line (except when following comments). The joined line takes on the index of the first line. N\r)endswith COMMENT_REmatchryrwstrip)rSprimary_line_numbernew_linerrUs r'rPrPsH' }}T""j&6&6t&<&<%%Tz%*666)2778+<<<!''&1# OODJJt, -($"...!2778#444sC(C*c## UH9up[RSU5nUR5nU(dM4X4v M; g7f)z) Strips comments and filter empty lines. rN)rsubr)rSrrUs r'rQrQs=( ~~b$'zz| 4# # (s 3A Ac## UHXup[RU5H5up4[R"U5nU(dM$UR X55nM7 X4v MZ g7f)aReplace all environment variables that can be retrieved via `os.getenv`. The only allowed format for environment variables defined in the requirement file is `${MY_VARIABLE_1}` to ensure two things: 1. Strings that contain a `$` aren't accidentally (partially) expanded. 2. Ensure consistency across platforms for requirement files. These points are the result of a discussion on the `github pull request #3514 `_. Valid characters in variable names follow the `POSIX standard `_ and are limited to uppercase letter, digits and the `_` (underscore). N) ENV_VAR_REfindallrsgetenvreplace)rSrrUenv_varvar_namers r'rRrRsY ( !+!3!3D!9 GIIh'E<</D ":(sA A"urlcX[U5nUS;a4URU5n[U5 URUR4$[ US5n[ UR55nSSS5 X4$!,(df  UW4$=f![an[SU35eSnAff=f)a Gets the content of a file; it may be a filename, file: URL, or http: URL. Returns (location, content). Content is unicode. Respects # -*- coding: declarations on the retrieved files. :param url: File path or url. :param session: PipSession instance. )httphttpsfilerbNz"Could not open requirements file: ) rgetrrtextopenrreadOSErrorr)rr?schemeresprdrJexcs r'rrsC F**{{3xx""L #t_!!&&(+G < _ < L"DSE JKKLs6 B A8-B 8 B B B B)B$$B))NNFr%)NNN)\__doc__loggingrrsrer urllib.parserrtypingrrrrrr r r r pip._internal.clir pip._internal.exceptionsrr!pip._internal.models.search_scoperpip._internal.network.sessionrpip._internal.network.utilsrpip._internal.utils.encodingrpip._internal.utils.urlsrr"pip._internal.index.package_finderr__all__r>r/ ReqFileLinesrcompileIrrrrqextra_index_urlrirreditablerg no_binary only_binaryr}rnr{ trusted_hostuse_new_featurerOption__annotations__global_optionshashconfig_settingsrr^rZ getLoggerr+rlrr4r0rrTr_rrErCrBr ExceptionrrrrPrQrRr)os0r'r s     )R94843 @  c3h( seU3;// 0 JJ-rtt 4 ZZ ' ZZ> ? NN;4hoo!567&OO?tHS(//%9:;6KK5Jc!#((m5JK   8 $''$((<)-)-   _ %hoo &     $,- 6   *.% % hoo &% % X)-)-$( C> C>C> C> _ % C> hoo & C> j ! C> C>P*.(,$( ) ) hoo &) _ %)j ! )  )XCCLH_5*0-S-U38_-" h++.5<5L5>$ $$ \ l 6# uS#XGLs!L