Your IP : 18.224.43.98


Current Path : /opt/alt/python312/lib64/python3.12/importlib/metadata/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/importlib/metadata/__pycache__/__init__.cpython-312.opt-2.pyc

�

�Q�fUp��8�ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlmZmZddlmZmZddlmZmZddlmZmZddlmZmZddlmZdd	l m!Z!dd
l"m#Z#ddlm$Z$ddl%m&Z&m'Z'm(Z(m)Z)gd
�Z*Gd�de+�Z,Gd�d�Z-Gd�d�Z.Gd�de.�Z/Gd�de0�Z1Gd�dejd�Z3Gd�d�Z4Gd�d�Z5Gd�de5�Z6Gd �d!e#�Z7Gd"�d#�Z8Gd$�d%�Z9Gd&�d'�Z:Gd(�d)e7�Z;Gd*�d+e6�Z<d,�Z=d-�Z>d.ej:fd/�Z?d0�Z@ej�eej�d1��2�ZC	d.e1fd3�ZDd4�ZEd5�ZFd.e'eGe&eGffd6�ZHd7�ZId8�ZJy)9�N�)�	_adapters�_meta)�FreezableDefaultDict�Pair)�method_cache�	pass_none)�always_iterable�unique_everseen)�PackageMetadata�
SimplePath)�suppress)�
import_module)�MetaPathFinder)�starmap)�List�Mapping�Optional�cast)�Distribution�DistributionFinderr�PackageNotFoundError�distribution�
distributions�entry_points�files�metadata�packages_distributions�requires�versionc�$�eZdZ	d�Zed��Zy)rc� �d|j��S)Nz"No package metadata was found for ��name��selfs �B/opt/alt/python312/lib64/python3.12/importlib/metadata/__init__.py�__str__zPackageNotFoundError.__str__3s��3�D�I�I�;�?�?�c�"�|j\}|S�N)�args�r&r$s  r'r$zPackageNotFoundError.name6s���)�)����r)N)�__name__�
__module__�__qualname__r(�propertyr$�r)r'rr0s��$�@����r)rc��eZdZ	ejd�j�Zed��Ze	dd��Z
e	d��Zy)�	Sectionedzm
        [sec1]
        # comments ignored
        a = 1
        b = 2

        [sec2]
        a = 2
        c�J�d�|j||j��D�S)Nc3�K�|]?}|j�1|jtj|j������Ay�w)N)�value)r$�_replacer�parser7)�.0�sections  r'�	<genexpr>z*Sectioned.section_pairs.<locals>.<genexpr>gs=����
�<���|�|�'�
���4�:�:�g�m�m�#<��=�<�s�AA)�filter_)�read�valid)�cls�texts  r'�
section_pairszSectioned.section_pairses%��
��8�8�D�#�)�)�8�<�
�	
r)Nc#�K�t|ttj|j	���}d}|D]H}|jd�xr|j
d�}|r|jd�}�;t||����Jy�w)N�[�]z[])�filter�map�str�strip�
splitlines�
startswith�endswithr)rAr=�linesr$r7�
section_matchs      r'r>zSectioned.readmsr�����w��C�I�I�t���/@� A�B�����E�!�,�,�S�1�I�e�n�n�S�6I�M���{�{�4�(����t�U�#�#��s�BBc�.�|xr|jd�S)N�#)rK)�lines r'r?zSectioned.validxs���0�D�O�O�C�0�0�0r)r+)r.r/r0�textwrap�dedent�lstrip�_sample�classmethodrB�staticmethodr>r?r2r)r'r4r4<sf���8�h�o�o�	�
�
�f�h���
��
��$��$��1��1r)r4c�T�eZdZ	ejejded��Zd�Z	y)�DeprecatedTuplezAEntryPoint tuple interface is deprecated. Access members by name.���
stacklevelc�H�|j�|j�|Sr+)�_warn�_key)r&�items  r'�__getitem__zDeprecatedTuple.__getitem__�s���
�
���y�y�{�4� � r)N)
r.r/r0�	functools�partial�warnings�warn�DeprecationWarningr^rar2r)r'rYrY}s0���
�I����
�
�K���	
�E�!r)rYc���eZdZU	ejd�Z	eed<eed<eed<dZe	ded<d�Z
d	�Zed
��Z
ed��Zed��Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zy)�
EntryPointzH(?P<module>[\w.]+)\s*(:\s*(?P<attr>[\w.]+)\s*)?((?P<extras>\[.*\])\s*)?$r$r7�groupNr�distc�>�t|�j|||��y)N�r$r7ri��vars�update)r&r$r7ris    r'�__init__zEntryPoint.__init__�s���T�
���t�5���>r)c��	|jj|j�}t|j	d��}td|j	d�xsdj
d��}tjt||�S)N�module�attr��.)
�pattern�matchr7rrirF�splitrb�reduce�getattr)r&rwrr�attrss    r'�loadzEntryPoint.load�sn��	����"�"�4�:�:�.���u�{�{�8�4�5���t�e�k�k�&�1�7�R�>�>�s�C�D��������7�7r)c�n�|jj|j�}|jd�S)Nrr�rvrwr7ri�r&rws  r'rrzEntryPoint.module�s)�����"�"�4�:�:�.���{�{�8�$�$r)c�n�|jj|j�}|jd�S)Nrsr~rs  r'rszEntryPoint.attr�s)�����"�"�4�:�:�.���{�{�6�"�"r)c��|jj|j�}tjd|jd�xsd�S)Nz\w+�extrasrt)rvrwr7�re�findallrirs  r'r�zEntryPoint.extras�s9�����"�"�4�:�:�.���z�z�&�%�+�+�h�"7�"=�2�>�>r)c�<�t|�j|��|S)N�rjrm)r&rjs  r'�_forzEntryPoint._for�s���T�
���t��$��r)c���	�fd�|D�}tttj|j	�|��S)Nc3�6�K�|]}t�|����y�wr+�rz)r:�paramr&s  �r'r<z%EntryPoint.matches.<locals>.<genexpr>�s�����:�6�%���u�%�6�s�)�allrG�operator�eq�values)r&�paramsr{s`  r'�matcheszEntryPoint.matches�s2���	�&;�6�:���3�x�{�{�F�M�M�O�U�;�<�<r)c�H�|j|j|jfSr+rlr%s r'r_zEntryPoint._key�s���y�y�$�*�*�d�j�j�0�0r)c�D�|j�|j�kSr+�r_�r&�others  r'�__lt__zEntryPoint.__lt__�s���y�y�{�U�Z�Z�\�)�)r)c�D�|j�|j�k(Sr+r�r�s  r'�__eq__zEntryPoint.__eq__s���y�y�{�e�j�j�l�*�*r)c��td��)Nz!EntryPoint objects are immutable.)�AttributeError)r&r$r7s   r'�__setattr__zEntryPoint.__setattr__s���@�A�Ar)c�V�d|j�d|j�d|j�d�S)NzEntryPoint(name=z, value=z, group=�)rlr%s r'�__repr__zEntryPoint.__repr__s2���t�y�y�m�8�D�J�J�>�B��Z�Z�N�!�
%�	
r)c�4�t|j��Sr+)�hashr_r%s r'�__hash__zEntryPoint.__hash__
s���D�I�I�K� � r))r.r/r0r��compilervrH�__annotations__rjrrpr|r1rrrsr�r�r�r_r�r�r�r�r�r2r)r'rhrh�s���� �b�j�j�	%��G�
� �I��J��J�%)�D�(�>�
"�)�?�8��%��%��#��#��?��?��=�.1�*�+�B�
�!r)rhc�^�eZdZ	dZd�Zd�Zed��Zed��Ze	d��Z
ed��Zy)	�EntryPointsr2c�~�		tt|j|����S#t$rt	|��wxYw)Nr#)�next�iter�select�
StopIteration�KeyErrorr-s  r'razEntryPoints.__getitem__s@��	�	!���T�[�[�d�[�3�4�5�5���	!��4�.� �	!�s�#'�<c�.��	t�fd�|D��S)Nc3�H�K�|]}|jdi���s�|���y�w�Nr2)r�)r:�epr�s  �r'r<z%EntryPoints.select.<locals>.<genexpr>&s"�����E��"�
��
�
�0D�V�0D�2��s�"�")r�)r&r�s `r'r�zEntryPoints.select!s���	��E��E�E�Er)c�B�	|D�chc]}|j��c}Scc}wr+r#�r&r�s  r'�nameszEntryPoints.names(s%��	�#'�'�$�B����$�'�'��'��c�B�	|D�chc]}|j��c}Scc}wr+)rir�s  r'�groupszEntryPoints.groups/s%��	�$(�(�4�R����4�(�(��(r�c�D��|�fd�|j|�D��S)Nc3�@�K�|]}|j�����y�wr+)r�)r:r�rjs  �r'r<z-EntryPoints._from_text_for.<locals>.<genexpr>8s�����@�+?�R�2�7�7�4�=�+?���)�
_from_text)r@rArjs  `r'�_from_text_forzEntryPoints._from_text_for6s����@�3�>�>�$�+?�@�@�@r)c�B�d�tj|xsd�D�S)Nc3�K�|]D}t|jj|jj|j�����Fy�w)rlN)rhr7r$)r:r`s  r'r<z)EntryPoints._from_text.<locals>.<genexpr><s:����
�;��
�D�J�J�O�O�4�:�:�3C�3C�4�9�9�U�U�;�s�A
Art)r4rB)rAs r'r�zEntryPoints._from_text:s#��
�!�/�/��
��;�
�	
r)N)
r.r/r0�	__slots__rar�r1r�r�rVr�rWr�r2r)r'r�r�sk����I�!�F��(��(��)��)��A��A��
��
r)r�c�"�eZdZ	dd�Zd�Zd�Zy)�PackagePathc��|j�j|��5}|j�cddd�S#1swYyxYw)N��encoding��locate�openr>)r&r��streams   r'�	read_textzPackagePath.read_textEs5��
�[�[�]�
�
��
�
2�f��;�;�=�	!�	!�
2�
2�s	�;�Ac��|j�jd�5}|j�cddd�S#1swYyxYw)N�rbr�)r&r�s  r'�read_binaryzPackagePath.read_binaryIs2��
�[�[�]�
�
��
%���;�;�=�	!�	!�
%�
%�s	�:�Ac�:�	|jj|�Sr+)rj�locate_filer%s r'r�zPackagePath.locateMs��5��y�y�$�$�T�*�*r)N)�utf-8)r.r/r0r�r�r�r2r)r'r�r�Bs��,�!�!�+r)r�c��eZdZd�Zd�Zy)�FileHashc�B�|jd�\|_}|_y)N�=)�	partition�moder7)r&�spec�_s   r'rpzFileHash.__init__Ss��#'�>�>�#�#6� ��	�1�d�jr)c�<�d|j�d|j�d�S)Nz<FileHash mode: z value: �>)r�r7r%s r'r�zFileHash.__repr__Vs��!�$�)�)��H�T�Z�Z�L��B�Br)N)r.r/r0rpr�r2r)r'r�r�Rs
��7�Cr)r�c���eZdZ�fd�Z�xZS)�DeprecatedNonAbstractc	�.��tj|�D��chc]}t|�D]}|���}}}|D�chc]}tt||�dd�r|��}}|rt	j
d|��td��t�|�!|�Scc}}wcc}w)N�__isabstractmethod__FzUnimplemented abstract methods rZr[)	�inspect�getmrornrzrdrerf�super�__new__)r@r,�kwargs�subclassr$�	all_names�abstract�	__class__s       �r'r�zDeprecatedNonAbstract.__new__[s����!(����!4�
�!4�X��h���D��D�!4�	�
�
"�
�!���w�s�D�)�+A�5�I�
�!�	�
�
��M�M�1�(��<�"��
�
�w��s�#�#��
��
s
�B� B)r.r/r0r��
__classcell__�r�s@r'r�r�Zs
���$�$r)r�c�p�eZdZ	ejdeefd��Zejd��Ze	defd��Z
e	d��Zed��Z
ed��Zedej"fd	��Zed
��Zed��Zed��Zed
��Zed��Zd�Zd�Zd�Zed��Zd�Zd�Ze	d��Zed��Zy)r�returnc��yr+r2�r&�filenames  r'r�zDistribution.read_textps��	r)c��yr+r2�r&�paths  r'r�zDistribution.locate_filexs��	r)r$c��	|std��	t|j|���S#t$rt	|��wxYw)Nz A distribution name is required.r#)�
ValueErrorr��discoverr�r)r@r$s  r'�	from_namezDistribution.from_namesM��	���?�@�@�	-�����$��/�0�0���	-�&�t�,�,�	-�s	�+�Ac����	|jdd���r
|rtd���xstjdi|���tj
j
�fd�|j�D��S)N�contextz cannot accept context and kwargsc3�.�K�|]}|�����y�wr+r2)r:�resolverr�s  �r'r<z(Distribution.discover.<locals>.<genexpr>�s�����-
�.G�(�H�W��.G�s�r2)�popr�r�Context�	itertools�chain�
from_iterable�_discover_resolvers)r@r�r�s  @r'r�zDistribution.discover�sq���	��*�*�Y��-���v��?�@�@��A�/�7�7�A�&�A�����,�,�-
�.1�.E�.E�.G�-
�
�	
r)c�@�	ttj|��Sr+)�PathDistribution�pathlib�Path�r�s r'�atzDistribution.at�s��	�
 ����T� 2�3�3r)c�J�	d�tjD�}td|�S)Nc3�6K�|]}t|dd����y�w)�find_distributionsNr�)r:�finders  r'r<z3Distribution._discover_resolvers.<locals>.<genexpr>�s����
�FS�F�G�F�0�$�7�m�s�)�sys�	meta_pathrF)�declareds r'r�z Distribution._discover_resolvers�s'��1�
�FI�m�m�
���d�H�%�%r)c���	|jd�xs$|jd�xs|jd�}tt|�}tjtj|��S)N�METADATAzPKG-INFOrt)r�rrHr�Message�email�message_from_string)r&�opt_textrAs   r'rzDistribution.metadata�sh��	�
�N�N�:�&�
"��~�~�j�)�
"�
�~�~�b�!�
	��C��"��� � ��!:�!:�4�!@�A�Ar)c�"�	|jdS�N�Name�rr%s r'r$zDistribution.name�s��F��}�}�V�$�$r)c�B�	tj|j�Sr+)�Prepared�	normalizer$r%s r'�_normalized_namezDistribution._normalized_name�s��6��!�!�$�)�)�,�,r)c�"�	|jdS)N�Versionrr%s r'r zDistribution.version�s��I��}�}�Y�'�'r)c�L�tj|jd�|�S)Nzentry_points.txt)r�r�r�r%s r'rzDistribution.entry_points�s���)�)�$�.�.�9K�*L�d�S�Sr)c�����	d�fd�	�t�fd��}td��}||�j�xs"�j�xs�j���S)Nc�|��t|�}|rt|�nd|_|rt|�nd|_�|_|Sr+)r�r�r��int�sizerj)r$r��size_str�resultr&s    �r'�	make_filez%Distribution.files.<locals>.make_file�s7��� ��&�F�,0�(�4�.�d�F�K�+3�#�h�-��F�K��F�K��Mr)c�B��t�tj|��Sr+)r�csv�reader)rMr"s �r'�
make_filesz&Distribution.files.<locals>.make_files�s����9�c�j�j��&7�8�8r)c�.�ttd�|��S)Nc�>�|j�j�Sr+)r��existsrs r'�<lambda>z@Distribution.files.<locals>.skip_missing_files.<locals>.<lambda>�s��D�K�K�M�,@�,@�,Br))�listrF)�
package_pathss r'�skip_missing_filesz.Distribution.files.<locals>.skip_missing_files�s����B�M�R�S�Sr))NN)r	�_read_files_distinfo�_read_files_egginfo_installed�_read_files_egginfo_sources)r&r&r-r"s`  @r'rzDistribution.files�s|���	�	�
�	9�
�	9�
�	T�
�	T�"���)�)�+�6��5�5�7�6��3�3�5�
�
�	
r)c�N�	|jd�}|xr|j�S)N�RECORD)r�rJ�r&rAs  r'r.z!Distribution._read_files_distinfo�s)��	��~�~�h�'���)����)�)r)c����	�jd�}t�dd��|r�sy��fd�|j�D�}tdj|�S)Nzinstalled-files.txt�_pathc3��K�|]S}�|zj�j�jd�j�d��j����Uy�w)rtT)�walk_upN)�resolve�relative_tor��as_posix)r:r$r&�subdirs  ��r'r<z=Distribution._read_files_egginfo_installed.<locals>.<genexpr>sV�����
�
*��	�d�]�
�W�Y�
�[��)�)�"�-�5�5�7��[�
F�
�X�Z�
�*�s�AA�"{}")r�rzrJrG�format)r&rA�pathsr;s`  @r'r/z*Distribution._read_files_egginfo_installeds\���		��~�~�3�4����w��-���6��
�
���)�
���6�=�=�%�(�(r)c�v�	|jd�}|xr$tdj|j��S)NzSOURCES.txtr<)r�rGr=rJr3s  r'r0z(Distribution._read_files_egginfo_sourcess4��
	��~�~�m�,���=��F�M�M�4�?�?�+<�=�=r)c�f�	|j�xs|j�}|xrt|�Sr+)�_read_dist_info_reqs�_read_egg_info_reqsr+)r&�reqss  r'rzDistribution.requires.s0��D��(�(�*�H�d�.F�.F�.H���"��T�
�"r)c�8�|jjd�S)Nz
Requires-Dist)r�get_allr%s r'rAz!Distribution._read_dist_info_reqs4s���}�}�$�$�_�5�5r)c�Z�|jd�}t|j�|�S)Nzrequires.txt)r�r	�_deps_from_requires_text)r&�sources  r'rBz Distribution._read_egg_info_reqs7s(������/��7�y��6�6�7��?�?r)c�J�|jtj|��Sr+)�%_convert_egg_info_reqs_to_simple_reqsr4r>)r@rHs  r'rGz%Distribution._deps_from_requires_text;s���8�8�����9O�P�Pr)c#��K�	d���fd�}d�}|D]8}||j�}|j|z||j�z���:y�w)Nc��|xrd|�d�S)Nz
extra == "�"r2r#s r'�make_conditionzJDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.make_conditionKs���0�j���a�0�0r)c	���|xsd}|jd�\}}}|r|rd|�d�}ttd|�|�g��}|rddj|�zSdS)Nrt�:�(r�z; z and )r�r+rF�join)r;�extra�sep�markers�
conditionsrNs     �r'�
quoted_markerzIDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.quoted_markerNsk����m��G�")�"3�"3�C�"8��E�3�����g�Y�a�.���f�T�G�^�E�5J�+K�L�M�J�6@�4�'�,�,�z�2�2�H�b�Hr)c��	dd|vzS)N� �@r2)�reqs r'�
url_req_spacezIDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.url_req_spaceVs��
�
�#��*�%�%r))r7r$)�sectionsrWr\r;�spacerNs     @r'rJz2Distribution._convert_egg_info_reqs_to_simple_reqs?sS�����	�	1�	I�	&� �G�!�'�-�-�0�E��-�-�%�'�-����*E�E�E� �s�AAN) r.r/r0�abc�abstractmethodrrHr�r�rVr�r�rWrr�r1rrrr$rr rrr.r/r0rrArBrGrJr2r)r'rrms~��(�����X�c�]����	�������-�S�-��-�"�
��
�"�4��4��&��&��B�%�/�/�B��B�"�%��%��-��-��(��(��T��T�� 
�� 
�D*�)�8
>��#��#�
6�@��Q��Q�� F�� Fr)rc�T�eZdZ	Gd�d�Zej
e�fd��Zy)rc�*�eZdZ	dZ	d�Zed��Zy)�DistributionFinder.ContextNc�8�t|�j|�yr+rm)r&r�s  r'rpz#DistributionFinder.Context.__init__zs����J���f�%r)c�V�	t|�jdtj�S)Nr�)rn�getrr�r%s r'r�zDistributionFinder.Context.path}s"��
���:�>�>�&�#�(�(�3�3r))r.r/r0r$rpr1r�r2r)r'r�rchs,��		���	�
	&�
�	4�
�	4r)r�c��yr+r2)r&r�s  r'rz%DistributionFinder.find_distributions�s��	r)N)r.r/r0r�r_r`rr2r)r'rrcs1���4�4�@	���)0����r)rc���eZdZ	ej��fd��Zd�Zd�Zd�Zd�Z	d�Z
ed��Ze
d��Z�xZS)	�FastPathc�"��t�|�|�Sr+)r�r�)r@�rootr�s  �r'r�zFastPath.__new__�s����w��s�#�#r)c��||_yr+)rk)r&rks  r'rpzFastPath.__init__�s	����	r)c�B�tj|j|�Sr+)rrrk)r&�childs  r'�joinpathzFastPath.joinpath�s���|�|�D�I�I�u�-�-r)c��tt�5tj|jxsd�cddd�S#1swYnxYwtt�5|j�cddd�S#1swYgSxYw�Nru)r�	Exception�os�listdirrk�zip_childrenr%s r'�childrenzFastPath.children�sW��
�i�
 ��:�:�d�i�i�.�3�/�	0�	0�
 �
 ��
�i�
 ��$�$�&�	'�	'�
 ��	�s�#=�A�A2�2A<c���tj|j�}|jj�}|j|_t
j
d�|D��S)Nc3�bK�|]'}|jtjd�d���)y�w)rrN)rx�	posixpathrT)r:rns  r'r<z(FastPath.zip_children.<locals>.<genexpr>�s%����Q�5�%�U�[�[�����:�1�=�5�s�-/)�zipfilerrk�namelistro�dict�fromkeys)r&�zip_pathr�s   r'ruzFastPath.zip_children�sH���<�<��	�	�*���
�
�&�&�(�� �)�)��
��}�}�Q�5�Q�Q�Qr)c�V�|j|j�j|�Sr+)�lookup�mtime�searchr-s  r'r�zFastPath.search�s ���{�{�4�:�:�&�-�-�d�3�3r)c���tt�5tj|j�j
cddd�S#1swYnxYw|jj�yr+)r�OSErrorrs�statrk�st_mtimer��cache_clearr%s r'r�zFastPath.mtime�sA��
�g�
��7�7�4�9�9�%�.�.�	/�	/�
�
�������!s�)A�Ac��t|�Sr+)�Lookup)r&r�s  r'r�zFastPath.lookup�s���d�|�r))r.r/r0rb�	lru_cacher�rprorvrur�r1r�rr�r�r�s@r'riri�si�����Y����$��$��.��R�4��"��"�
���r)ric��eZdZdefd�Zd�Zy)r�r�c�l�tjj|j�j	�}|jd�}t
t�|_t
t�|_	|j�D]�}|j	�}|jd�ri|jd�djd�d}tj|�}|j|j|j!|����|s��|dk(s��|jd�djd�d}tj#|�}|j|j|j!|����|jj%�|jj%�y)Nz.egg�z
.dist-infoz	.egg-inforur�-zegg-info)rsr��basenamerk�lowerrLrr+�infos�eggsrv�
rpartitionr�rr�appendro�legacy_normalize�freeze)	r&r��base�base_is_eggrn�lowr$�
normalized�legacy_normalizeds	         r'rpzLookup.__init__�sE���w�w����	�	�*�0�0�2���m�m�F�+��)�$�/��
�(��.��	��]�]�_�E��+�+�-�C��|�|�7�8��~�~�c�*�1�-�7�7��<�Q�?��%�/�/��5�
��
�
�:�&�-�-�d�m�m�E�.B�C���
�!2����s�+�A�.�8�8��=�a�@��$,�$=�$=�d�$C�!��	�	�+�,�3�3�D�M�M�%�4H�I�%�	
�
�
�����	�	���r)c�v�|r|j|jn6tjj	|jj��}|r|j|jn6tjj	|jj��}tj||�Sr+)r�r�r�r�r�r�r�r�)r&�preparedr�r�s    r'r�z
Lookup.search�s����
�J�J�x�*�*�+����.�.�t�z�z�/@�/@�/B�C�	��
�I�I�h�0�0�1����.�.�t�y�y�/?�/?�/A�B�	
�
���u�d�+�+r)N)r.r/r0rirpr�r2r)r'r�r��s���X��*,r)r�c�B�eZdZ	dZdZd�Zed��Zed��Zd�Z	y)rNc�p�||_|�y|j|�|_|j|�|_yr+)r$rr�r�r�r-s  r'rpzPrepared.__init__�s4����	��<���.�.��.���!%�!6�!6�t�!<��r)c�n�	tjdd|�j�jdd�S)Nz[-_.]+r�r�)r��subr��replacer#s r'rzPrepared.normalize�s2��	��v�v�i��d�+�1�1�3�;�;�C��E�Er)c�D�	|j�jdd�S)Nr�r�)r�r�r#s r'r�zPrepared.legacy_normalize�s"��	��z�z�|�#�#�C��-�-r)c�,�t|j�Sr+)�boolr$r%s r'�__bool__zPrepared.__bool__s���D�I�I��r))
r.r/r0r�r�rprWrr�r�r2r)r'rr�sH����J���=��F��F��.��.�r)rc�\�eZdZeej�fd��Zed��Zed��Zy)�MetadataPathFinderc�p�	|j|j|j�}tt|�Sr+)�
_search_pathsr$r�rGr�)r@r��founds   r'rz%MetadataPathFinder.find_distributions	s1��	��!�!�'�,�,����=���#�U�+�+r)c���	t|��tjj�fd�t	t
|�D��S)Nc3�@�K�|]}|j�����y�wr+)r�)r:r�r�s  �r'r<z3MetadataPathFinder._search_paths.<locals>.<genexpr>s�����-
�.B�d�D�K�K��!�.B�r�)rr�r�r�rGri)r@r$r>r�s   @r'r�z MetadataPathFinder._search_pathss:���?��D�>�����,�,�-
�.1�(�E�.B�-
�
�	
r)c�@�tjj�yr+)rir�r�)r@s r'�invalidate_cachesz$MetadataPathFinder.invalidate_cachess�����$�$�&r)N)	r.r/r0rVrr�rr�r�r2r)r'r�r�sH���(:�(B�(B�(D�
,��
,��
��
��'��'r)r�c���eZdZdefd�Zd�Zej
je_d�Ze	�fd��Z
ed��Z�xZ
S)r�r�c��	||_yr+)r5r�s  r'rpzPathDistribution.__init__$s��	���
r)c���tttttt
�5|jj|�jd��cddd�S#1swYyxYw)Nr�r�)	r�FileNotFoundError�IsADirectoryErrorr��NotADirectoryError�PermissionErrorr5ror�r�s  r'r�zPathDistribution.read_text+sR��
������
��:�:�&�&�x�0�:�:�G�:�L�	M�	M�
�
�s�+A�A"c�4�|jj|zSr+)r5�parentr�s  r'r�zPathDistribution.locate_file7s���z�z� � �4�'�'r)c����	tjjt|j��}ttj�|j|��xs
t�|�(Sr+)rsr�r�rHr5r	rr�_name_from_stemr�r)r&�stemr�s  �r'rz!PathDistribution._normalized_name:sX���	��w�w����D�J�J��0��)�I�h�(�(�)�$�*>�*>�t�*D�E�
(��w�'�	
r)c��	tjj|�\}}|dvry|jd�\}}}|S)Nr�r�)rsr��splitextr�)r�r��extr$rT�rests      r'r�z PathDistribution._name_from_stemFsH��	����(�(��.�
��#��1�1��"�,�,�S�1���c�4��r))r.r/r0r
rpr�r�__doc__r�r1rrWr�r�r�s@r'r�r�#sX����Z��M�%�.�.�6�6�I��(��	
��	
����r)r�c�.�	tj|�Sr+)rr���distribution_names r'rrXs���
�!�!�"3�4�4r)c�.�	tjdi|��Sr�)rr�)r�s r'rras���� � �*�6�*�*r)r�c�B�	tj|�jSr+)rr�rr�s r'rris!���
�!�!�"3�4�=�=�=r)c�.�	t|�jSr+)rr r�s r'r r rs����)�*�2�2�2r)r)�keyc��	tjjd�tt	��D��}t|�jdi|��S)Nc3�4K�|]}|j���y�wr+)r)r:rjs  r'r<zentry_points.<locals>.<genexpr>�s����(�&>�d����&>�s�r2)r�r�r��_uniquerr�r�)r��epss  r'rr�sN����/�/�
'�
'�(�&-�m�o�&>�(��C�#�;�s��"�"�,�V�,�,r)c�.�	t|�jSr+)rrr�s r'rr�s���
�)�*�0�0�0r)c�.�	t|�jSr+)rrr�s r'rr�s����)�*�3�3�3r)c���	tjt�}t�D]@}t	|�xst|�D]#}||j
|jd��%�Bt|�Sr)	�collections�defaultdictr+r�_top_level_declared�_top_level_inferredr�rr|)�pkg_to_distrj�pkgs   r'rr�sl����)�)�$�/�K����&�t�,�I�0C�D�0I�I�C����#�#�D�M�M�&�$9�:�J� ����r)c�H�|jd�xsdj�S)Nz
top_level.txtrt)r�rxr�s r'r�r��s���N�N�?�+�1�r�8�8�:�:r)c���t|j�D�chc]>}t|j�dkDr|jdnt	j
|���@}}td��}t||�Scc}w)Nrrc�
�d|vSrqr2r#s r'�importable_namez,_top_level_inferred.<locals>.importable_name�s���$��r))r
r�len�partsr��
getmodulenamer	rF)rj�f�	opt_namesr�s    r'r�r��s|��!����,��,�A��!�'�'�l�Q�&�����
�G�,A�,A�!�,D�D�,���
�����/�9�-�-��s�AA5)Krsr�r_r$rrrrzr�rRrdrbr�ry�
contextlibr�r�rtrr�_collectionsrr�
_functoolsrr	�
_itertoolsr
rrr
r�	importlibr�
importlib.abcrr�typingrrrr�__all__�ModuleNotFoundErrorrr4rYrh�tupler��
PurePosixPathr�r�r�rrrir�rr�r�rrrr rc�
attrgetterr�rrrrHrr�r�r2r)r'�<module>r�s���	�	�
�
�
��������������4�/�8�.��#�(��0�0�
�� 	�.�	�>1�>1�B!�!�6v!��v!�r.
�%�.
�b
+�'�'�'�
+� C�C�$�$�&sF�(�sF�l-��-�`,�,�^!,�!,�H��D'�+�'�62�|�2�j5�+�>�5�#8�#8�>�3��)�
�
������.�/����
-�k�-�1�4����T�#�Y�� 7��";�
.r)

?>