Your IP : 216.73.216.178


Current Path : /usr/lib/python3.12/site-packages/setuptools/__pycache__/
Upload File :
Current File : //usr/lib/python3.12/site-packages/setuptools/__pycache__/_entry_points.cpython-312.pyc

�

Z�i�1=����J�ddlZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZd	�Zd
�Zd�Zde
j$fd
�Zej(d��Zej-e�d��Zej-ed�d��ede
j$fd��Zd�Zy)�N�)�OptionError)�yield_lines)�	pass_none)�metadata)�
ensure_unique)�consumec�p�	|jy#ttf$r}d|�d�}t|�|�d}~wwxYw)zR
    Exercise one of the dynamic properties to trigger
    the pattern match.
    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�msgs   �=/usr/lib/python3.12/site-packages/setuptools/_entry_points.py�ensure_validr
sL��
'�
�	�	���N�+�'�!���%R�
R�	��#��B�&��
'�s��5�0�5c��t|�}d|�d�dj|�z}tjj	|�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�texts    r�
load_grouprs@��
���E�
�u�g�S�>�D�I�I�e�,�,�D����*�*�4�0�0�c�2�|j|jfS�N)r�name)rs r�by_group_and_namer#(s��
�8�8�R�W�W��r�epsc	�V�tttt|t����|S)zM
    Ensure entry points are unique by group and name and validate each.
    ��key)r	�maprrr#�r$s r�validater*,s ���C��m�C�5F�G�H�I��Jrc��tjjd�|j�D��}t	tj|��S)zA
    Given a Distribution.entry_points, produce EntryPoints.
    c3�:K�|]\}}t||����y�wr!)r)�.0rrs   r�	<genexpr>zload.<locals>.<genexpr>9s ����+�%1�U�E�
�5�%� �+�s�)�	itertools�chain�
from_iterable�itemsr*rr)r$�groupss  r�loadr44sC��
�_�_�
*�
*�+�58�Y�Y�[�+��F��H�(�(��0�1�1rc�x�ttjtjj|���S)z�
    >>> ep, = load('[console_scripts]\nfoo=bar')
    >>> ep.group
    'console_scripts'
    >>> ep.name
    'foo'
    >>> ep.value
    'bar'
    )r*rrrr)s r�_r6?s+���H�(�(��)=�)=�)H�)H��)M�N�O�Orc��|Sr!�)�xs r�<lambda>r:Ms��A�rc��tjd�}tjt	||��|�}djd�|D��S)Nrr&rc3�FK�|]\}}d|�dt|��d����y�w)rrrN)�render_items)r-rr2s   rr.zrender.<locals>.<genexpr>Us)����V�|�u�e�q���s�<��#6�"7�r�:�V�s�!)�operator�
attrgetterr/�groupby�sortedr)r$�by_groupr3s   r�renderrCPs@���"�"�7�+�H�
�
�
�v�c�x�8�(�
C�F��9�9�V�v�V�V�Vrc�D�djd�t|�D��S)Nrc3�RK�|]}|j�d|j�����!y�w)z = N)r"r)r-rs  rr.zrender_items.<locals>.<genexpr>Ys#����E�2����y��B�H�H�:�.�E�s�%')rrAr)s rr=r=Xs���9�9�E����E�E�Er)�	functoolsr>r/�errorsr�extern.jaraco.textr�extern.jaraco.functoolsr�
_importlibr�
_itertoolsr�extern.more_itertoolsr	rrr#rr*�singledispatchr4�register�strr6�typerCr=r8rr�<module>rQs�������+�.� �%�*�
'� 1���(�&�&�����2��2����s��
P��
P��
�
�d�4�j�+�&��W��$�$�W��W�Fr