_io h d Z ddlZddlmZ ddlmZ ddlmZmZm Z m Z mZ ddlm Z ddlmZ dd lmZ ed Zeedf ZeZe j, Zdede eef d e ee eeee f f fdZded e eee f fdZdede eee f d e ee eeee f f fdZd Zd Zd Zd Zd Zd Z y)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 N)defaultdict)filterfalse)DictListTupleMappingTypeVar )_reqs)yield_lines)Requirement_Tinstall_requiresextras_requirereturnc 0 t | }t | | S )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)r r extrass /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/command/_requirestxt.py_preparer s *. 9F-.>GG c t t }| j D ]D \ }}|| t j | D ]" }||t | z j | $ F |S )z Convert requirements in `extras_require` of the form `"extra": ["barbazquux; {marker}"]` to `"extra:{marker}": ["barbazquux"]`. )r dictitemsr parse_suffix_for setdefault)r outputsectionvrs r r r $ sa 3>d2CF$**, wQA7[^+,77: - Mr c Z t t j | }t t | }t t | }t t t | }|D ], }|dt |j z j | . t d |j 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 | ]<