HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/setuptools/__pycache__/_entry_points.cpython-37.pyc
B

N��g��@s�ddlZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZd	d
�Zdd�Zd
d�Ze
jd�dd�Zejdd��Ze�e�dd��Ze�ed�dd��ee
jd�dd��Zdd�ZdS)�N�)�OptionError)�yield_lines)�	pass_none)�metadata)�
ensure_unique)�consumec
CsHy
|jWn8tk
rB}zd|�d�}t|�|�Wdd}~XYnXdS)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�AttributeErrorr)�ep�ex�msg�r�</tmp/pip-unpacked-wheel-yrlplx0q/setuptools/_entry_points.py�ensure_valid
s

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.
    �[z]
�
)r�joinr�EntryPoints�
_from_text)�value�group�lines�textrrr�
load_groupsrcCs|j|jfS)N)r�name)rrrr�by_group_and_name'sr)�epscCstttt|td���|S)zM
    Ensure entry points are unique by group and name and validate each.
    )�key)r�maprrr)rrrr�validate+sr cCs(tj�dd�|��D��}tt�|��S)zA
    Given a Distribution.entry_points, produce EntryPoints.
    css|]\}}t||�VqdS)N)r)�.0rrrrr�	<genexpr>9szload.<locals>.<genexpr>)�	itertools�chain�
from_iterable�itemsr rr)r�groupsrrr�load3sr(cCstt�tj�|���S)z�
    >>> ep, = load('[console_scripts]\nfoo=bar')
    >>> ep.group
    'console_scripts'
    >>> ep.name
    'foo'
    >>> ep.value
    'bar'
    )r rrr)rrrr�_>sr)cCs|S)Nr)�xrrr�<lambda>L�r+cCs2t�d�}t�t||d�|�}d�dd�|D��S)Nr)rrcss(|] \}}d|�dt|��d�VqdS)rz]
rN)�render_items)r!rr&rrrr"Uszrender.<locals>.<genexpr>)�operator�
attrgetterr#�groupby�sortedr)rZby_groupr'rrr�renderOs

r2cCsd�dd�t|�D��S)Nrcss |]}|j�d|j��VqdS)z = N)rr)r!rrrrr"\szrender_items.<locals>.<genexpr>)rr1)rrrrr-Zsr-)�	functoolsr.r#�errorsrZextern.jaraco.textrZextern.jaraco.functoolsrZ
_importlibr�
_itertoolsrZextern.more_itertoolsrrrrrr �singledispatchr(�register�strr)�typer2r-rrrr�<module>s$