File: //usr/local/lib/python3.10/dist-packages/setuptools/__pycache__/_entry_points.cpython-310.pyc
o
��h� � @ s� d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ ddl m
Z
ddlmZ ddl
mZ d d
� Zdd� Zd
d� Zde
jfdd�Ze jdd� �Ze�e�dd� �Ze�ed�dd� � ede
jfdd��Zdd� ZdS )� N)� pass_none)�yield_lines)�consume� )�metadata)�
ensure_unique)�OptionErrorc
C s@ z| j W dS ttfy } 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_valid s
�
��r c C s* 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�textr r r �
load_group"