| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/wheel/__pycache__/ |
Upload File : |
�
�lc� � �~ � d Z ddlmZ ddlZddlZddlmZ ddlm Z ddl
mZ ddlm
Z
mZmZ dd�Zdd�Zdd�Zdd�ZdS )z2
Tools for converting old- to new-style metadata.
� )�annotationsN)�Message)�Parser)�Iterator)�Requirement�
safe_extra�split_sections�requirementr �return�strc �� � t | dd� � r
d| j z S g }| j D ]\ }}|� ||z � � �|r(dd� t |� � � � z dz S dS )zFReturn the version specifier for a requirement in PEP 345/566 fashion.�urlNz @ z (�,�)� )�getattrr �specs�append�join�sorted)r
�
requires_dist�op�vers �0/usr/lib/python3/dist-packages/wheel/metadata.py�requires_to_requires_distr s� � ��{�E�4�(�(� '��{��&�&��M��$� '� '���C����R�#�X�&�&�&�&�� ��c�h�h�v�m�4�4�5�5�5��;�;��r� �requirements� list[str]�
Iterator[str]c # �� K � | D ]c}t j |� � }t |� � }d� t |j � � � � }|rd|� d�}|j |z |z V � �ddS )z=Yield Requires-Dist: strings for parsed requirements strings.r �[�]N)r �parser r r �extras�project_name)r �req�parsed_requirement�specr$ s r �convert_requirementsr) s� � � � �� >� >��(�.�s�3�3��(�);�<�<�����&�!3�!:�;�;�<�<��� #�"��]�]�]�F� �-��6��=�=�=�=�=�>� >r �extras_require�dict[str, list[str]]�Iterator[tuple[str, str]]c # � K � | � � � D ]s\ }}d}|pd}d|v r|� dd� � \ }}t |� � }|rd|fV � |rd|z dz }|d|z z
}|rd|z }t |� � D ]}d ||z fV � ��td
S )a,
Convert requirements from a setup()-style dictionary to
('Requires-Dist', 'requirement') and ('Provides-Extra', 'extra') tuples.
extras_require is a dictionary of {extra: [requirements]} as passed to setup(),
using the empty extra {'': [requirements]} to hold install_requires.
r �:� �Provides-Extra�(z) and z
extra == '%s'z ; �
Requires-DistN)�items�splitr r) )r* �extra�depends� condition�new_reqs r �generate_requirementsr9 * s� � � � � )�.�.�0�0� 7� 7���w�� ������%�<�<�$�{�{�3��2�2��E�9��5�!�!��� 1�"�E�)�)�)�)��
7��)�O�h�6� ���5�0�0�I�� *�� �)�I�+�G�4�4� 7� 7�G�!�7�Y�#6�6�6�6�6�6� 7�!7� 7r �
egg_info_path�pkginfo_pathr c
� � t |d�� � 5 }t � � � |� � }ddd� � n# 1 swxY w Y |� dd� � |d= |d= t j � | d� � }t j � |� � r�t |� � 5 }|� � � }ddd� � n# 1 swxY w Y t t |� � d � �
� � }|D ]9\ }} t || i� � D ]"\ }
}|
|f|� � � vr|||
<