Uname:Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 173.249.148.11  /  Your IP : 216.73.216.179
Web Server : Apache/2.4.68 (AlmaLinux)
System : Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64
User : devinter ( 1006)
PHP Version : 8.3.35
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/certbot/current/lib/python3.12/site-packages/setuptools/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/certbot/current/lib/python3.12/site-packages/setuptools/__pycache__/dist.cpython-312.pyc
�

��jc����UddlmZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
mZmZm
Z
ddlmZddlmZddlmZmZddlmZmZddlmZmZdd	lmZmZdd
lmZddlm Z m!Z!m"Z"m#Z$dd
l%m&Z&ddl'm(Z(ddl)m*Z*ddl!m+Z+ddl,m-Z-m.Z.ddl/m0Z0ddl1m2Z2ddl3m4Z4ddl5m6Z6m7Z7ddl8Z9ddl:Z9ddl;Z9ddl<Z9ddl=Z9ddl>m?Z?ddl@mAZAmBZBddlCmDZDddlEmFZFerddlmGZGdgZHeIeJfZK	eIeLdfeJeLzZMdeNd<dZOeLePeLefze
eLzZQdeNd <	d4d!�ZRd"�ZSd5d#�ZTd$�ZUd%�ZVd&�ZWd'�ZXd(�ZYd)�ZZd6d*�Z[d+�Z\d,�Z]d-�Z^d.�Z_erdd/l;m`Zane4e9j�j��ZaGd0�dea�Z`ej�d7d1��ZdGd2�d3e7�Zey)8�)�annotationsN)�Iterable�Iterator�MutableMapping�Sequence)�glob)�Path)�
TYPE_CHECKING�Any)�	partition�unique_everseen)�
InvalidMarker�Marker)�InvalidSpecifier�SpecifierSet)�Version�)�
_entry_points�_reqs�_static�command)�metadata)� _canonicalize_license_expression)�StrPath)�
_StrOrIter)�
pyprojecttoml�setupcfg)�ConfigDiscovery)�InvalidConfigError)�
get_unpatched)�InformationOnly�SetuptoolsDeprecationWarning)�DEBUG)�DistutilsOptionError�DistutilsSetupError)�translate_longopt)�	strtobool)�	TypeAlias�Distribution.r(�	_Sequenceztuple[str, ...] | list[str]�_OrderedStrSequencec�r�|dk(rtjddd��tStdt�d|����)N�sequencez@`setuptools.dist.sequence` is an internal implementation detail.z8Please define your own `sequence = tuple, list` instead.)i���)�due_datezmodule z has no attribute )r"�emit�	_sequence�AttributeError�__name__��names �K/root/parts/certbot/install/lib/python3.12/site-packages/setuptools/dist.py�__getattr__r8IsB���z��$�)�)�N�F�"�	
�
��
�7�8�,�.@���I�
J�J�c��	tj|dd��}|jrJ�y#ttt
tf$r}t|�d|�d��|�d}~wwxYw)N)�valuer6�groupz/ must be importable 'module:attrs' string (got �))r�
EntryPoint�extras�	TypeError�
ValueErrorr3�AssertionErrorr%)�dist�attrr;�ep�es     r7�check_importablerGTsc���
�
 �
 �u�4�t�
D���9�9��}�9���z�>�>�B��!��h�E�e�Y�a�P�
��	���s�&)�A�A�Ac	���	t|t�sJ�dj|�|k7sJ�y#ttt
tf$r}t|�dt�d|�d��|�d}~wwxYw)z"Verify that value is a string list�z must be of type <�> (got r=N)	�
isinstancer2�joinr@rAr3rBr%�_sequence_type_repr�rCrDr;rFs    r7�assert_string_listrO^sq��	��%��+�+�+��w�w�u�~��&�&�&���z�>�>�B��!��h�(�)<�(=�W�U�I�Q�O�
��	���s�(+�A"�A�A"c��|}t|||�|D]u}|j|�std|����|jd�\}}}|r%||vr!tj
j
d||�tjddd���wy)	z(Verify that namespace packages are validzCDistribution contains no modules or packages for namespace package �.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)	rO�has_contents_forr%�
rpartition�	distutils�log�warnr"r1)rCrDr;�ns_packages�nsp�parent�_sep�_childs        r7�	check_nspr]ls����K��t�T�;�/��
���$�$�S�)�%�U�VY�U\�]��
� #�~�~�c�2����f��f�K�/��M�M���;���	
�	%�)�)�=�J�J�	
�
r9c��	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)	�list�	itertools�starmap�_check_extra�itemsr@rAr3r%rNs    r7�check_extrasrd�sP����Y�
�
�|�U�[�[�]�
;�<���z�>�2��!�
&�
��		���s�14�A�A�Ac���|jd�\}}}	t|�t	tj|��y#t$rd|�d|�d�}t|�d�wxYw)N�:zInvalid environment marker: z (r=)r�
_check_markerrr%r_r�parse)�extra�reqs�_namer[�marker�msgs      r7rbrb�si���/�/�#�.��E�4��1��f��	����T�	����1�,�V�H�B�u�i�q�A��!�#�&�D�0�1�s�A�A c�@�|syt|�}|j�y�N)r�evaluate)rl�ms  r7rgrg�s�����v��A��J�J�Lr9c�B�t|�|k7rt|�d|�d���y)z)Verify that value is True, False, 0, or 1z must be a boolean value (got r=N)�boolr%�rCrDr;s   r7�assert_boolru�s-���E�{�e��!�T�H�,J�5�)�ST�"U�V�V�r9c�T�|stj|�d��yt|�d���)Nz is ignored.z is invalid.)�DistDeprecationWarningr1r%rts   r7�invalid_unless_falserx�s/����#�#�t�f�L�$9�:��
���l�3�
4�4r9c���	ttj|��t|t�rtd��y#t
tf$r}|�d|��}t|�|�d}~wwxYw)z9Verify that install_requires is a valid requirements listzUnordered types are not allowedzb must be a string or iterable of strings containing valid project/version requirement specifiers; N)r_rrhrK�setr@rAr%�rCrDr;�errorrms     r7�check_requirementsr}�sr��	2��U�[�[��
� ��e�S�!��=�>�>�"���z�"�2��h�H�HM�w�
P�	�"�#�&�E�1��2�s�9<�A#�A�A#c�p�	t|�y#ttf$r}|�d|��}t|�|�d}~wwxYw)z.Verify that value is a valid version specifierz7 must be a string containing valid version specifiers; N)rrr3r%r{s     r7�check_specifierr�sC��2��U����n�-�2���O�PU�w�W��!�#�&�E�1��2�s��5�0�5c�j�	tj|�y#t$r}t|�|�d}~wwxYw)z)Verify that entry_points map is parseableN)r�load�	Exceptionr%rNs    r7�check_entry_pointsr��s2��,����5�!���,�!�!�$�!�+��,�s��	2�-�2c���t|t�st|�d���|j�D]8\}}t|t�std|�d|�d���t|d|�d�|��:y)z@Verify that value is a dictionary of package names to glob listszP must be a dictionary mapping package names to lists of string wildcard patternszkeys of z dict must be strings (got r=z
values of z dictN)rK�dictr%rc�strrO)rCrDr;�k�vs     r7�check_package_datar��s����e�T�"�!��h�'�
'�
�	
����
�@���1��!�S�!�%��4�(�"=�a�U�!�D��
�	�4�:�d�X�U�!;�Q�?�@r9c��|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�matchrUrVrW)rCrDr;�pkgnames    r7�check_packagesr��s9������x�x���0��M�M���8��
�r9)r)c	���eZdZUdZd�eed�d�d�eed�Zded<d0d1d	�Zd
�Z	d�Z
ed��Zd
�Z
d�Zd2d�Zd2d�Ze	d3					d4d��Zed3d5d��Zd0d�Zd6d�Zd6d�Zd7d�Zd7d�Zd0d�Zd8d�Z		d9					d:d�Zd;d�Zd2d�Zed��Zd�Zd<d�Z d �Z!d=d!�Z"d"�Z#d#�Z$d2d$�Z%d>d%�Z&d?d&�Z'd@d'�Z(d@d(�Z)d2d)�Z*dAd*�Z+d+�Z,dBd,�Z-dCd-�Z.d.�Z/d2�fd/�Z0�xZ1S)Dr)a�	Distribution 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.

     '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��yro�r�r9r7�<lambda>zDistribution.<lambda>!��r9c��yror�r�r9r7r�zDistribution.<lambda>$r�r9c��yror�r�r9r7r�zDistribution.<lambda>%r�r9c��yror�r�r9r7r�zDistribution.<lambda>&r�r9)�long_description_content_type�project_urls�provides_extras�license_expression�license_file�
license_files�install_requires�extras_require�	list[str]�namespace_packagesc�$�t|d�}|si|_|xsi}g|_d|_d|_|jdd�|_|jdg�|_|jdg�|_tjd��D]'}t|�j|jd��)t|j�}|ddhz}|j!�D��cic]
\}}||vs�||��}}}t#j$||�tt&�|_t+|�|_|j/|�|j1|jj2�|j_|j5�ycc}}w)	N�package_data�src_root�dependency_links�setup_requires�distutils.setup_keywords�r<r�r�)�hasattrr��
dist_files�include_package_data�exclude_package_data�popr�r�r�r�entry_points�vars�
setdefaultr6rz�_DISTUTILS_UNSUPPORTED_METADATArc�
_Distribution�__init__r��_referenced_filesr�set_defaults�_set_metadata_defaults�_normalize_version�version�_finalize_requires)�self�attrs�have_package_datarE�
metadata_onlyr�r��
dist_attrss        r7r�zDistribution.__init__/s`��#�D�.�9�� �68�D������68���15��!�AE��!�$)�I�I�j�$�$?��
�+0�9�9�5G��+L���).���3C�R�)H����'�'�.H�I�	1�B���J�!�!�"�'�'�4�0�	1��D�@�@�A�
��,�.>�?�?�
�',�{�{�}�O�t�q�!���8N�a��d�O�
�O����t�Z�0�
"%�S�����+�D�1����#�#�E�*� $� 7� 7��
�
�8M�8M� N��
�
�����!��Ps�%F�2Fc��dh}t|j�D�chc]}t|j|d��|��}}||z
}|rd|��}t|��ycc}w)Nr6z&Required package metadata is missing: )r�r�getattrr%)r��required�key�provided�missingrms      r7�_validate_metadatazDistribution._validate_metadataOst���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)r�rcr�rr��get)r�r��option�defaults    r7r�z#Distribution._set_metadata_defaults\sN�� $�C�C�I�I�K�	Q�O�F�G������*�*�6�5�9�9�V�W�Y�3O�P�	Qr9c���ddlm}t|tj�rt|�}nt||�s|�|Stt
|��}||k7rtjd|�d|�d��|S|S)Nr)�sic�
Normalizing '�' to '�')	rIr�rK�numbers�Numberr�rr!r1)r�r��
normalizeds   r7r�zDistribution._normalize_versionfsn����g�w�~�~�.��'�l�G�
���
%����N����)�*�
��j� �� � �=��	��
�|�1�!M�N����r9c��t|dd�r|j|j_|j�|j|j_|j
|j_|j
r\|j
j
�D]>}|jd�d}|s�|jjj|��@yy)z�
        Set `metadata.python_requires` and fix environment markers
        in `install_requires` and `extras_require`.
        �python_requiresNrfr)
r�r�r�_normalize_requiresr�r��keys�splitr�r�)r�ris  r7r�zDistribution._finalize_requiresvs���
�4�*�D�1�,0�,@�,@�D�M�M�)�� � �"�)-�)>�)>��
�
�&�'+�':�':��
�
�$�����,�,�1�1�3�
D�����C�(��+����M�M�1�1�<�<�U�C�	
D�r9c��t|dd�xsg}t|dd�xsi}tj|�rtjnt}|tttj|���|_	tj|�rtjnt}|d�|j�D��|_
y)zAMake sure requirement-related attributes exist and are normalizedr�Nr�c3�K�|]9\}}|ttttj|xsg���f���;y�wro)r_�mapr�rrh)�.0r�r�s   r7�	<genexpr>z3Distribution._normalize_requires.<locals>.<genexpr>�s7����$
�:>�!�Q�Q��S��e�k�k�!�'�r�2�3�4�5�$
�s�?A)r�r�	is_static�Listr_r�r�rrhr��Dictr�rcr�)r�r�r��list_�dict_s     r7r�z Distribution._normalize_requires�s���"�4�);�T�B�H�b�� ��'7��>�D�"��!(� 1� 1�2B� C������ %�c�#�u�{�{�;K�/L�&M� N��� '� 1� 1�.� A����t��#�$
�BP�BV�BV�BX�$
�
��r9c�4�|jj�}|D�cgc]}|jd�s�|��}}|jj}|r�t	j
|�rtjnt}|t|��}||k7r-tjd|�d|�d��||j_|rtddj|�z��y|r0d}tjdd	dj|�zd
|����yycc}w)
a�
        Normalize license and license_expression.
        >>> dist = Distribution({"license_expression": _static.Str("mit aNd  gpl-3.0-OR-later")})
        >>> _static.is_static(dist.metadata.license_expression)
        True
        >>> dist._finalize_license_expression()
        >>> _static.is_static(dist.metadata.license_expression)  # preserve "static-ness"
        True
        >>> print(dist.metadata.license_expression)
        MIT AND GPL-3.0-or-later
        zLicense :: r�r�r�zyLicense classifiers have been superseded by license expressions (see https://peps.python.org/pep-0639/). Please remove:

�
z&guides/writing-pyproject-toml/#licensez#License classifiers are deprecated.z[Please consider removing the following classifiers in favor of a SPDX license expression:

�'https://packaging.python.org/en/latest/)�see_urlN)r�get_classifiers�
startswithr�rr��Strr�rr!r1rrLr")r��classifiers�cl�license_classifiers�license_expr�str_r��pypa_guidess        r7�_finalize_license_expressionz)Distribution._finalize_license_expression�s���m�m�3�3�5��,7�X�b�2�=�=��;W�r�X��X��}�}�7�7���")�"3�"3�L�"A�7�;�;�s�D��>�|�L�M�J��z�)��$�$�}�\�N�&���TU�%V�W�3=��
�
�0�"�(�R��i�i� 3�4�5���#�!�B�K�(�-�-�5�/�15���;N�1O�P�A�+��O�	
�!��Ys
�D�Dc�:�|jj}|xsg}|jj}|r||vr|j|�|�|�gd�}|j	|d��}n|j	|d��}tt
|��|j_y)z<Compute names of all license files which should be included.N)zLICEN[CS]E*zCOPYING*zNOTICE*zAUTHORS*F)�
enforce_matchT)rr�r��append�_expand_patternsr_r
)r�r��patternsr��filess     r7�_finalize_license_filesz$Distribution._finalize_license_files�s���*.�-�-�*E�*E�
� �&�B��#'�=�=�#=�#=���L��8��O�O�L�)�� �\�%9�J�H��)�)�(�%�)�H�E��)�)�(�$�)�G�E�&*�?�5�+A�&B��
�
�#r9c������fd�|D�S)ao
        >>> getfixture('sample_project_cwd')
        >>> list(Distribution._expand_patterns(['LICENSE.txt']))
        ['LICENSE.txt']
        >>> list(Distribution._expand_patterns(['pyproject.toml', 'LIC*']))
        ['pyproject.toml', 'LICENSE.txt']
        >>> list(Distribution._expand_patterns(['src/**/*.dat']))
        ['src/sample/package_data.dat']
        c3��K�|]t}t�j|���D]T}|jd�sAtjj|�r"|j
tjd����V�vy�w)�~�/N)�sorted�
_find_pattern�endswith�os�path�isfile�replace�sep)r��patternr��clsr�s   ��r7r�z0Distribution._expand_patterns.<locals>.<genexpr>�sj�����
���s�0�0��-�H�I�
���=�=��%�"�'�'�.�.��*>�
�L�L�����%�
�%�
�s�A:A=r�)rr�r�s` `r7r�zDistribution._expand_patterns�s���
�#�
�	
r9c�t�d}d|vr tjd|�d�dd|��d��|jtjd	f�sd
|vrtd|�d���t
jd|��tjd
d|d|��d��t|d��}|r|stjdd|d��|S)a
        >>> getfixture('sample_project_cwd')
        >>> Distribution._find_pattern("LICENSE.txt")
        ['LICENSE.txt']
        >>> Distribution._find_pattern("/LICENSE.MIT")
        Traceback (most recent call last):
        ...
        setuptools.errors.InvalidConfigError: Pattern '/LICENSE.MIT' should be relative...
        >>> Distribution._find_pattern("../LICENSE.MIT")
        Traceback (most recent call last):
        ...
        setuptools.warnings.SetuptoolsDeprecationWarning: ...Pattern '../LICENSE.MIT' cannot contain '..'...
        >>> Distribution._find_pattern("LICEN{CSE*")
        Traceback (most recent call last):
        ...
        setuptools.warnings.SetuptoolsDeprecationWarning: ...Pattern 'LICEN{CSE*' contains invalid characters...
        zspecifications/glob-patterns/z..zPattern z cannot contain '..'z�
                Please ensure the files specified are contained by the root
                of the Python package (normally marked by `pyproject.toml`).
                r�)i����r�r0r�z:\z/ should be relative and must not start with '/'z^[\w\-\.\/\*\?\[\]]+$z$Please provide a valid glob pattern.z0Pattern {pattern!r} contains invalid characters.)rr�r0T)�	recursivez,Cannot find any files for the given pattern.z,Pattern {pattern!r} did not match any files.)rr0)	r"r1r�r�rrr�r�r)rr�r��founds    r7r�zDistribution._find_pattern�s���&6���7�?�(�-�-��7�+�%9�:��B�+��O�&�	
����r�v�v�s�m�,���0@�$��7�+�%T�U��
��8�8�,�g�6�>�(�-�-�6�B��A�+��O�&�
��W��-����(�-�-�>�>��&�	
��r9c
�(�ddlm}tjtjk(rgngd�}t|�}|�|j
�}tr|jd�|�}t|_
|D]�}t|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
j/�D]T\}
\}}|j0j%|
�}
|
r
t3|�}n|
dk(rt3|�}	t5||
xs|
|��Vy#1swY��%xYw#t6$r}t9|�|�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}r4�global�verboser�)�configparserr
�sysr�base_prefix�	frozenset�find_config_filesr#�announcer��optionxform�open�format�locals�	read_file�sections�options�get_option_dictr��_enforce_underscore�_enforce_option_lowercaser��command_optionsrc�negative_optr'�setattrrAr$)r��	filenamesr
�ignore_options�parser�filename�reader�sectionr �opt_dict�opt�val�src�aliasrFs               r7�_parse_config_filesz Distribution._parse_config_files"s��	.�
�z�z�S�_�_�,�
��	�(#�>�2�����.�.�0�I���M�M�>�?���� ���!�	�H��h��1�
)�V���M�M�"?�"8�"?�"?�"K�&�(�"K�L�� � ��(�
)�"�?�?�,�
4�� �.�.��1���/�/��8��"�4�C��j�(�C�>�,A� � �*�*�W�c�2�C��2�2�3��@�C��8�8��g�F�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%�AG*�G7�*G4	�7	H�H�Hc
��d|vs|j|�r|S|jdd�}|jjrd|jj�d�nd}t	j
d|�d|�d|�d	�d
|�d|�d|�d
�dd��|S)N�-�_�(Affected: �).rIzInvalid dash-separated key � in z- (setup.cfg), please use the underscore name �	 instead.z%
            Usage of dash-separated zV will not be supported in future
            versions. Please use the underscore name � instead.
            ��

            Available configuration options are listed in:
            https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
            �3https://github.com/pypa/setuptools/discussions/5011�i��r>r)�_skip_setupcfg_normalizationr�rr6r"r1)r�r.r,�underscore_opt�affecteds     r7r"z Distribution._enforce_underscoreqs����c�>�T�>�>�w�G��J����S�#�.��;?�=�=�;M�;M�[����!3�!3� 4�B�7�SU��$�)�)�)�#���W�K�@.�.<�-?�y�
J�%�%(�G�,6�6D�5G�H
�
�J�
�
�J�!�	
��r9c�0�|j�s|j|�r|S|j�}|jjrd|jj�d�nd}tjd|�d|�d|�d�d|�d|�d	|�d
|�d�	dd
��|S)Nr6r7rIzInvalid uppercase key r8z# (setup.cfg), please use lowercase r9z$
            Usage of uppercase key zL will not be supported in
            future versions. Please use lowercase r:r;r<r=r)�islowerr?�lowerrr6r"r1)r�r.r,�
lowercase_optrAs     r7r#z&Distribution._enforce_option_lowercase�s����;�;�=�D�=�=�g�F��J��	�	��
�;?�=�=�;M�;M�[����!3�!3� 4�B�7�SU��$�)�)�$�S�G�4��{�;$�$1�#4�I�
?�$�$'�7�$�w�k�:3�3@�2C�D
�
�J�
�
�J�!�	
��r9c�6�d}||vxs|j|�S)N)zoptions.extras_requirezoptions.data_fileszoptions.entry_pointszoptions.package_datazoptions.exclude_package_data)�_is_setuptools_section)r�r,�skips   r7r?z)Distribution._skip_setupcfg_normalization�s(��
���$��J�d�&A�&A�'�&J�"J�Jr9c�N�|dk(xs|jd�xs|t�vS)Nrr )r��_setuptools_commands)r�r,s  r7rGz#Distribution._is_setuptools_section�s3���z�!�
1��!�!�)�,�
1��.�0�0�	
r9c
���|j�}|�|j|�}tr|jd|�d��|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 'z
' command:z    z = z (from r=z	error in z: command 'z' has no such option 'r�)�get_command_namer!r#rrc�boolean_optionsr&r3r%rKr�r&r'r�r$rA)r��command_obj�option_dict�command_namer��sourcer;�o�	bool_opts�neg_opt�	is_stringrFs            r7�_set_command_optionsz!Distribution._set_command_options�s���#�3�3�5�����.�.�|�<�K���M�M�3�L�>��L�M�'2�'8�'8�':�	5�#�F�O�V�U���
�
��V�H�C��w�g�f�X�Q�G�H�
�;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�.�#�F�8�;�|�n�DZ�[a�Zb�bc�d����+	5��X��!�
��	�
��"�
���
���
5�*�1�-�1�4��
5�sO�:D/�D*�D/�E�*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	�suffix)�fs r7r�z8Distribution._get_project_config_files.<locals>.<lambda>�s���Q����'�(A�r9rr)r	r�r��curdirrr_�exists)r�r'�	tomlfiles�standard_project_metadata�partss     r7�_get_project_config_filesz&Distribution._get_project_config_files�s}���	�$(����)C�"�)�)�EU�$V�!�� ��A�9�M�E��U�1�X��I��U�1�X��I��)�#�#�'�
-�
-�
/�2�3�I��)�#�#r9c�0�|j|�\}}|j|��tj||j|��|D]}tj|||��|j�|j�|j�y)zXParses configuration files from various levels
        and loads configuration.
        )r')�ignore_option_errorsN)
r`r2r�parse_configurationr$r�apply_configurationr�r�r�)r�r'rb�inifilesr]r*s      r7�parse_config_fileszDistribution.parse_config_files�s���#�<�<�Y�G���)�� � �8� �4��$�$��$�&�&�=Q�	
�"�	T�H��-�-�d�H�>R�S�	T�	
���!��)�)�+��$�$�&r9c� �ddlm}|||�S)zResolve pre-setup requirementsr)�_fetch_build_eggs)�	installerrh)r��requiresrhs   r7�fetch_build_eggszDistribution.fetch_build_eggss��0� ��x�0�0r9c���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 r7�by_orderz/Distribution.finalize_options.<locals>.by_orders���4��!�,�,r9r�c�"�|j�Sro)r�)rFs r7r�z/Distribution.finalize_options.<locals>.<lambda>s��q�v�v�x�r9)r�N)rr�r`�filterfalse�_removedr�r�)r�r<rp�defined�filtered�loadedrEs       r7�finalize_optionszDistribution.finalize_optionss`��;��	-��'�'�e�4���(�(�����@���'��2����X�.�	�B��t�H�	r9c�$�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_doctestsr5)rE�removeds  r7rszDistribution._removeds��
�
���w�w�'�!�!r9c��tjd��D]>}t||jd�}|��|j	�||j|��@y)Nr�r�)rr�r�r6r�)r�rEr;s   r7�_finalize_setup_keywordsz%Distribution._finalize_setup_keywords&sM���'�'�.H�I�	0�B��D�"�'�'�4�0�E�� �����	�$�����/�	0r9c���ddlm}tjj	tj
d�}tjj
|�s�tj|�|j|�tjj	|d�}t|dd��5}|jd�|jd	�|jd
�ddd�|S|S#1swY|SxYw)Nr)�windows_supportz.eggsz
README.txt�wrrzcThis 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.

)rIr~r�r�rLr[r\�mkdir�	hide_filer�write)r�r~�
egg_cache_dir�readme_txt_filenamerZs     r7�get_egg_cache_dirzDistribution.get_egg_cache_dir,s���%������R�Y�Y��8�
��w�w�~�~�m�,��H�H�]�#��%�%�m�4�"$�'�'�,�,�}�l�"K���)�3��A�	
M�Q����J�����.�����K�L�	
M���}��	
M���s�(4C(�(C2c� �ddlm}|||�S)z Fetch an egg needed for buildingr)�fetch_build_egg)rir�)r��reqr�s   r7r�zDistribution.fetch_build_eggAs��.��t�S�)�)r9c��||jvr|j|S|dk(rddlm}|Stjd|��}|D]$}|j�x|j|<}|cSt
j||�S)z(Pluggable version of get_command_class()�bdist_wheelr)r��distutils.commands)r<r6)�cmdclass�command.bdist_wheelr�rr�r�r��get_command_class)r�rr��epsrEr�s      r7r�zDistribution.get_command_classGs����d�m�m�#��=�=��)�)��m�#�8����#�#�*>�W�M���	B�B�02���	�9�D�M�M�'�"�X��O�	B�!�2�2�4��A�Ar9c���tjd��D]D}|j|jvs�|j	�}||j|j<�Ftj|�S�Nr�r�)rr�r6r�r�r��print_commands�r�rEr�s   r7r�zDistribution.print_commandsYs]���'�'�.B�C�	2�B��w�w�d�m�m�+��7�7�9��)1��
�
�b�g�g�&�	2��+�+�D�1�1r9c���tjd��D]D}|j|jvs�|j	�}||j|j<�Ftj|�Sr�)rr�r6r�r�r��get_command_listr�s   r7r�zDistribution.get_command_list`s]���'�'�.B�C�	2�B��w�w�d�m�m�+��7�7�9��)1��
�
�b�g�g�&�	2��-�-�d�3�3r9c��|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)rcr��
_include_misc)r�r�r�r��includes     r7r�zDistribution.includegsI���K�K�M�	)�D�A�q��d�K�!�O�T�:�G����
��"�"�1�a�(�	)r9c���|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 packagerQN)�packagesr��
py_modules�ext_modulesr6�r��package�pfx�ps    r7�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 somethingrQTF)�iter_distribution_namesr�r�s    r7rSzDistribution.has_contents_for�s?����m���-�-�/�	�A��G�|�q�|�|�C�0��	�r9c	�>�t|t�st|�dt�d|�d���	t	||�}|�t|t�st|dz��|r!t
|||D�cgc]	}||vs�|��c}�yy#t
$r}t|�d��|�d}~wwxYwcc}w)zAHandle 'exclude()' for list/tuple attrs without a special handler�: setting must be of type <rJr=�: No such distribution settingN�4: this setting cannot be changed via include/exclude)rKr2r%rMr�r3r&)r�r6r;�oldrF�items      r7�
_exclude_misczDistribution._exclude_misc�s����%��+�%��&�3�4G�3H��PU�y�XY�Z��
�	V��$��%�C��?�:�c�9�#=�%��M�M��
���D�$�#� K�$��U�9J�� K�L���
�	V�%���.L�&M�N�TU�U��	V��!Ls#�A:�#	B�-B�:	B�B�Bc�n�t|t�st|�dt�d|�d���	t	||�}|�t
|||�yt|t�st|dz��|D�cgc]	}||vs�|��}}t
||t|�|z�y#t
$r}t|�d��|�d}~wwxYwcc}w)zAHandle 'include()' for list/tuple attrs without a special handlerr�rJr=r�Nr�)rKr2r%rMr�r3r&r_)r�r6r;r�rFr��news       r7r�zDistribution._include_misc�s����%��+�%��&�3�4G�3H��PU�y�XY�Z��
�	V��$��%�C��;��D�$��&��C��+�%��M�M��
�%*�=�D�T��_�4�=�C�=��D�$��S�	�C��0���	V�%���.L�&M�N�TU�U��	V��>s#�B�(	B2�2B2�	B/�B*�*B/c��|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)rcr�r�)r�r�r�r��excludes     r7r�zDistribution.exclude�sI�� �K�K�M�	)�D�A�q��d�K�!�O�T�:�G����
��"�"�1�a�(�	)r9c��t|t�stdt�d|�d���t	t|j|��y)Nz#packages: setting must be of type <rJr=)rKr2r%rMr_r�r�)r�r�s  r7�_exclude_packageszDistribution._exclude_packages�sG���(�I�.�%�5�6I�5J�'�RZ�Q]�]^�_��
�	
�S��%�%�x�
0�1r9c��|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%r!�shlexr�r��_parse_command_optsr�r�)
r�r)r�rr��_srcr1r��nargs�	cmd_classs
          r7r�z Distribution._parse_command_opts�s���"�n�n�;�;��� �N�N�7�7����q�'���&�&�y�1���� �!�'�*�K�D�%��� ���{�{�5�$�/�D��!�H��1�g�G�
�� ��1�1�$���E���*�*�7�3�	��9�:�D�A�5C�U�4K�D� � ��)�&�1�� ��	��r9c	���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.
        r�r5r4rr%NzShouldn't be able to get herer)
r$rcr��get_command_objr%�copy�updater�rBr�)r��d�cmd�optsr.r0r/�cmdobjrT�neg�poss           r7�get_cmdline_optionsz Distribution.get_cmdline_options�s��/1���-�-�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�2�r9c#�K�|jxsdEd{���|jxsdEd{���|jxsdD]9}t|t�r|\}}n|j
}|j
d�}|���;y7�i7�S�w)z@Yield all packages, modules, and extension names in distributionr�N�module)r�r�r�rK�tupler6�removesuffix)r��extr6�
_buildinfos    r7r�z$Distribution.iter_distribution_names#s������=�=�&�B�&�&��?�?�(�b�(�(��#�#�)�r�	�C��#�u�%�#&� ��j��x�x���$�$�X�.�D��J�
	�		'��(�s �B�B�B�B�AB�Bc�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)r�utf8rr)r�
help_commandsr��handle_display_optionsrK�stdout�io�
TextIOWrapperrrD�reconfigure)r��option_orderrrs    r7r�z#Distribution.handle_display_options2s���	���� �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�|�	|�yro)r��super�run_command)r�rr�s  �r7r�zDistribution.run_commandNs�������	���G�$r9ro)r�zMutableMapping[str, Any] | None�return�None)r�r�)T)r�r�r�rsr��
Iterator[str])rr�r�rsr�r�)r.r�r,r�r�r�)r,r�r�rs)r'�Iterable[StrPath] | None)NF)r'r�rbrsr�r�)rjrr�zlist[metadata.Distribution])r�r�)rr�r�ztype[distutils.cmd.Command])r�r�r�r�)r�r�r�rs)r6r�r;r*r�r�)r�r*r�r�)r�z dict[str, dict[str, str | None]])r�r�)2r4�
__module__�__qualname__�__doc__r�r_r��__annotations__r�r�r��staticmethodr�r�r�r�r��classmethodr�r�r2r"r#r?rGrVr`rfrkrwrsr|r�r�r�r�r�r�r�rSr�r�r�r�r�r�r�r�r��
__classcell__)r�s@r7r)r)�s����+�\*6���*�$�%� ��	'�#�"�!�"�@+�Q��
��
�D�&
�&�PC�(�8<�
� �
�15�
�	�
��
�&�7��7�tM5�^�.�.K�
�+5�Z
$�/3�%*�'�+�'�#�'�
�	'�,1��$�"��"�0��**�B�$2�4�)�,�*	�M�"1�*)�.2��6%�N
�6�8%�%r9c���	tjd�j}d�|D�}htj
j�|�S#tj$rg}Y�5wxYw)N�
setuptoolsc3�4K�|]}|j���y�wror5)r�rEs  r7r�z'_setuptools_commands.<locals>.<genexpr>[s����=�"�b�g�g�=�s�)r�distributionr��PackageNotFoundErrorrUr�__all__)r�r�s  r7rJrJVsa����,�,�\�:�G�G��=��=��.�Y�
�
�
&�
&�-��-�-���(�(�����s�(A�A �A c��eZdZdZy)rwzrClass for warning about deprecations in dist in
    setuptools. Not ignored by default, unlike DeprecationWarning.N)r4r�r�r�r�r9r7rwrwbs��Fr9rw)r6r�r�r)rDr�r;r*r�r�)rDr�r;r+r�r�)r�zset[str])f�
__future__r�	functoolsr�r`r�r�r�r�collections.abcrrrrr�pathlibr	�typingr
r�more_itertoolsrr
�packaging.markersrr�packaging.specifiersrr�packaging.versionrrIrrrrr5�
_importlibr�_normalizationr�_pathrr�configrr�	discoveryr�errorsr�monkeyr �warningsr!r"�
distutils.cmdrU�distutils.command�distutils.core�distutils.dist�
distutils.log�distutils.debugr#�distutils.errorsr$r%�distutils.fancy_getoptr&�distutils.utilr'r(r�r�r_r2r�r*r�rMr�r+r8rGrOr]rdrbrgrurxr}rr�r�r�r)r��core�cacherJrwr�r9r7�<module>r
s|��"��	���	�	�
�H�H���%�5�3�?�%���!�<���+�&�&�!�C������!�F�4�$�� ��
���4�K�	���S�#�X���c��2�	�9�2�3��!$�t�C��H�~�!5���
�!E��Y�E��K���
�8	���W�5�2�2�,�@���<�!�)�.�.�"=�"=�>�M�a
%�=�a
%�H���.��.�F�9�Fr9

Youez - 2016 - github.com/yon3zu
LinuXploit