PATH:
opt
/
alt
/
python311
/
lib
/
python3.11
/
site-packages
/
setuptools
/
_vendor
/
importlib_metadata
/
__pycache__
� ,�Re�u � � � d dl Z d dlZd dlZd dlZd dlZddlmZ d dlZd dlZd dl Z d dl Z d dlZd dlZd dl Z d dlZd dlZddlmZmZ ddlmZmZ ddlmZmZmZ ddlmZmZ dd lmZmZ dd lmZm Z d dl!m"Z" d dl#m$Z$ d d l%m&Z& d dl m'Z' d dl(m)Z)m*Z*m+Z+m,Z, g d�Z- G d� de.� � Z/ G d� d� � Z0 G d� d� � Z1 G d� de1� � Z2 G d� de3� � Z4 G d� de4� � Z5 G d� d� � Z6 G d� d e6e7� � Z8 G d!� d"ej9 � � Z: G d#� d$� � Z; G d%� d&� � Z< G d'� d(e&� � Z= G d)� d*� � Z> G d+� d,� � Z? G d-� d.� � Z@e G d/� d0ee=� � � � ZA G d1� d2e<� � ZBd3� ZCd4� ZDd5ej fd6�ZEd7� ZFd5e,e5e8f fd8�ZGd9� ZHd:� ZId5e*eJe)eJ f fd;�ZKd<� ZLd=� ZMdS )>� N� )�zipp� )� _adapters�_meta)�FreezableDefaultDict�Pair)� NullFinder�install�pypy_partial)�method_cache� pass_none)�always_iterable�unique_everseen)�PackageMetadata� SimplePath)�suppress)� import_module)�MetaPathFinder)�starmap)�List�Mapping�Optional�Union)�Distribution�DistributionFinderr �PackageNotFoundError�distribution� distributions�entry_points�files�metadata�packages_distributions�requires�versionc �. � e Zd ZdZd� Zed� � � ZdS )r zThe package was not found.c � � d| j � �S )Nz"No package metadata was found for ��name��selfs ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/_vendor/importlib_metadata/__init__.py�__str__zPackageNotFoundError.__str__6 s � �?�D�I�?�?�?� c � � | j \ }|S �N)�args�r+ r) s r, r) zPackageNotFoundError.name9 s � ��)����r. N)�__name__� __module__�__qualname__�__doc__r- �propertyr) � r. r, r r 3 sG � � � � � �$�$�@� @� @� �� � �X�� � r. r c � � e Zd ZdZ ej d� � � � � Zed� � � Z e dd�� � Ze d� � � ZdS )� Sectioneda� A simple entry point config parser for performance >>> for item in Sectioned.read(Sectioned._sample): ... print(item) Pair(name='sec1', value='# comments ignored') Pair(name='sec1', value='a = 1') Pair(name='sec1', value='b = 2') Pair(name='sec2', value='a = 2') >>> res = Sectioned.section_pairs(Sectioned._sample) >>> item = next(res) >>> item.name 'sec1' >>> item.value Pair(name='a', value='1') >>> item = next(res) >>> item.value Pair(name='b', value='2') >>> item = next(res) >>> item.name 'sec2' >>> item.value Pair(name='a', value='2') >>> list(res) [] zm [sec1] # comments ignored a = 1 b = 2 [sec2] a = 2 c �N � d� | � || j �� � D � � S )Nc 3 �~ K � | ]8}|j � |� t j |j � � �� � V � �9d S )N)�value)r) �_replacer �parser= )�.0�sections r, � <genexpr>z*Sectioned.section_pairs.<locals>.<genexpr>j sS � � � � � ���|�'� ���4�:�g�m�#<�#<��=�=�'�'�'�'� � r. )�filter_)�read�valid)�cls�texts r, � section_pairszSectioned.section_pairsh s5 � � � ��8�8�D�#�)�8�<�<� � � � r. Nc # �4 K � t |t t j | � � � � � � � }d }|D ]V}|� d� � o|� d� � }|r|� d� � }�Dt ||� � V � �Wd S )N�[�]z[])�filter�map�str�strip� splitlines� startswith�endswithr )rG rC �linesr) r= � section_matchs r, rD zSectioned.readp s� � � � ��w��C�I�t���/@�/@� A� A�B�B����� $� $�E�!�,�,�S�1�1�I�e�n�n�S�6I�6I�M�� ��{�{�4�(�(����t�U�#�#�#�#�#�#� $� $r. c �2 � | o| � d� � S )N�#)rQ )�lines r, rE zSectioned.valid{ s � ��0�D�O�O�C�0�0�0�0r. r0 ) r3 r4 r5 r6 �textwrap�dedent�lstrip�_sample�classmethodrH �staticmethodrD rE r8 r. r, r: r: ? s� � � � � � �� �8 �h�o� � � � �f�h�h� � � � � �[� � �$� $� $� �\�$� �1� 1� �\�1� 1� 1r. r: c �\ � e Zd ZdZ ej ej de e d� � �� � Z d� ZdS )�DeprecatedTuplea Provide subscript item access for backward compatibility. >>> recwarn = getfixture('recwarn') >>> ep = EntryPoint(name='name', value='value', group='group') >>> ep[:] ('name', 'value', 'group') >>> ep[0] 'name' >>> len(recwarn) 1 zAEntryPoint tuple interface is deprecated. Access members by name.r �� stacklevelc �^ � | � � � | � � � | S r0 )�_warn�_key)r+ �items r, �__getitem__zDeprecatedTuple.__getitem__� s"