관리-도구
편집 파일: _requirestxt.cpython-311.pyc
� �܋f� � �� � d Z ddlmZ ddlZddlmZ ddlmZ ddlm Z m Z mZ ddlm Z dd lmZ dd lmZ ed� � Ze edf ZeZe j Zdd�Zdd�Zdd�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)�filterfalse)�Dict�Mapping�TypeVar� )�_reqs)�yield_lines)�Requirement�_T�install_requires� _StrOrIter�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 �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setuptools/command/_requirestxt.py�_preparer s"