HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/setuptools/__pycache__/_entry_points.cpython-310.pyc
o

��h�	�@s�ddlZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZd	d
�Zdd�Zd
d�Zde
jfdd�Zejdd��Ze�e�dd��Ze�ed�dd��ede
jfdd��Zdd�ZdS)�N)�	pass_none)�yield_lines)�consume�)�metadata)�
ensure_unique)�OptionErrorc
Cs@z|jWdSttfy}zd|�d�}t|�|�d}~ww)z�
    Exercise one of the dynamic properties to trigger
    the pattern match.

    This function is deprecated in favor of importlib_metadata 8.7 and
    Python 3.14 importlib.metadata, which validates entry points on
    construction.
    zProblems to parse zq.
Please ensure entry-point follows the spec: https://packaging.python.org/en/latest/specifications/entry-points/N)�extras�AttributeError�AssertionErrorr)�ep�ex�msg�r�C/usr/local/lib/python3.10/dist-packages/setuptools/_entry_points.py�ensure_valids	
�
��rcCs*t|�}d|�d�d�|�}tj�|�S)zf
    Given a value of an entry point or series of entry points,
    return each as an EntryPoint.
    �[�]
�
)r�joinr�EntryPoints�
_from_text)�value�group�lines�textrrr�
load_group"srcCs|j|jfS�N)r�name)rrrr�by_group_and_name-sr�epscCstttt|td���|S)zM
    Ensure entry points are unique by group and name and validate each.
    ��key)r�maprrr�r rrr�validate1sr%cCs(tj�dd�|��D��}tt�|��S)zA
    Given a Distribution.entry_points, produce EntryPoints.
    css�|]
\}}t||�VqdSr)r)�.0rrrrr�	<genexpr>>s�
�zload.<locals>.<genexpr>)�	itertools�chain�
from_iterable�itemsr%rr)r �groupsrrr�load9s�r-cCstt�tj�|���S)z�
    >>> ep, = load('[console_scripts]\nfoo=bar')
    >>> ep.group
    'console_scripts'
    >>> ep.name
    'foo'
    >>> ep.value
    'bar'
    )r%rrrr$rrr�_Dsr.cCs|Srr)�xrrr�<lambda>Rsr0cCs2t�d�}t�t||d�|�}d�dd�|D��S)Nrr!rcss*�|]\}}d|�dt|��d�VqdS)rrrN)�render_items)r&rr+rrrr'Zs�(zrender.<locals>.<genexpr>)�operator�
attrgetterr(�groupby�sortedr)r �by_groupr,rrr�renderUs
r7cCsd�dd�t|�D��S)Nrcss"�|]}|j�d|j��VqdS)z = N)rr)r&rrrrr'^s� zrender_items.<locals>.<genexpr>)rr5r$rrrr1]sr1)�	functoolsr(r2�jaraco.functoolsr�jaraco.textr�more_itertoolsr�
_importlibr�
_itertoolsr�errorsrrrrrr%�singledispatchr-�register�strr.�typer7r1rrrr�<module>s*