| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/setuptools/command/__pycache__/ |
Upload File : |
a
��e~ � @ sB d Z ddlZddlmZ ddlmZ ddlmZmZm Z m
Z
mZ ddlm
Z
ddlmZ dd lmZ ed
�Zeedf ZeZe
jZee
eef e ee eeee f f d�dd
�Ze
eef e
eee f d�dd�Zee
eee f e ee eeee f f d�dd�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Z dS )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)�Dict�List�Tuple�Mapping�TypeVar� )�_reqs)�yield_lines)�Requirement�_T)�install_requires�extras_require�returnc C s 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 �extras� r �C/usr/lib/python3.9/site-packages/setuptools/command/_requirestxt.py�_prepare s r )r r c C sL t t�}| �� D ]6\}}|| t�|�D ]}||t|� �|� q*q|S )z�
Convert requirements in `extras_require` of the form
`"extra": ["barbazquux; {marker}"]` to
`"extra:{marker}": ["barbazquux"]`.
)r �dict�itemsr
�parse�_suffix_for�
setdefault)r �output�section�v�rr r r r % s r c C sp t t�| ��}tt|�}tt|�}t tt|��}|D ]}|dt|j� � |� q4t
dd� |�� 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 s s4 | ],\}}|t t�d d� tt|�D ���fV qdS )c s s | ]}t |�V qd S �N)�str)�.0r r r r � <genexpr>P � z?_move_install_requirements_markers.<locals>.<genexpr>.<genexpr>N)�listr �fromkeys�map�
_clean_req)r# �kr r r r r$ N s �z5_move_install_requirements_markers.<locals>.<genexpr>)r&