403Webshell
Server IP : 195.114.193.97  /  Your IP : 216.73.216.135
Web Server : LiteSpeed
System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
User : joker4274 ( 1074)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/lib/python3.10/dist-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/lib/python3.10/dist-packages/setuptools/command/__pycache__/_requirestxt.cpython-310.pyc
o

V��h��@s�dZddlmZddlZddlmZddlmZddlm	Z	ddl
mZddlm
Z
dd	lmZd
dlmZd
dlmZed
�ZeedfZd(dd�Zd)dd�Zd*dd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�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]]]cCst|�}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�J/usr/local/lib/python3.10/dist-packages/setuptools/command/_requirestxt.py�_prepares
r�'defaultdict[str, _Ordered[Requirement]]cCsXttttft�}|��D]\}}||t�|�D]
}||t|��	|�qq|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�rrrrr's�r�#Mapping[str, _Ordered[Requirement]]cCsptt�|��}tt|�}tt|�}ttt|��}|D]}|dt|j��	|�qt
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	ss6�|]\}}|tt�dd�tt|�D���fVqdS)css�|]}t|�VqdS�N)r)�.0r#rrr�	<genexpr>Rs�z?_move_install_requirements_markers.<locals>.<genexpr>.<genexpr>N)�listr�fromkeys�map�
_clean_req)r'�kr"rrrr(Ps
� �
�z5_move_install_requirements_markers.<locals>.<genexpr>)r)r
r�filter�
_no_markerrr+r�markerrrr)r
r�	inst_reqs�simple_reqs�complex_reqs�simple_install_requiresr#�expanded_extrasrrrr9s

�rcCs|jr
dt|j�SdS)z;Return the 'extras_require' suffix for a given requirement.r%�)r0r��reqrrrrYsrcCstt|��}d|_|S)z=Given a Requirement, remove environment markers and return itN)rrr0)r8r#rrrr,^sr,cCs|jSr&)r0r7rrrr/e�r/cCs,t|pd�}dd�}t||�}|�|�dS)NrcSs|dS)N�
r)�linerrr�	append_crlr9z&_write_requirements.<locals>.append_cr)rr+�
writelines)�stream�reqs�linesr<rrr�_write_requirementsis
rAcCs||j}t��}t|jpd|jpi�\}}t||�t|�D]}|�dj	dit
����t|||�q|�d||���dS)Nrz
[{extra}]
�requirements)
�distribution�io�StringIOrr
rrA�sorted�write�format�vars�write_or_delete_file�getvalue)�cmd�basename�filename�dist�datar
r�extrarrr�write_requirementsss�
rRcCs,t��}t||jj�|�d||���dS)Nzsetup-requirements)rDrErArC�setup_requiresrJrK)rLrMrNrPrrr�write_setup_requirements�srT)r
rrrrr)rrrr)r
rrr$rr)�__doc__�
__future__rrD�collectionsr�collections.abcr�	itertoolsr�typingr�jaraco.textr�packaging.requirementsrr6r
rrrrrrrrr,r/rArRrTrrrr�<module>s,	



 


Youez - 2016 - github.com/yon3zu
LinuXploit