5hSrSSKJr SSKrSSKJr SSKJr SSKJ r SSK J r SSK J r SS KJr S S KJr S S KJr \ "S 5r\\S4rSSjrSSjrSSjrSrSrSrSrSrSrg)aSHelper code used to generate ``requires.txt`` files in the egg-info directory. The ``requires.txt`` file has an specific format: - Environment markers need to be part of the section headers and should not be part of the requirement spec itself. See https://setuptools.pypa.io/en/latest/deprecated/python_eggs.html#requires-txt ) annotationsN) defaultdict)Mapping) filterfalse)TypeVar) yield_lines) Requirement)_reqs) _StrOrIter_Tc.[U5n[X5$)zGiven values for ``install_requires`` and ``extras_require`` create modified versions in a way that can be written in ``requires.txt`` )_convert_extras_requirements"_move_install_requirements_markers)install_requiresextras_requireextrass A/usr/lib/python3/dist-packages/setuptools/command/_requirestxt.py_preparers *. 9F -.> GGc[[[[4"[5nUR 5HEup#X [ R"U5H"nX[U5-RU5 M$ MG U$)z Convert requirements in `extras_require` of the form `"extra": ["barbazquux; {marker}"]` to `"extra:{marker}": ["barbazquux"]`. ) rstr_Orderedr dictitemsr parse _suffix_for setdefault)routputsectionvrs rrr'sjh{33 4T :F$**, QA [^+ , 7 7 : - Mrc^[[R"U55n[[U5n[ [U5n[[ [U55nUH-nUS[UR5-RU5 M/ [SUR555nXW4$)a The ``requires.txt`` file has an specific format: - Environment markers need to be part of the section headers and should not be part of the requirement spec itself. Move requirements in ``install_requires`` that are using environment markers ``extras_require``. :c 3# UH<upU[[RS[[U55554v M> g7f)c38# UHn[U5v M g7fN)r).0r"s r ?_move_install_requirements_markers...RsB/A!s1vv/AsN)listrfromkeysmap _clean_req)r(kr!s rr)5_move_install_requirements_markers..Ps;+DA DBs:q/ABB CD*sAA) r+r rfilter _no_markerrr-rmarkerrrr)rr inst_reqs simple_reqs complex_reqssimple_install_requiresr"expanded_extrass rrr9sU[[!123IY/Kz95L"3sK#89 sS]*+66q9#((*O # 33rcXUR(aS[UR5-$S$)z;Return the 'extras_require' suffix for a given requirement.r$)r3rreqs rrrYs $'JJ3SZZ 6B6rc<[[U55nSUlU$)z=Given a Requirement, remove environment markers and return itN)r rr3)r<r"s rr.r.^sCHAAH Hrc$UR(+$r')r3r;s rr2r2eszz>rc~[U=(d S5nSn[U[U55nURU5 g)Nc US-$)N r@)lines r append_cr&_write_requirements..append_crls d{r)rr-sorted writelines)streamreqslinesrDs r_write_requirementsrKis5   #E  6%= )E erc URn[R"5n[UR=(d SUR =(d 05upV[ XE5 [U5H:nURSR"S0[5D65 [ XFU5 M< URSX$R55 g)Nr@z [{extra}] requirements) distributionioStringIOrrrrKrFwriteformatvarswrite_or_delete_filegetvalue)cmdbasenamefilenamedistdatarrextras rwrite_requirementsr\ss   D ;;=D'/ #T%8%8%>B($/' ?))3DF34D"78(^X}}Grc[R"5n[X0RR5 UR SX#R 55 g)Nzsetup-requirements)rOrPrKrNsetup_requiresrTrU)rVrWrXrZs rwrite_setup_requirementsr_s8 ;;=D..==>18]]_Mr)rr rMapping[str, _StrOrIter]return&tuple[list[str], dict[str, list[str]]])rr`raz'defaultdict[str, _Ordered[Requirement]])rr rz#Mapping[str, _Ordered[Requirement]]rarb)__doc__ __future__rrO collectionsrcollections.abcr itertoolsrtypingr jaraco.textrpackaging.requirementsr r:r r r rrrrrrr.r2rKr\r_r@rrrks# ##!#. T] D>H H2JH+H,,$4 42U4+4@7   HNr