_i J d dl Z d dlZd dlZddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ d Zd
Zd Zde
j$ fd
Ze j( d Zej- e d Zej- ed d ede
j$ fd Zd Zy) N )OptionError)yield_lines) pass_none)metadata)
ensure_unique)consumec d | j y# t $ r}d| d}t | |d}~ww xY w)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)extrasAttributeErrorr )epexmsgs /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/_entry_points.pyensure_validr
sE
'
' %R
R #B&'s /*/c t | }d| ddj | z }t j j | S )zf
Given a value of an entry point or series of entry points,
return each as an EntryPoint.
[]
)r joinr EntryPoints
_from_text)valuegrouplinestexts r
load_groupr s@
E
ugS>DIIe,,D**400 c 2 | j | j fS N)r name)r
s r by_group_and_namer" ' s
88RWWr epsc V t t t t | t | S )zM
Ensure entry points are unique by group and name and validate each.
key)r mapr r r" r# s r validater) + s CmC5FGHIJr c t j j d | j D }t t j | S )zA
Given a Distribution.entry_points, produce EntryPoints.
c 3 : K | ] \ }}t || y wr )r ).0r r s r