403Webshell
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 :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/setuptools/command/__pycache__/_requirestxt.cpython-39.pyc
a

��e~�@sBdZddlZddlmZddlmZddlmZmZm	Z	m
Z
mZddlm
Z
ddlmZdd	lmZed
�ZeedfZeZe
jZee
eefe	eeeeeeffd�dd
�Ze
eefe
eeefd�dd�Zee
eeefe	eeeeeeffd�dd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Z dS)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
�N)�defaultdict)�filterfalse)�Dict�List�Tuple�Mapping�TypeVar�)�_reqs)�yield_lines)�Requirement�_T)�install_requires�extras_require�returncCst|�}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)rr�extras�r�C/usr/lib/python3.9/site-packages/setuptools/command/_requirestxt.py�_preparesr)rrcCsLtt�}|��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�rrrrr%srcCsptt�|��}tt|�}tt|�}ttt|��}|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	ss4|],\}}|tt�dd�tt|�D���fVqdS)css|]}t|�VqdS�N)�str)�.0rrrr�	<genexpr>P�z?_move_install_requirements_markers.<locals>.<genexpr>.<genexpr>N)�listr�fromkeys�map�
_clean_req)r#�krrrrr$Ns�z5_move_install_requirements_markers.<locals>.<genexpr>)r&r
r�filter�
_no_markerrr(r"�markerrrr)rrZ	inst_reqsZsimple_reqsZcomplex_reqsZsimple_install_requiresrZexpanded_extrasrrrr7s

�rcCs|jrdt|j�SdS)z;Return the 'extras_require' suffix for a given requirement.r �)r-r"��reqrrrrWsrcCstt|��}d|_|S)z=Given a Requirement, remove environment markers and return itN)rr"r-)r0rrrrr)\sr)cCs|jSr!)r-r/rrrr,csr,cCs,t|pd�}dd�}t||�}|�|�dS)NrcSs|dS)N�
r)�linerrr�	append_crjsz&_write_requirements.<locals>.append_cr)rr(�
writelines)�streamZreqs�linesr3rrr�_write_requirementsgs
r7cCs||j}t��}t|jpd|jp i�\}}t||�t|�D]*}|�dj	fit
����t|||�q:|�d||���dS)Nrz
[{extra}]
Zrequirements)
�distribution�io�StringIOrrrr7�sorted�write�format�vars�write_or_delete_file�getvalue)�cmd�basename�filenameZdist�datarrZextrarrr�write_requirementsqs�
rEcCs,t��}t||jj�|�d||���dS)Nzsetup-requirements)r9r:r7r8Zsetup_requiresr?r@)rArBrCrDrrr�write_setup_requirements~srF)!�__doc__r9�collectionsr�	itertoolsr�typingrrrrrr.r
Zextern.jaraco.textrZextern.packaging.requirementsrr
Z_OrderedrZ_orderedZ
_StrOrIterr"rrrrr)r,r7rErFrrrr�<module>s4	�
�� 


Youez - 2016 - github.com/yon3zu
LinuXploit