%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/setuptools/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/setuptools/__pycache__/dist.cpython-312.pyc

�

T��f���8�dgZddlZddlZddlZddlZddlZddlZddlZddl	Zddl
ZddlZddlm
Z
ddlmZddlmZddlmZddlZddlZddlmZddlmZmZmZmZdd	lmZdd
lm Z ddl!m"Z"ddl#m$Z$m%Z%dd
lm&Z&ddl'm(Z(ddl'm)Z)ddl*m+Z+m,Z,ddl-Z-ddl.Z-ddl-m/Z/ddl0m1Z1ddl2m3Z3m4Z4ddl5m6Z6ddl7m8Z8ddl9m:Z:ddl9m;Z;ddl9m<Z<ddl=m>Z>ddl?m@Z@mAZAerddlBmCZCeDd�eDd�d�ZEd eFd!eFfd"�ZGd#d$d%eFd!eeFfd&�ZHd#d$d%eFd!eeFfd'�ZId#d$d%eFd!eeeFfd(�ZJd#d$d!eeFfd)�ZKd*�ZLd+�ZMd,�ZNeOePfZQd-�ZRd.�ZSd/�ZTd0�ZUd1�ZVd2�ZWd3�ZXd4�ZYd5�ZZd6�Z[d7�Z\d8�Z]d9�Z^d:�Z_e1ej�j��ZbGd;�deb�ZaGd<�d=eA�Zcy)>�Distribution�N)�	strtobool)�DEBUG)�translate_longopt)�iglob)�suppress)�List�Optional�Set�
TYPE_CHECKING)�Path)�defaultdict)�message_from_file)�DistutilsOptionError�DistutilsSetupError)�
rfc822_escape)�	packaging)�ordered_set)�unique_everseen�	partition)�windows_support)�
get_unpatched)�setupcfg�
pyprojecttoml)�ConfigDiscovery��version�)�_reqs)�
_entry_points)�_normalization)�metadata)�InformationOnly�SetuptoolsDeprecationWarning)�Messagez&setuptools.extern.packaging.specifiersz#setuptools.extern.packaging.versionc�\�t|dd�}|�tjd�}||_|S)N�metadata_version�2.1)�getattrr�Versionr')�self�mvs  �1/usr/lib/python3/dist-packages/setuptools/dist.py�get_metadata_versionr.6s1��	��)�4�	0�B�	�z�
�_�_�U�
#�� "���
�I��content�returnc
��|j�}t|�dk(r|dj�Sdj|dj�t	j
dj|dd��f�S)zFReverse RFC-822 escaping by removing leading whitespaces from content.rr�
N)�
splitlines�len�lstrip�join�textwrap�dedent)r0�liness  r-�rfc822_unescaper;>sc����� �E�
�5�z�Q���Q�x��� � ��9�9�e�A�h�o�o�'�������5���9�9M�)N�O�P�Pr/�msgr%�fieldc��||}|dk(ry|S)zRead Message header field.�UNKNOWNN��r<r=�values   r-�_read_field_from_msgrCFs����J�E��	����Lr/c�8�t||�}|�|St|�S)z4Read Message header field and apply rfc822_unescape.)rCr;rAs   r-�_read_field_unescaped_from_msgrENs#�� ��e�,�E��}����5�!�!r/c�6�|j|d�}|gk(ry|S)z9Read Message header field and return all results as list.N)�get_all)r<r=�valuess   r-�_read_list_from_msgrIVs!��
�[�[���
%�F�
��|���Mr/c�R�|j�j�}|dk(s|sy|S)Nr?)�get_payload�strip)r<rBs  r-�_read_payload_from_msgrM^s)���O�O��#�#�%�E��	�����Lr/c���t|�}tj|d�|_t	|d�|_t	|d�|_t	|d�|_t	|d�|_d|_t	|d�|_	d|_
t	|d�|_t	|d	�|_t|d
�|_t|d�|_|j�2|jtjd�k\rt!|�|_t	|d�|_d
|vr t	|d
�j#d�|_t'|d�|_t'|d�|_|jtjd�k(r4t'|d�|_t'|d�|_t'|d�|_nd|_d|_d|_t'|d�|_y)z-Reads the metadata values from a file object.zmetadata-version�namer�summary�authorNzauthor-emailz	home-pagezdownload-url�license�descriptionr(�keywords�,�platform�
classifierz1.1�requires�provides�	obsoleteszlicense-file)rrr*r'rCrOrSrQ�
maintainer�author_email�maintainer_email�url�download_urlrErR�long_descriptionrM�splitrTrI�	platforms�classifiersrXrYrZ�
license_files)r+�filer<s   r-�
read_pkg_filerfes���
�D�
!�C�#�O�O�C�0B�,C�D�D��$�S�&�1�D�I�'��Y�7�D�L�+�C��;�D��&�s�H�5�D�K��D�O�,�S�.�A�D�� �D��#�C��5�D�H�,�S�.�A�D��1�#�y�A�D�L�:�3�
�N�D�����$��)>�)>�'�/�/�
�C�*�!7�s� ;���+�C��;�D���S��,�S�*�=�C�C�C�H��
�(��j�9�D�N�*�3��=�D��������� 6�6�+�C��<��
�+�C��<��
�,�S�+�>�����
���
����,�S�.�A�D�r/c��d|vr:d}tjd|�|j�jd�d}|S)zF
    Quick and dirty validation for Summary pypa/setuptools#1390.
    r3zBnewlines are not allowed in `summary` and will break in the futurezInvalid config.r)r$�emitrLra)�valr<s  r-�single_linerj�sD���s�{�S��$�)�)�*;�S�A��i�i�k����%�a�(���Jr/c�4��|j�}�fd�}|dt|��|d|j��|d|j��|j	�}|r|dt|��d}|D]\}}t
||d�}|��|||�� |j�}	|	r|dt|	��|jj�D]}
|d	d
|
z��dj|j��}|r	|d|�|j�xsg}|D]}
|d
|
��
|j�d|j��|j�d|j!��|j�d|j#��|j�d|j%��t'|d�r|d|j(�|j*r|d|j*�|j,r#t/|j,�D]}|d|��
|j�d|j0xsg�|j3�}|r8�j5d|z�|j7d�s�j5d�yyy)z0Write the PKG-INFO format data to a file object.c�4���j|�d|�d��y)Nz: r3)�write)�keyrBres  �r-�write_fieldz#write_pkg_file.<locals>.write_field�s����
�
��e�,�-r/zMetadata-Version�Namer*�Summary))z	Home-pager^)zDownload-URLr_)�AuthorrQ)zAuthor-emailr\)�
Maintainerr[)zMaintainer-emailr]N�LicensezProject-URLz%s, %srU�Keywords�Platform�
Classifier�Requires�Provides�	Obsoletes�python_requireszRequires-PythonzDescription-Content-TypezProvides-ExtrazLicense-Filez
%sr3)r.�str�get_name�get_version�get_descriptionrjr)�get_licenser�project_urls�itemsr7�get_keywords�
get_platforms�_write_list�get_classifiers�get_requires�get_provides�
get_obsoletes�hasattrr{�long_description_content_type�provides_extras�sortedrd�get_long_descriptionrm�endswith)r+rerrorP�optional_fieldsr=�attr�attr_valrR�project_urlrTrbrV�extrar`s `              r-�write_pkg_filer��s�����'�'�)�G�.��"�C��L�1����
�
��(��	�4�+�+�-�.��"�"�$�G���I�{�7�3�4��O�'�)���t��4��t�,������x�(�)�
��� �G���I�}�W�5�6��(�(�.�.�0�;���M�8�k�#9�:�;��x�x��)�)�+�,�H���J��)��"�"�$�*��I��*���J��)�*�	���T�<��)=�)=�)?�@�	���T�:�t�'8�'8�':�;����T�:�t�'8�'8�':�;����T�;��(:�(:�(<�=��t�&�'��%�t�';�';�<��)�)��.��0R�0R�S�����D�0�0�1�	1�E��(�%�0�	1�	���T�>�4�+=�+=�+C��D��0�0�2����
�
�6�,�,�-��(�(��.��J�J�t��/�r/c��	tj|dd��}|jrJ�y#ttt
tf$r}t|�d|�d��|�d}~wwxYw)N)rBrO�groupz/ must be importable 'module:attrs' string (got �))r"�
EntryPoint�extras�	TypeError�
ValueError�AttributeError�AssertionErrorr)�distr�rB�ep�es     r-�check_importabler��sZ���
�
 �
 �u�4�t�
D���9�9��}�9���z�>�>�B��!�FJ�E�R�
��	���s�&)�A�A�Ac���	t|ttf�sJ�dj|�|k7sJ�y#tt
ttf$r}t|�d|�d��|�d}~wwxYw)z"Verify that value is a string list�z  must be a list of strings (got r�N)	�
isinstance�list�tupler7r�r�r�r�r�r�r�rBr�s    r-�assert_string_listr��sd��	��%�$���/�/�/��w�w�u�~��&�&�&���z�>�>�B��!�7;�U�C�
��	���s�.1�A!�
A�A!c��|}t|||�|D]x}|j|�stdd|zz��|jd�\}}}|r%||vr!tj
j
d||�tjddd���zy	)
z(Verify that namespace packages are validz1Distribution contains no modules or packages for znamespace package %r�.z^WARNING: %r is declared as a package namespace, but %r is not: please correct this in setup.pyz/The namespace_packages parameter is deprecated.z<Please replace its usage with implicit namespaces (PEP 420).z3references/keywords.html#keyword-namespace-packages)�see_docsN)	r��has_contents_forr�
rpartition�	distutils�log�warnr$rh)r�r�rB�ns_packages�nsp�parent�sep�childs        r-�	check_nspr�s����K��t�T�;�/��
���$�$�S�)�%�C�(�3�.�/��
�!�^�^�C�0����U��f�K�/��M�M���;���	
�	%�)�)�=�J�J�	
�
r/c��	ttjt|j	���y#t
ttf$r}td�|�d}~wwxYw)z+Verify that extras_require mapping is validz�'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.N)	r��	itertools�starmap�_check_extrar�r�r�r�rr�s    r-�check_extrasr�sP����Y�
�
�|�U�[�[�]�
;�<���z�>�2��!�
&�
��		���s�14�A�A�Ac���|jd�\}}}	t|�t
tj|��y#tjj$rd|�d|�d�}t|�d�wxYw)N�:zInvalid environment marker: z (r�)	r�
_check_markerr�markers�
InvalidMarkerrr�r�parse)r��reqsrOr��markerr<s      r-r�r�*su������,��D�#�v�1��f��	����T�	������*�*�1�,�V�H�B�u�i�q�A��!�#�&�D�0�1�s�A�3A4c�h�|sytjj|�}|j�y�N)rr��Marker�evaluate)r��ms  r-r�r�4s'������� � ��(�A��J�J�Lr/c�\�t|�|k7rd}t|j||����y)z)Verify that value is True, False, 0, or 1z0{attr!r} must be a boolean value (got {value!r}))r�rBN)�boolr�format)r�r�rB�tmpls    r-�assert_boolr�;s0���E�{�e��A��!�$�+�+�4�u�+�"E�F�F�r/c�T�|stj|�d��yt|�d���)Nz is ignored.z is invalid.)�DistDeprecationWarningrhr�r�r�rBs   r-�invalid_unless_falser�Bs/����#�#�t�f�L�$9�:��
���l�3�
4�4r/c���	ttj|��t|tt
f�rt
d��y#ttf$r$}d}t|j||���|�d}~wwxYw)z9Verify that install_requires is a valid requirements listzUnordered types are not allowedzm{attr!r} must be a string or list of strings containing valid project/version requirement specifiers; {error}�r��errorN)
r�rr�r��dict�setr�r�rr��r�r�rBr�r�s     r-�check_requirementsr�Jsv��	R��U�[�[��
� ��e�d�C�[�)��=�>�>�*���z�"�R�
O�	
�"�$�+�+�4�u�+�"E�F�E�Q��R�s�?A�A5�A0�0A5c���	tjj|�y#tjjtf$r$}d}t|j
||���|�d}~wwxYw)z.Verify that value is a valid version specifierzF{attr!r} must be a string containing valid version specifiers; {error}r�N)r�
specifiers�SpecifierSet�InvalidSpecifierr�rr�r�s     r-�check_specifierr�Xsc��R����)�)�%�0��� � �1�1�>�B�R�W�	
�"�$�+�+�4�u�+�"E�F�E�Q��	R�s�"�#A)�A$�$A)c�j�	tj|�y#t$r}t|�|�d}~wwxYw)z)Verify that entry_points map is parseableN)r �load�	Exceptionrr�s    r-�check_entry_pointsr�cs2��,����5�!���,�!�!�$�!�+��,�s��	2�-�2c�:�t|t�std��y)Nztest_suite must be a string)r�r|rr�s   r-�check_test_suiter�ks���e�S�!�!�"?�@�@�"r/c��t|t�stdj|���|j	�D]L\}}t|t
�stdj||���t
|dj|�|��Ny)z@Verify that value is a dictionary of package names to glob listszT{!r} must be a dictionary mapping package names to lists of string wildcard patternsz,keys of {!r} dict must be strings (got {!r})zvalues of {!r} dictN)r�r�rr�r�r|r�)r�r�rB�k�vs     r-�check_package_datar�ps����e�T�"�!�
'�'-�v�d�|�
�	
����
�H���1��!�S�!�%�>�E�E�d�A�N��
�	�4�!6�!=�!=�d�!C�Q�G�Hr/c��|D]9}tjd|�r�tjj	d|��;y)Nz\w+(\.\w+)*z[WARNING: %r not a valid package name; please use only .-separated package names in setup.py)�re�matchr�r�r�)r�r�rB�pkgnames    r-�check_packagesr�s9������x�x���0��M�M���8��
�r/c�z��eZdZdZd�eejd�d�d�ZdZd�Z	d0d�Z
d	�Zd
�Ze
d��Ze
d��Zd
�Zd�Ze
d��Zd�Zd�Zd�Ze
d��Zd0d�Zd�Zd�Zd�Zd0d�Zd�Zd1d�Zd�Zd�Ze
d��Z d�Z!d�Z"d �Z#d!�Z$d"�Z%d#�Z&d$�Z'd%�Z(d&�Z)d'�Z*d(�Z+d)�Z,d*�Z-d+�Z.d,�Z/d-�Z0d.�Z1�fd/�Z2�xZ3S)2raGDistribution with support for tests and package data

    This is an enhanced version of 'distutils.dist.Distribution' that
    effectively adds the following new optional keyword arguments to 'setup()':

     'install_requires' -- a string or sequence of strings specifying project
        versions that the distribution requires when installed, in the format
        used by 'pkg_resources.require()'.  They will be installed
        automatically when the package is installed.  If you wish to use
        packages that are not available in PyPI, or want to give your users an
        alternate download location, you can add a 'find_links' option to the
        '[easy_install]' section of your project's 'setup.cfg' file, and then
        setuptools will scan the listed web pages for links that satisfy the
        requirements.

     'extras_require' -- a dictionary mapping names of optional "extras" to the
        additional requirement(s) that using those extras incurs. For example,
        this::

            extras_require = dict(reST = ["docutils>=0.3", "reSTedit"])

        indicates that the distribution can optionally provide an extra
        capability called "reST", but it can only be used if docutils and
        reSTedit are installed.  If the user installs your package using
        EasyInstall and requests one of your extras, the corresponding
        additional requirements will be installed if needed.

     'test_suite' -- the name of a test suite to run for the 'test' command.
        If the user runs 'python setup.py test', the package will be installed,
        and the named test suite will be run.  The format is the same as
        would be used on a 'unittest.py' command line.  That is, it is the
        dotted name of an object to import and call to generate a test suite.

     'package_data' -- a dictionary mapping package names to lists of filenames
        or globs to use to find data files contained in the named packages.
        If the dictionary has filenames or globs listed under '""' (the empty
        string), those names will be searched for in every package, in addition
        to any names for the specific package.  Data files found using these
        names/globs will be installed along with the package, in the same
        location as the package.  Note that globs are allowed to reference
        the contents of non-package subdirectories, as long as you use '/' as
        a path separator.  (Globs are automatically converted to
        platform-specific paths at runtime.)

    In addition to these new keywords, this class also has several new methods
    for manipulating the distribution's contents.  For example, the 'include()'
    and 'exclude()' methods can be thought of as in-place add and subtract
    commands that add or remove packages, modules, extensions, and so on from
    the distribution.
    c��yr�r@r@r/r-�<lambda>zDistribution.<lambda>���r/c��yr�r@r@r/r-r�zDistribution.<lambda>�r�r/c��yr�r@r@r/r-r�zDistribution.<lambda>�r�r/)r�r�r��license_filerdNc�~�|rd|vsd|vrytjt|d��j�}t	t
j�5tj|�}|�>|jd�s-tjt|d��|_
||_ddd�y#1swYyxYw)NrOrzPKG-INFO)r!�	safe_namer|�lowerrr"�PackageNotFoundError�distribution�	read_text�safe_version�_version�
_patched_dist)r+�attrsrOr�s    r-�patch_missing_pkg_infoz#Distribution.patch_missing_pkg_info�s���
��e�+�y��/E���'�'��E�&�M�(:�;�A�A�C��
�h�3�3�
4�	*��(�(��.�D������z�(B� .� ;� ;�C��i�@P�<Q� R��
�%)��"�		*�	*�	*�s
�AB3�3B<c	�j�t|d�}|si|_|xsi}g|_|jdd�|_|j|�|jdg�|_|jdg�|_tjd��D]'}t|�j|jd��)tj||j�D��cic]\}}||j vr||��c}}�t#�|_i|_g|_t+t,j.�|_t3|�|_|j7|�|j9|j;|jj<��|j_|j?�ycc}}w)N�package_data�src_root�dependency_links�setup_requires�distutils.setup_keywords�r�) r�r�
dist_files�poprr�rrr"�entry_points�vars�
setdefaultrO�
_Distribution�__init__r��_DISTUTILS_UNSUPPORTED_METADATAr��_referenced_files�_orig_extras_require�_orig_install_requiresrr�
OrderedSet�_tmp_extras_requirer�set_defaults�_set_metadata_defaults�_normalize_version�_validate_versionr�_finalize_requires)r+r��have_package_datar�r�r�s      r-r
zDistribution.__init__�sx��#�D�.�9�� � "�D����������	�	�*�d�3��
��#�#�E�*� %�	�	�*<�b� A���#�i�i�(8�"�=����'�'�.H�I�	1�B���J�!�!�"�'�'�4�0�	1�����"�K�K�M�
��A�q��D�@�@�@��1��
�	
�,/�5���%'��!�&(��#�#.�{�/E�/E�#F�� �+�D�1����#�#�E�*� $� 7� 7��"�"�4�=�=�#8�#8�9�!
��
�
��	
���!��1
s�F/c��dh}t|j�D�chc]}t|j|d��|��}}||z
}|rd|��}t|��ycc}w)NrOz&Required package metadata is missing: )r
r"r)r)r+�requiredrn�provided�missingr<s      r-�_validate_metadatazDistribution._validate_metadatast���8���D�M�M�*�
���t�}�}�c�4�0�<�
�
��
�
�X�%���:�7�)�D�C�%�c�*�*���
s� Ac	��|jj�D]?\}}t|j�j	||j||����Ay)z�
        Fill-in missing metadata fields not supported by distutils.
        Some fields may have been set by other tools (e.g. pbr).
        Those fields (vars(self.metadata)) take precedence to
        supplied attrs.
        N)rr�r
r"r�get)r+r��option�defaults    r-rz#Distribution._set_metadata_defaultssN�� $�C�C�I�I�K�	Q�O�F�G������*�*�6�5�9�9�V�W�Y�3O�P�	Qr/c���t|tj�s|�|Sttj
j
|��}||k7rtjd|�d|�d��|S|S)Nz
Normalizing 'z' to '�')	r��
setuptools�sicr|rrr*r#rh)r�
normalizeds  r-rzDistribution._normalize_versionsd���g�z�~�~�.�'�/��N���*�*�2�2�7�;�<�
��j� �� � �=��	��
�|�1�!M�N����r/c�N�t|tj�rt|�}|�"	tj
j
|�|S|S#tj
jtf$r5tjd|�d�ddd��tj|�cYSwxYw)NzInvalid version: r�z�
                    The version specified is not a valid version according to PEP 440.
                    This may not work as expected with newer versions of
                    setuptools, pip, and PyPI.
                    z!https://peps.python.org/pep-0440/�i��	�)�see_url�due_date)
r��numbers�Numberr|rrr*�InvalidVersionr�r$rhr%r&rs r-rzDistribution._validate_version#s����g�w�~�~�.��'�l�G���
/��!�!�)�)�'�2���w����%�%�4�4�i�@�

/�,�1�1�'��{�!�4��
@�*��"�~�~�g�.�.�

/�s�A�AB$�#B$c��t|dd�r|j|j_t|dd�rz|jxs|j|_|jj�D]>}|j
d�d}|s�|jjj|��@t|dd�r|js|j|_	|j�|j�y)z�
        Set `metadata.python_requires` and fix environment markers
        in `install_requires` and `extras_require`.
        r{N�extras_requirer�r�install_requires)
r)r{r"rr2�keysrar��addrr3�_convert_extras_requirements�"_move_install_requirements_markers)r+r�s  r-rzDistribution._finalize_requires<s���
�4�*�D�1�,0�,@�,@�D�M�M�)��4�)�4�0�(,�(A�(A�(X�T�EX�EX�D�%��,�,�1�1�3�
=�����C�(��+����M�M�1�1�5�5�e�<�

=��4�+�T�2�4�;V�;V�*.�*?�*?�D�'��)�)�+��/�/�1r/c�b�t|dd�xsi}ttj�}t|d|�|_|j�D]`\}}|j|t
j|�D]4}|j|�}|j||zj|��6�by)z�
        Convert requirements in `extras_require` of the form
        `"extra": ["barbazquux; {marker}"]` to
        `"extra:{marker}": ["barbazquux"]`.
        r2Nr)
r)rrrrr�rr��_suffix_for�append)r+�
spec_ext_reqs�tmp�sectionr��r�suffixs       r-r6z)Distribution._convert_extras_requirementsVs��� ��&6��=�C��
��+�0�0�1��#*�4�1F��#L�� �'�-�-�/�	E�J�G�Q��$�$�W�-��[�[��^�
E���)�)�!�,���(�(��6�)9�:�A�A�!�D�
E�	Er/c�N�|jrdt|j�zSdS)ze
        For a requirement, return the 'extras_require' suffix for
        that requirement.
        r�r�)r�r|��reqs r-r9zDistribution._suffix_forfs"��),�
�
�s�S����_�$�:��:r/c����d�}t�dd�xsd}ttj|��}t	||�}tj||�}ttt|���_	|D]6}�jdt|j�zj|��8t�fd��jj�D���_y)zv
        Move requirements in `install_requires` that are using environment
        markers `extras_require`.
        c��|jSr��r�rAs r-�
is_simple_reqzFDistribution._move_install_requirements_markers.<locals>.is_simple_reqxs���z�z�>�!r/r3Nr@r�c3��K�|]B\}}|ttjd�t�j|�D���f���Dy�w)c3�2K�|]}t|����y�wr�)r|)�.0r>s  r-�	<genexpr>zLDistribution._move_install_requirements_markers.<locals>.<genexpr>.<genexpr>�s����"K�a�3�q�6�"K�s�N)r�r��fromkeys�map�
_clean_req)rIr�r�r+s   �r-rJzBDistribution._move_install_requirements_markers.<locals>.<genexpr>�sC�����#
���1���T�]�]�"K�3�t����3J�"K�K�L�M�#
�s�AA)r)r�rr��filterr��filterfalserLr|r3rr�r:r�r�r2)r+rF�spec_inst_reqs�	inst_reqs�simple_reqs�complex_reqsr>s`      r-r7z/Distribution._move_install_requirements_markersns����	"�!��'9�4�@�F�B������^�4�5�	��]�I�6�� �,�,�]�I�F�� $�S��k�%:� ;����	D�A��$�$�S�3�q�x�x�=�%8�9�@�@��C�	D�"�#
��0�0�6�6�8�#
�
��r/c��d|_|S)zP
        Given a Requirement, remove environment markers and return it.
        NrE)r+rBs  r-rMzDistribution._clean_req�s����
��
r/c��|jj}|r|ng}|jj}|r||vr|j|�|�|�d}t	t|j
|���|j_y)z<Compute names of all license files which should be included.N)zLICEN[CS]E*zCOPYING*zNOTICE*zAUTHORS*)r"rdr�r:r�r�_expand_patterns)r+rd�patternsr�s    r-�_finalize_license_filesz$Distribution._finalize_license_files�sv��-1�]�]�-H�-H�
�/<�m�"��&*�m�m�&@�&@���L��8��O�O�L�)�� �\�%9�J�H�&*��D�1�1�(�;�<�'
��
�
�#r/c��d�|D�S)z�
        >>> list(Distribution._expand_patterns(['LICENSE']))
        ['LICENSE']
        >>> list(Distribution._expand_patterns(['setup.cfg', 'LIC*']))
        ['setup.cfg', 'LICENSE']
        c3�K�|]O}tt|��D]6}|jd�s#tjj|�r|���8�Qy�w)�~N)r�rr��os�path�isfile)rI�patternr]s   r-rJz0Distribution._expand_patterns.<locals>.<genexpr>�sQ����
���u�W�~�.�
���=�=��%�"�'�'�.�.��*>�
�
��
�s�AAr@)rWs r-rVzDistribution._expand_patterns�s��
�#�
�	
r/c
�:�ddlm}tjtjk(rgngd�}t|�}|�|j
�}tr|jd�|�}t|_
|D]�}tj|d��5}tr)|jdjdit����|j|�ddd�|j!�D]r}|j#|�}|j%|�}	|D]I}
|
d	k(s|
|vr�
|j'||
�}|j)|
|�}
|j+|
|�}
||f|	|
<�K�t|j-���d
|j.vry|j.d
j1�D]S\}
\}}|j2j'|
�}
|
r
t5|�}n|
dvrt5|�}	t7||
xs|
|��Uy#1swY��$xYw#t8$r}t;|�|�d}~wwxYw)
z�
        Adapted from distutils.dist.Distribution.parse_config_files,
        this method provides the same functionality in subtly-improved
        ways.
        r)�ConfigParser)
zinstall-basezinstall-platbasezinstall-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptszinstall-data�prefixzexec-prefix�home�user�rootNz"Distribution.parse_config_files():�utf-8��encodingz  reading {filename}�__name__�global)�verbose�dry_runr@)�configparserra�sysrb�base_prefix�	frozenset�find_config_filesr�announcer|�optionxform�io�openr��locals�	read_file�sections�options�get_option_dictr �warn_dash_deprecation�make_option_lowercaser
�command_optionsr��negative_optr�setattrr�r)r+�	filenamesra�ignore_options�parser�filename�readerr=ry�opt_dict�optri�src�aliasr�s               r-�_parse_config_filesz Distribution._parse_config_files�s��	.�
�z�z�S�_�_�,�
��	�(#�>�2�����.�.�0�I���M�M�>�?���� ���!�	�H�����G�4�
)����M�M�"?�"8�"?�"?�"K�&�(�"K�L�� � ��(�
)�"�?�?�,�
4�� �.�.��1���/�/��8��"�4�C��j�(�C�>�,A� � �*�*�W�c�2�C��4�4�S�'�B�C��4�4�S�'�B�C�%-�s�O�H�S�M�4�	
4�
�O�O��)	�,�4�/�/�/��
 $�3�3�H�=�C�C�E�
	5�O�C��#�s��%�%�)�)�#�.�E��#�C�.�(���.�.���n��
5���e�l�s�C�0�
	5�7
)�
)��H�
5�*�1�-�1�4��
5�s%�AG3�H�3G=	�	H�	H�Hc�@�|dvr|S|jdd�}ttjtj
j|j���}|jd�s|dk7r||vr|Sd|vr tjdd|�d|�d	�d
d��|S)
N)zoptions.extras_requirezoptions.data_files�-�_ryr"zInvalid dash-separated optionsz)
                Usage of dash-separated zZ will not be supported in future
                versions. Please use the underscore name z instead.
                �!userguide/declarative_config.htmlr)�r�r-)�replacer�r��chainr��command�__all__�_setuptools_commands�
startswithr$rh)r+r�r=�underscore_opt�commandss     r-r{z"Distribution.warn_dash_deprecations����
�
��J����S�#�.����O�O��!�!�)�)��)�)�+�
�
���"�"�9�-��:�%��x�'�!�!��#�:�(�-�-�0�)�),��0:�:H�9K�L��=�&�	
��r/c��	tjd�jjS#tj$rgcYSwxYw)Nr%)r"r�r	�namesr�)r+s r-r�z!Distribution._setuptools_commands$s>��	��(�(��6�C�C�I�I�I���,�,�	��I�	�s�(+�A�Ac
��|dk7s|j�r|S|j�}tjdd|�d|�d|�d�dd�	�|S)
Nr"zInvalid uppercase configurationz$
            Usage of uppercase key z in zL will not be supported in
            future versions. Please use lowercase z instead.
            r�r)r�)�islowerr�r$rh)r+r�r=�
lowercase_opts    r-r|z"Distribution.make_option_lowercase+si���j� �C�K�K�M��J��	�	��
�$�)�)�-�$�$'�7�$�w�k�:3�3@�2C�D
�
�9�"�		
��r/c
���|j�}|�|j|�}tr|jd|z�|j	�D]�\}\}}tr|jd|�d|�d|�d��	|j
D�cgc]
}t
|���}}	|j}		t|t�}
||	vr|
rt||	|t|��nL||vr|
rt||t|��n/t||�rt|||�ntd|�d|�d	|�d
�����ycc}w#t$rg}Y��wxYw#t$ri}	Y��wxYw#t$r}t|�|�d}~wwxYw)a�
        Set the options for 'command_obj' from 'option_dict'.  Basically
        this means copying elements of a dictionary ('option_dict') to
        attributes of an instance ('command').

        'command_obj' must be a Command instance.  If 'option_dict' is not
        supplied, uses the standard option dictionary for this command
        (from 'self.command_options').

        (Adopted from distutils.dist.Distribution._set_command_options)
        Nz#  setting options for '%s' command:z    z = z (from r�z	error in z: command 'z' has no such option 'r$)�get_command_namerzrrrr��boolean_optionsrr�r~r�r|rrr�rr�)r+�command_obj�option_dict�command_namer!�sourcerB�o�	bool_opts�neg_opt�	is_stringr�s            r-�_set_command_optionsz!Distribution._set_command_options=ss��#�3�3�5�����.�.�|�<�K���M�M�?�,�N�O�'2�'8�'8�':�	5�#�F�O�V�U���
�
����O�P�
�;F�;V�;V�W�a�.�q�1�W�	�W�
�%�2�2��
5�&�u�c�2�	��W�$���K����i��>N�:N�O��y�(�Y��K���5�1A�B��[�&�1��K���7�.�!�<��9����+	5��X��!�
��	�
��"�
���
�� �
5�*�1�-�1�4��
5�sO�9D.�D)�D.�D?�)A=E�)D.�.D<�;D<�?E
�E
�	E*�E%�%E*c���g}t|jxstjd�}|�-t	d�|�}t|d�}t|d�}||fS|j
�r|g}||fS)z/Add default file and split between INI and TOMLzpyproject.tomlc�2�t|�jdk(S)Nz.toml)r
r?)�fs r-r�z8Distribution._get_project_config_files.<locals>.<lambda>ps���Q����'�(A�r/rr)r
rr\�curdirrr��exists)r+r��	tomlfiles�standard_project_metadata�partss     r-�_get_project_config_filesz&Distribution._get_project_config_filesks}���	�$(����)C�"�)�)�EU�$V�!�� ��A�9�M�E��U�1�X��I��U�1�X��I��)�#�#�'�
-�
-�
/�2�3�I��)�#�#r/c��|j|�\}}|j|��tj||j|��|D]}tj|||��|j�|j�y)zXParses configuration files from various levels
        and loads configuration.
        )r�)�ignore_option_errorsN)	r�r�r�parse_configurationr}r�apply_configurationrrX)r+r�r��inifilesr�r�s      r-�parse_config_fileszDistribution.parse_config_filesws���#�<�<�Y�G���)�� � �8� �4��$�$��$�&�&�=Q�	
�"�	T�H��-�-�d�H�>R�S�	T�	
���!��$�$�&r/c� �ddlm}|||�S)zResolve pre-setup requirementsr)�_fetch_build_eggs)�setuptools.installerr�)r+rXr�s   r-�fetch_build_eggszDistribution.fetch_build_eggs�s��:� ��x�0�0r/c���d}d�}tj|��}tj|j|�}td�|�}t
||��D]
}||��y)z�
        Allow plugins to apply arbitrary operations to the
        distribution. Each hook may optionally define a 'order'
        to influence the order of execution. Smaller numbers
        go first and the default is 0.
        z(setuptools.finalize_distribution_optionsc��t|dd�S)N�orderr)r))�hooks r-�by_orderz/Distribution.finalize_options.<locals>.by_order�s���4��!�,�,r/rc�"�|j�Sr�)r�)r�s r-r�z/Distribution.finalize_options.<locals>.<lambda>�s��q�v�v�x�r/)rnN)r"r	r�rO�_removedrLr�)r+r�r��defined�filtered�loadedr�s       r-�finalize_optionszDistribution.finalize_options�s`��;��	-��'�'�e�4���(�(�����@���'��2����X�.�	�B��t�H�	r/c�$�dh}|j|vS)z�
        When removing an entry point, if metadata is loaded
        from an older version of Setuptools, that removed
        entry point will attempt to be loaded and will fail.
        See #2765 for more details.
        �
2to3_doctests)rO)r��removeds  r-r�zDistribution._removed�s��
�
���w�w�'�!�!r/c��tjd��D]>}t||jd�}|��|j	�||j|��@y)Nrr)r"r	r)rOr�)r+r�rBs   r-�_finalize_setup_keywordsz%Distribution._finalize_setup_keywords�sM���'�'�.H�I�	0�B��D�"�'�'�4�0�E�� �����	�$�����/�	0r/c���tjjtjd�}tjj	|�s�tj
|�t
j|�tjj|d�}t|d�5}|jd�|jd�|jd�ddd�|S|S#1swY|SxYw)Nz.eggsz
README.txt�wzcThis directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.

zAThis directory caches those eggs to prevent repeated downloads.

z/However, it is safe to delete this directory.

)
r\r]r7r�r��mkdirr�	hide_filerurm)r+�
egg_cache_dir�readme_txt_filenamer�s    r-�get_egg_cache_dirzDistribution.get_egg_cache_dir�s��������R�Y�Y��8�
��w�w�~�~�m�,��H�H�]�#��%�%�m�4�"$�'�'�,�,�}�l�"K���)�3�/�	
M�1����J�����.�����K�L�	
M���}��	
M���s�$4C$�$C.c� �ddlm}|||�S)z Fetch an egg needed for buildingr)�fetch_build_egg)r�r�)r+rBr�s   r-r�zDistribution.fetch_build_egg�s��8��t�S�)�)r/c���||jvr|j|Stjd|��}|D]$}|j�x|j|<}|cStj||�S)z(Pluggable version of get_command_class()�distutils.commands)r�rO)�cmdclassr"r	r�r�get_command_class)r+r��epsr�r�s     r-r�zDistribution.get_command_class�st���d�m�m�#��=�=��)�)��#�#�*>�W�M���	B�B�02���	�9�D�M�M�'�"�X��O�	B�!�2�2�4��A�Ar/c���tjd��D]D}|j|jvs�|j	�}||j|j<�Ft
j
|�S�Nr�r)r"r	rOr�r�r�print_commands�r+r�r�s   r-r�zDistribution.print_commands�s]���'�'�.B�C�	2�B��w�w�d�m�m�+��7�7�9��)1��
�
�b�g�g�&�	2��+�+�D�1�1r/c���tjd��D]D}|j|jvs�|j	�}||j|j<�Ft
j
|�Sr�)r"r	rOr�r�r�get_command_listr�s   r-r�zDistribution.get_command_list�s]���'�'�.B�C�	2�B��w�w�d�m�m�+��7�7�9��)1��
�
�b�g�g�&�	2��-�-�d�3�3r/c��|j�D]2\}}t|d|zd�}|r	||��!|j||��4y)a�Add items to distribution that are named in keyword arguments

        For example, 'dist.include(py_modules=["x"])' would add 'x' to
        the distribution's 'py_modules' attribute, if it was not already
        there.

        Currently, this method only supports inclusion for attributes that are
        lists or tuples.  If you need to add support for adding to other
        attributes in this or a subclass, you can add an '_include_X' method,
        where 'X' is the name of the attribute.  The method will be called with
        the value passed to 'include()'.  So, 'dist.include(foo={"bar":"baz"})'
        will try to call 'dist._include_foo({"bar":"baz"})', which can then
        handle whatever special inclusion logic is needed.
        �	_include_N)r�r)�
_include_misc)r+r�r�r��includes     r-r�zDistribution.include�sI���K�K�M�	)�D�A�q��d�K�!�O�T�:�G����
��"�"�1�a�(�	)r/c���|dz}|jr7|jD�cgc]}||k7s�	|j|�r�|��c}|_|jr7|jD�cgc]}||k7s�	|j|�r�|��c}|_|jrJ|jD�cgc].}|j|k7r|jj|�s|��0c}|_yycc}wcc}wcc}w)z9Remove packages, modules, and extensions in named packager�N)�packagesr��
py_modules�ext_modulesrO�r+�package�pfx�ps    r-�exclude_packagezDistribution.exclude_package�s�����m���=�=��=�=���A��L����c�AR���D�M��?�?��?�?���a�7�l�1�<�<�PS�CT���D�O�����)�)� ���6�6�W�$�Q�V�V�->�->�s�-C�� �D������
��
 s'�
C#�C#�C#�#
C(�.C(�C(�&3C-c�h�|dz}|j�D]}||k(s|j|�s�yy)z<Return true if 'exclude_package(package)' would do somethingr�TN)�iter_distribution_namesr�r�s    r-r�zDistribution.has_contents_fors:����m���-�-�/�	�A��G�|�q�|�|�C�0��	r/c	�0�t|t�st|�d|�d���	t||�}|�t|t�st|dz��|r!t|||D�cgc]	}||vs�|��c}�yy#t$r}td|z�|�d}~wwxYwcc}w)zAHandle 'exclude()' for list/tuple attrs without a special handlerz#: setting must be a list or tuple (r�� %s: No such distribution settingN�4: this setting cannot be changed via include/exclude�r��sequencerr)r�r)r+rOrB�oldr��items      r-�
_exclude_misczDistribution._exclude_miscs����%��*�%�>B�E�J��
�	X��$��%�C��?�:�c�8�#<�%��M�M��
���D�$�#� K�$��U�9J�� K�L���
�	X�%�&H�4�&O�P�VW�W��	X��!Ls#�A3�	B�&B�3	B�<B�Bc�N�t|t�st|�d|�d���	t||�}|�t|||�yt|t�st|dz��|D�cgc]	}||vs�|��}}t||||z�y#t$r}td|z�|�d}~wwxYwcc}w)zAHandle 'include()' for list/tuple attrs without a special handlerz: setting must be a list (r�r�Nr�r�)r+rOrBr�r�r��news       r-r�zDistribution._include_misc,s����%��*�%�4�QV�&W�X�X�	X��$��%�C��;��D�$��&��C��*�%��M�M��
�%*�=�D�T��_�4�=�C�=��D�$��c�	�*���	X�%�&H�4�&O�P�VW�W��	X��>s#�B�!	B"�+B"�	B�B�Bc��|j�D]2\}}t|d|zd�}|r	||��!|j||��4y)aRemove items from distribution that are named in keyword arguments

        For example, 'dist.exclude(py_modules=["x"])' would remove 'x' from
        the distribution's 'py_modules' attribute.  Excluding packages uses
        the 'exclude_package()' method, so all of the package's contained
        packages, modules, and extensions are also excluded.

        Currently, this method only supports exclusion from attributes that are
        lists or tuples.  If you need to add support for excluding from other
        attributes in this or a subclass, you can add an '_exclude_X' method,
        where 'X' is the name of the attribute.  The method will be called with
        the value passed to 'exclude()'.  So, 'dist.exclude(foo={"bar":"baz"})'
        will try to call 'dist._exclude_foo({"bar":"baz"})', which can then
        handle whatever special exclusion logic is needed.
        �	_exclude_N)r�r)r�)r+r�r�r��excludes     r-r�zDistribution.exclude?sI�� �K�K�M�	)�D�A�q��d�K�!�O�T�:�G����
��"�"�1�a�(�	)r/c��t|t�std|�d���tt	|j
|��y)Nz+packages: setting must be a list or tuple (r�)r�r�rr�rLr�)r+r�s  r-�_exclude_packageszDistribution._exclude_packagesVs6���(�H�-�%�DL�N��
�	
�S��%�%�x�
0�1r/c��|jj|_|jj|_|d}|jd�}||vr.||\}}||=ddl}|j|d�|dd|d}||vr�.tj|||�}|j|�}	t|	dd�rd|f|j|�d<|�gS|S)Nr�aliasesTr�command_consumes_arguments�command line�args)
�	__class__�global_optionsr~rz�shlexrar�_parse_command_optsr�r))
r+r�rr�r�r�r�r�nargs�	cmd_classs
          r-rz Distribution._parse_command_opts]s���"�n�n�;�;��� �N�N�7�7����q�'���&�&�y�1���� � ��)�J�C���� ���{�{�5�$�/�D��!�H��1�g�G�
�� ��1�1�$���E���*�*�7�3�	��9�:�D�A�5C�U�4K�D� � ��)�&�1�� ��	��r/c	���i}|jj�D]�\}}|j�D]�\}\}}|dk7r�|jdd�}|dk(ru|j|�}|jj�}|j
t|di��|j�D]\}	}
|
|k(s�|	}d}ntd��|dk(rd}||j|i�|<����|S)	ahReturn a '{cmd: {opt:val}}' map of all command-line options

        Option names are all long, but do not include the leading '--', and
        contain dashes rather than underscores.  If the option doesn't take
        an argument (e.g. '--quiet'), the 'val' is 'None'.

        Note that options provided by config files are intentionally excluded.
        rr�r�rr~NzShouldn't be able to get herer)
r}r�r��get_command_objr~�copy�updater)r�r)r+�d�cmd�optsr�r�ri�cmdobjr��neg�poss           r-�get_cmdline_optionsz Distribution.get_cmdline_optionsxs��
���-�-�3�3�5�	1�I�C��#'�:�:�<�
1���Z�c�3��.�(���k�k�#�s�+���!�8�!�1�1�#�6�F�"�/�/�4�4�6�G��N�N�7�6�>�2�#F�G�$+�M�M�O�N���S��#�:�"%�C�"&�C�!�	N�-�-L�M�M��A�X��C�-0����S�"�%�c�*�+
1�	1�0�r/c#�K�|jxsdD]}|���|jxsdD]}|���|jxsdD]>}t|t�r|\}}n|j
}|j
d�r|dd}|���@y�w)z@Yield all packages, modules, and extension names in distributionr@�moduleNi����)r�r�r�r�r�rOr�)r+�pkgr�extrO�	buildinfos      r-r�z$Distribution.iter_distribution_names�s������=�=�&�B�	�C��I�	��o�o�+��	�F��L�	��#�#�)�r�	�C��#�u�%�"%���i��x�x���}�}�X�&��C�R�y���J�	�s�BBc�F�ddl}|jrtj||�St	|j
tj�stj||�S|j
jj�dvrtj||�S|j
j}|j
jd��	tj||�|j
j|��S#|j
j|��wxYw)z�If there were any non-global "display-only" options
        (--help-commands or the metadata display options) on the command
        line, display the requested info and return true; else return
        false.
        rN)rf�utf8rfrg)rn�
help_commandsr�handle_display_optionsr��stdoutrt�
TextIOWrapperrhr��reconfigure)r+�option_orderrnrhs    r-rz#Distribution.handle_display_options�s���	���� �7�7��l�K�K��#�*�*�b�&6�&6�7� �7�7��l�K�K��:�:���$�$�&�*;�;� �7�7��l�K�K��:�:�&�&���
�
�����0�	6� �7�7��l�K��J�J�"�"�H�"�5��C�J�J�"�"�H�"�5�s�D�D c�D��|j�t�|�	|�yr�)r�super�run_command)r+r�rs  �r-r"zDistribution.run_command�s�������	���G�$r/r�)NF)4ri�
__module__�__qualname__�__doc__r�rrrr�r�r
rr�staticmethodrrrr6r9r7rMrXrVr�r{r�r|r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrr�rr"�
__classcell__)rs@r-rr�sV���1�h*6��&�1�1�$�%�'�#��M�*�'"�R+�Q���������02�4E� �;��;�
�6�
�&�
��
�M5�^ �D��$,5�\
$�'�"1��$�"��"�0��&*�
B�2�4�)�,�*�M�"+�&)�.2��6$�L�$6�8%�%r/c��eZdZdZy)r�zrClass for warning about deprecations in dist in
    setuptools. Not ignored by default, unlike DeprecationWarning.N)rir#r$r%r@r/r-r�r��s��Fr/r�)dr�rtrnr�r\r.�
distutils.logr��distutils.core�
distutils.cmd�distutils.dist�distutils.command�distutils.utilr�distutils.debugr�distutils.fancy_getoptr�globrr�r8�
contextlibr�typingr	r
rr�pathlibr
�collectionsr�emailr�distutils.errorsrrr�setuptools.externrr� setuptools.extern.more_itertoolsrrr%�setuptools.commandr�setuptools.monkeyr�setuptools.configrr�setuptools.discoveryr�setuptools.extern.packagingrr�rr r!�
_importlibr"�warningsr#r$�
email.messager%�
__import__r.r|r;rCrErIrMrfrjr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��corerrr�r@r/r-�<module>rDs����
��	�
�	�	�������$�!�4�����5�5��#�#�F�(�'�)�G���&�+�5�0�/���� �C��%�
�3�4�
�0�1��Q�S�Q�S�Q��i������
��"�	�"�#�"�(�3�-�"��Y��s��x��S�	�7J���	��h�s�m��(B�V�D�N�$�;����
�:	���G�5�R�R�,�A�
H���i�n�n�9�9�:�
�E
%�=�E
%�PF�9�Fr/

Zerion Mini Shell 1.0