§ w<ˆj„ ã óä — d Z ddlmZ ddlZddlmZ ddlmZ ddlm Z ddl mZ ddlm Z dd lmZ d dlmZ d dlmZ ed ¦ « Zeedf Zdd„Zd d„Zd!d„Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ ZdS )"aS Helper 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)r r Úextrass úq/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/setuptools/command/_requirestxt.pyÚ_preparer s" € õ *¨.Ñ 9Ô 9€FÝ-Ð.>ÀÑGÔGÐGó ú'defaultdict[str, _Ordered[Requirement]]c ó0 — t t t t f t ¦ « }| ¦ « 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 r r r ' s’ € õ ��h¥{Ô3Ð3Ô 4µTÑ :Ô :€FØ$×*Ò*Ñ,Ô,ð ;ð ;‰ ˆ�àˆwŒˆÝ”˜Q‘”ð ;ð ;ˆAØ�7�[¨™^œ^Ñ+Ô,×7Ò7¸Ñ:Ô:Ð:Ð:ð ;ð €Mr ú#Mapping[str, _Ordered[Requirement]]c ó¤ — t t j | ¦ « ¦ « }t t |¦ « }t t |¦ « }t t t |¦ « ¦ « }|D ]2}|dt |j ¦ « z |¦ « Œ3t d„ | ¦ « 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\ }}|t t d „ t t |¦ « D ¦ « ¦ « ¦ « fV — ŒNdS )c 3 ó4 K — | ]}t |¦ « V — Œd S ©N)r )Ú.0r&