§ w<ˆj„ãóä—dZddlmZddlZddlmZddlmZddlm Z ddl m Z ddl m Z dd lmZd d lmZd d lmZe d ¦«ZeedfZdd„Zd d„Zd!d„Zd„Zd„Zd„Zd„Zd„Zd„ZdS)"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Ú_TÚinstall_requiresr Úextras_requireúMapping[str, _StrOrIter]Úreturnú&tuple[list[str], dict[str, list[str]]]có@—t|¦«}t||¦«S)z�Given 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)rrÚextrass úq/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/setuptools/command/_requirestxt.pyÚ_preparers"€õ *¨.Ñ 9Ô 9€FÝ -Ð.>ÀÑ GÔ GÐGóú'defaultdict[str, _Ordered[Requirement]]có0—ttttft¦«}| ¦«D]O\}}||t j|¦«D]-}||t|¦«z  |¦«Œ.ŒP|S)z‘ Convert requirements in `extras_require` of the form `"extra": ["barbazquux; {marker}"]` to `"extra:{marker}": ["barbazquux"]`. ) rÚstrÚ_Orderedr ÚdictÚitemsr ÚparseÚ _suffix_forÚ setdefault)rÚoutputÚsectionÚvÚrs rrr's’€õ��h¥{Ô3Ð3Ô 4µTÑ :Ô :€FØ$×*Ò*Ñ,Ô,ð;ð;‰ ˆ�àˆwŒˆÝ”˜Q‘”ð ;ð ;ˆAØ �7�[¨™^œ^Ñ+Ô ,× 7Ò 7¸Ñ :Ô :Ð :Ð :ð ;ð €Mrú#Mapping[str, _Ordered[Requirement]]có¤—ttj|¦«¦«}tt|¦«}t t|¦«}tt t|¦«¦«}|D]2}|dt|j¦«z  |¦«Œ3td„|  ¦«D¦«¦«}||fS)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ó¨K—|]M\}}|tt d„tt|¦«D¦«¦«¦«fV—ŒNdS)c3ó4K—|]}t|¦«V—ŒdS©N)r)Ú.0r&s rú z?_move_install_requirements_markers...Rs(èè€ÐBÐB¨!�s 1™vœvÐBÐBÐBÐBÐBÐBrN)ÚlistrÚfromkeysÚmapÚ _clean_req)r-Úkr%s rr.z5_move_install_requirements_markers..Psnèè€ððñ ˆAˆqð �D•—’ÐBÐB­sµ:¸qÑ/AÔ/AÐBÑBÔBÑBÔBÑ CÔ CÐDððððððr) r/r r ÚfilterÚ _no_markerrr1rÚmarkerr"rr)rrÚ inst_reqsÚ simple_reqsÚ complex_reqsÚsimple_install_requiresr&Úexpanded_extrass rrr9sЀõ•U”[Ð!1Ñ2Ô2Ñ3Ô3€IÝ� YÑ/Ô/€KÝ�z¨9Ñ5Ô5€LÝ"¥3¥s¨KÑ#8Ô#8Ñ9Ô9Ðà ð:ð:ˆØ�s�S ¤™]œ]Ñ*Ô+×6Ò6°qÑ9Ô9Ð9Ð9åððð#×(Ò(Ñ*Ô*ðñôñô€Oð # OÐ 3Ð3rcóB—|jrdt|j¦«zndS)z;Return the 'extras_require' suffix for a given requirement.r)Ú)r6r©Úreqs rr!r!Ys!€à$'¤JÐ 6ˆ3•�S”Z‘”Ñ Ð °BÐ6rcóL—tt|¦«¦«}d|_|S)z=Given a Requirement, remove environment markers and return itN)r rr6)r?r&s rr2r2^s!€å•C˜‘H”HÑÔ€AØ€A„HØ €Hrcó—|j Sr,)r6r>s rr5r5es €ØŒzˆ>Ðrcóx—t|pd¦«}d„}t||¦«}| |¦«dS)N©có —|dzS)Nú rC)Úlines rÚ append_crz&_write_requirements..append_crls €Ø�d‰{Ðr)rr1Ú writelines)ÚstreamÚreqsÚlinesrGs rÚ_write_requirementsrLisM€Ý ˜˜  Ñ #Ô #€Eðððõ � ˜5Ñ !Ô !€EØ ×Ò�eÑÔÐÐÐrc ó–—|j}tj¦«}t|jpd|jpi¦«\}}t ||¦«t|¦«D]D}| dj dit¦«¤Ž¦«t |||¦«ŒE|  d||  ¦«¦«dS)NrCz [{extra}] Ú requirements) Ú distributionÚioÚStringIOrrrrLÚsortedÚwriteÚformatÚvarsÚwrite_or_delete_fileÚgetvalue)ÚcmdÚbasenameÚfilenameÚdistÚdatarrÚextras rÚwrite_requirementsr^ssÑ€Ø Ô €DÝ Œ;‰=Œ=€DÝ'/Ø ÔÐ#  TÔ%8Ð%>¸Bñ(ô(Ñ$Ð�nõ˜Ð.Ñ/Ô/Ð/ݘÑ'Ô'ð9ð9ˆØ � Š Ð)�?Ô)Ð3Ð3­D©F¬FÐ3Ð3Ñ4Ô4Ð4ݘD .°Ô"7Ñ8Ô8Ð8Ð8Ø×Ò˜^¨X°t·}²}±´ÑGÔGÐGÐGÐGrcó²—tj¦«}t||jj¦«| d|| ¦«¦«dS)Nzsetup-requirements)rPrQrLrOÚsetup_requiresrVrW)rXrYrZr\s rÚwrite_setup_requirementsra€sJ€Ý Œ;‰=Œ=€Dݘ˜cÔ.Ô=Ñ>Ô>Ð>Ø×ÒÐ1°8¸T¿]º]¹_¼_ÑMÔMÐMÐMÐMr)rr rrrr)rrrr)rr rr'rr)Ú__doc__Ú __future__rrPÚ collectionsrÚcollections.abcrÚ itertoolsrÚtypingrÚ jaraco.textrÚpackaging.requirementsr r=r r r rrrrrr!r2r5rLr^rarCrrúrjs…ðððð#Ð"Ð"Ð"Ð"Ð"à € € € Ø#Ð#Ð#Ð#Ð#Ð#Ø#Ð#Ð#Ð#Ð#Ð#Ø!Ð!Ð!Ð!Ð!Ð!ØÐÐÐÐÐà#Ð#Ð#Ð#Ð#Ð#Ø.Ð.Ð.Ð.Ð.Ð.àÐÐÐÐÐØÐÐÐÐÐð €WˆT�]„]€Ø ��D�Œ>€ðHðHðHðHððððð$4ð4ð4ð4ð@7ð7ð7ð  ð ð ððððððð Hð Hð HðNðNðNðNðNr