%PDF- %PDF-
Mini Shell

Mini Shell

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

�


_�ds7�	���UdZddlZddlZddlmZddlmZddlmZm	Z	ddl
mZddlm
Z
ddlmZmZmZmZmZmZmZmZmZmZmZd	d
lmZmZerddlmZddlm Z e
i�Z!ee"d
<eejFe$fZ%ee&e$fZ'edee%gdfZ(ee$e(fZ)ejTe+�Z,ddde&de%ddfd�Z-ddde&de%fd�Z.ddde&de%fd�Z/ddde&fd�Z0de$de$fd�Z1ddde$defd�Z2ddd d!�Z3d"e$dee$fd#�Z4ddd$e'de%fd%�Z5ddd$e&de%fd&�Z6ddd$ee&d'e%d(e$fd)�Z7ddd$e&fd*�Z8ddd$e&fd+�Z9ddd$e:fd,�Z;ddd$e&fd-�Z<de&fd.�Z=d/e&ddde%fd0�Z>e!fd1edee$ee$ffd2�Z?d3d4deee$effd5�Z@d6e$de$fd7�ZAd8eee$ee$e$fdee$fd9�ZBdddee$e:ffd:�ZCdddee:fd;�ZDdddee:fd<�ZEd=�ZFd>�ZGe5e6ee7d?�@�ee7dA�@�e8e;e<e9dB�ZHee$e)fe"dC<dDdEiZIdFdGdHdIifiZJhdJ�ZKid6eFdK��dLeFdM��dNeFdO��dPeFdQ��dReGdSdT��dUeFdV��dWeGdXdY��dZeGd[d\��d]eFd^��d_eFd`��daeFdb��dceC�dEeD�ddeE�deeGdfdg��dheGdidj��ZLGdk�dle�ZMy)makTranslation layer between pyproject config and setuptools distribution and
metadata objects.

The distribution and metadata objects are modeled after (an old version of)
core metadata, therefore configs in the format specified for ``pyproject.toml``
need to be processed before being applied.

**PRIVATE MODULE**: API reserved for setuptools internal usage only.
�N)�Mapping)�Address)�partial�reduce)�chain)�MappingProxyType)�
TYPE_CHECKING�Any�Callable�Dict�List�Optional�Set�Tuple�Type�Union�cast�)�SetuptoolsWarning�SetuptoolsDeprecationWarning��metadata��Distribution�EMPTYr�dist�config�filename�returnc�z�|s|Stjj|�xsd}t|||�t	|||�tj
�}tj|�	|j�|j�tj|�|S#tj|�wxYw)z=Apply configuration dict read with :func:`read_configuration`�.)	�os�path�dirname�_apply_project_table�_apply_tool_table�getcwd�chdir�_finalize_requires�_finalize_license_files)rrr�root_dir�current_directorys     �H/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py�applyr..s�������w�w���x�(�/�C�H���v�x�0��d�F�H�-��	�	����H�H�X��$����!��$�$�&�
���"�#��K��	���"�#�s�, B#�#B:r+c�0�|jdi�j�}|syt||�t|�|j	�D]I\}}t|�}tj||�}t|�r||||��=t|||��Ky)N�project)	�get�copy�_handle_missing_dynamic�_unify_entry_points�items�json_compatible_key�PYPROJECT_CORRESPONDENCE�callable�_set_config)rrr+�
project_table�field�value�norm_key�corresps        r-r%r%Ds����J�J�y�"�-�2�2�4�M����D�-�0��
�&�%�+�+�-�.���u�&�u�-��*�.�.�x��B���G���D�%��*���g�u�-�
.�c�Z�|jdi�jdi�}|sy|j�D]f\}}t|�}|tvr+t|\}}d|�d|��}	t	j
d|	fi|��tj||�}t|||��ht|||�y)N�tool�
setuptoolszThe parameter `z` is deprecated, zDeprecated config)	r1r5r6�TOOL_TABLE_DEPRECATIONSr�emit�TOOL_TABLE_RENAMESr9�_copy_command_options)
rrr�
tool_tabler;r<r=�
suggestion�kwargs�msgs
          r-r&r&Us������F�B�'�+�+�L�"�=�J���"�(�(�*�+���u�&�u�-���.�.�!8��!B��J��#�H�:�->�z�l�K�C�(�-�-�#�S�
�,2�
�&�)�)�(�H�=���D�(�E�*�+��&�$��1r?r:c���t|jdg��}tj�D]1\}}||vr�||vr�||�}|s�tj||���3y)zJBe temporarily forgiving with ``dynamic`` fields not listed in ``dynamic``�dynamic)r;r<N)�setr1�_PREVIOUSLY_DEFINEDr5�_WouldIgnoreFieldrD)rr:rLr;�getterr<s      r-r3r3jsg���-�#�#�I�r�2�3�G�,�2�2�4�A�
��v���&�%�7�*:��4�L�E��!�&�&�U�%�&�@�	Ar?�keyc�B�|j�jdd�S)z1As defined in :pep:`566#json-compatible-metadata`�-�_)�lower�replace)rQs r-r6r6us���9�9�;���s�C�(�(r?r;r<c���t|jd|��d�}|r	||�yt|j|�s|tvrt	|j||�yt	|||�y)N�set_)�getattrr�hasattr�SETUPTOOLS_PATCHES�setattr)rr;r<�setters    r-r9r9zsV��
�T�]�]�d�5�'�N�D�
9�F�
��u�
�	�����	&�%�3E�*E���
�
�u�e�,���e�U�#r?z
text/markdownz
text/x-rstz
text/plain)z.mdz.rstz.txt�filec��tjj|j��\}}|sy|tvr	t|Sdjd�tj
�D��}d|�d�}td|�d|����)N�, c3�2K�|]\}}|�d|�d����y�w)z (�)N�)�.0�k�vs   r-�	<genexpr>z&_guess_content_type.<locals>.<genexpr>�s ����F�t�q�!���2�a�S��l�F���z3only the following file extensions are recognized: r!zUndefined content type for )r"r#�splitextrU�_CONTENT_TYPES�joinr5�
ValueError)r^rT�ext�validrJs     r-�_guess_content_typero�s}��
�W�W�
�
�d�j�j�l�
+�F�A�s���
�n���c�"�"��I�I�F�~�/C�/C�/E�F�F�E�?��w�a�
H�C�
�2�4�&��3�%�@�
A�Ar?�valc�~�ddlm}t|t�r |}|j	||�}t|�}n?|j
d�xsg}|j
d�xs|j	||�}|d}t|d|�|r
t|d|�|r*|jjtt|��yy)Nr��expandr^�textzcontent-type�long_description�long_description_content_type)�setuptools.configrs�
isinstance�str�
read_filesror1r9�_referenced_files�addr)rrpr+rsr^rt�ctypes       r-�_long_descriptionr~�s���(��#�s��!$��� � ��x�0��#�C�(���w�w�v��$�"���w�w�v��C�&�"3�"3�D�(�"C���N�#����(�$�/���D�9�5�A�����"�"�4��T�?�3�r?c��ddlm}d|vr@t|d|j|dg|��|jj|d�yt|d|d�y)Nrrrr^�licensert)rwrsr9rzr{r|)rrpr+rss    r-�_licenser��sS��(�
��}��D�)�V�%6�%6��F��}�h�%O�P����"�"�3�v�;�/��D�)�S��[�1r?�	_root_dir�kindc�X�g}g}|D]a}d|vr|j|d��d|vr|j|d��5t|d|d��}|jt|���c|rt||dj	|��|r t||�d�dj	|��yy)N�name�email)�display_name�	addr_specr`�_email)�appendrryr9rk)rrpr�r�r;�email_field�person�addrs        r-�_peopler��s����E��K��*��������v�g��/�
�F�
"��L�L����(���v��&��/�R�D����s�4�y�)�*�
��D�$��	�	�%� 0�1���D�T�F�&�/�4�9�9�[�+A�B�r?c��t|d|�y)N�project_urls)r9)rrpr�s   r-�
_project_urlsr��s����n�c�*r?c�6�ddlm}t|d||��y)Nr)�SpecifierSet�python_requires)�&setuptools.extern.packaging.specifiersr�r9)rrpr�r�s    r-�_python_requiresr��s��C���'��c�):�;r?c�f�t|dg�rd}tj|�t|d|�y)N�install_requireszA`install_requires` overwritten in `pyproject.toml` (dependencies))rYrrDr9)rrpr�rJs    r-�
_dependenciesr��s/���t�'��,�Q�����s�#���(�#�.r?c�@�t|di�}t|di|�|��y)N�extras_require)rYr9)rrpr��existings    r-�_optional_dependenciesr��s)���t�-�r�2�H���&�(;�8�(;�s�(;�<r?c��|}|jd|jdi��}ddd�}t|j��D]/\}}t|�}||vs�|s�|j|�|||<�1|rR|j�D���	�
cic].\}}||j�D�	�
cgc]\}	}
|	�d|
����c}
}	��0c}
}	}}|d<yycc}
}	wcc}
}	}}w)N�entry-points�entry_points�console_scripts�gui_scripts)�scriptsr�z = )�pop�listr5r6)r:r0r��renamingrQr<r=r��grouprerfs           r-r4r4�s����G��;�;�~�w�{�{�>�2�/N�O�L�,�]�K�H��7�=�=�?�+�@�
��U�&�s�+���x��E�/6�{�{�3�/?�L��(�+�,�@�
� ,�1�1�3�#
�#
���e�
�E�K�K�M�:�D�A�q�a�S��A�3�<�:�:�#
������:��#
s�C
�(C
�9C
�
C
�	pyprojectc	�&�|jdi�}|jdi�jdi�}t|�}|j}|jdi�jdi�j�D]�\}}t	|�}|j|t��}	|j
|i�|j�D]D\}
}t	|
�}
t|�|f|||
<|
|	vs�)tjd|�d|
�d���F��y)NrArB�cmdclass�	distutilszCommand option r!z is not defined)
r1�_valid_command_options�command_optionsr5r6rM�
setdefaultry�_logger�warning)r�rrrGr��
valid_options�cmd_opts�cmdrrnrQr<s            r-rFrF�s	�����v�r�*�J��~�~�l�B�/�3�3�J��C�H�*�8�4�M��#�#�H� �}�}�V�R�0�4�4�[�"�E�K�K�M�
N���V�!�#�&���!�!�#�s�u�-�����C��$� �,�,�.�	N�J�C��%�c�*�C�"%�h�-��!7�H�S�M�#���%�����/�#��a��u�O� L�M�
	N�	
Nr?r�c	�J�ddlm}ddlm}dt	|j
�i}|jd��}d�|D�}d	�|D�}t||j��D]=\}}|j|t��}	|	t	t|d
g��z}	|	||<�?|S)Nrrrr�globalzdistutils.commands)r�c3�2K�|]}t|����y�w�N)�_load_ep�rd�eps  r-rgz)_valid_command_options.<locals>.<genexpr>	s����H�B�8�B�<�H�rhc3�&K�|]	}|s�|���y�wr�rcr�s  r-rgz)_valid_command_options.<locals>.<genexpr>
s����;�2��B�;�����user_options)�
_importlibr�setuptools.distr�_normalise_cmd_options�global_optionsr�rr5r1rMrY)
r�rrr��unloaded_entry_points�loaded_entry_pointsr�r��	cmd_class�optss
          r-r�r�s���%�,��5�l�6Q�6Q�R�S�M�1�H�1�1�8L�M��H�2G�H��;�!4�;�L���h�n�n�.>�?�"���Y�� � ��c�e�,���,�W�Y��PR�-S�T�T��!�
�c��"�
�r?r�zmetadata.EntryPointc���	|j|j�fS#t$rI}|jj�d|j��}t
j
|�d|���Yd}~yd}~wwxYw)Nz" while trying to load entry-point z: )r��load�	Exception�	__class__�__name__r�r�)r��exrJs   r-r�r�se����������#�#�������&�&�'�'I�"�'�'��S�����3�%�r�"���'����s��	A0�?A+�+A0r�c�6�t|�jd�S)Nz_=)r6�strip)r�s r-�_normalise_cmd_option_keyr�s���t�$�*�*�4�0�0r?�descc�D�|D�chc]}t|d���c}Scc}w)Nr)r�)r��fancy_options  r-r�r�!s ��KO�P�<�%�l�1�o�6�P�P��Ps�c��d}t|dd�xsi}|j�D��cic]
\}}||vs�||��c}}Scc}}w)N)r�r�r�)rYr5)r�ignorer<rerfs     r-�_get_previous_entrypointsr�%sB��
/�F��D�.�$�/�5�2�E�"�[�[�]�>�T�Q��a�v�o�A�q�D�>�>��>s�=�=c�F�t|dd�xsi}|jd�S)Nr�r��rYr1�rr<s  r-�_get_previous_scriptsr�+s%���D�.�$�/�5�2�E��9�9�&�'�'r?c�F�t|dd�xsi}|jd�S)Nr�r�r�r�s  r-�_get_previous_gui_scriptsr�0s$���D�.�$�/�5�2�E��9�9�]�#�#r?c�D�ttd�|jd��S)a8
    Similar to ``operator.attrgetter`` but returns None if ``attr`` is not found
    >>> from types import SimpleNamespace
    >>> obj = SimpleNamespace(a=42, b=SimpleNamespace(c=13))
    >>> _attrgetter("a")(obj)
    42
    >>> _attrgetter("b.c")(obj)
    13
    >>> _attrgetter("d")(obj) is None
    True
    c��t||d�Sr�)rY)�acc�xs  r-�<lambda>z_attrgetter.<locals>.<lambda>As��'�#�q�$�*?�r?r!)rr�split)�attrs r-�_attrgetterr�5s���6�?����C��Q�Qr?c����fd�}|S)aL
    Return the first "truth-y" attribute or None
    >>> from types import SimpleNamespace
    >>> obj = SimpleNamespace(a=42, b=SimpleNamespace(c=13))
    >>> _some_attrgetter("d", "a", "b.c")(obj)
    42
    >>> _some_attrgetter("d", "e", "b.c", "a")(obj)
    13
    >>> _some_attrgetter("d", "e", "f")(obj) is None
    True
    c�B����fd��D�}td�|D�d�S)Nc3�@�K�|]}t|������y�wr�)r�)rd�i�objs  �r-rgz5_some_attrgetter.<locals>._acessor.<locals>.<genexpr>Rs�����5�!�.�+�a�.��%�5�s�c3�&K�|]	}|��|���y�wr�rc)rdr�s  r-rgz5_some_attrgetter.<locals>._acessor.<locals>.<genexpr>Ss����8�1�!�-�Q�8�r�)�next)r��valuesr5s` �r-�_acessorz"_some_attrgetter.<locals>._acessorQs ���5�u�5���8��8�$�?�?r?rc)r5r�s` r-�_some_attrgetterr�Ds���@��Or?�author)r��
maintainer)�readmer��authors�maintainers�urls�dependencies�optional_dependencies�requires_pythonr7�script_filesr��namespace_packagesz5consider using implicit namespaces instead (PEP 420).�due_date�i��
�>�license_filer��
license_files�provides_extrasrvz
metadata.name�versionzmetadata.version�descriptionzmetadata.descriptionr�zmetadata.long_descriptionzrequires-pythonr�zmetadata.python_requiresr�zmetadata.licenser�zmetadata.authorzmetadata.author_emailr�zmetadata.maintainerzmetadata.maintainer_email�keywordszmetadata.keywords�classifierszmetadata.classifiersr�zmetadata.project_urlsr�zgui-scriptsr��_orig_install_requiresr�zoptional-dependencies�_orig_extras_requirer�c��eZdZdZdZdZy)rOz?`{field}` defined outside of `pyproject.toml` would be ignored.a�
    ##########################################################################
    # configuration would be ignored/result in error due to `pyproject.toml` #
    ##########################################################################

    The following seems to be defined outside of `pyproject.toml`:

    `{field} = {value!r}`

    According to the spec (see the link below), however, setuptools CANNOT
    consider this value unless `{field}` is listed as `dynamic`.

    https://packaging.python.org/en/latest/specifications/declaring-project-metadata/

    For the time being, `setuptools` will still consider the given value (as a
    **transitional** measure), but please note that future releases of setuptools will
    follow strictly the standard.

    To prevent this warning, you can list `{field}` under `dynamic` or alternatively
    remove the `[project]` table from your file and rely entirely on other means of
    configuration.
    r�N)r��
__module__�__qualname__�_SUMMARY�_DETAILS�	_DUE_DATErcr?r-rOrO�s��P�H��H�,�Ir?rO)N�__doc__�loggingr"�collections.abcr�email.headerregistryr�	functoolsrr�	itertoolsr�typesr�typingr	r
rrr
rrrrrr�warningsrr�setuptools._importlibrr�rr�__annotations__�PathLikery�_Path�dict�
_DictOrStr�
_CorrespFn�_Correspondence�	getLoggerr�r�r.r%r&r3r6r9rjror~r�r�r�r�r�r�r�r4rFr�r�r�r�r�r�r�r�r�r7rErCr[rNrOrcr?r-�<module>rs�����	�#�(�%��"�����G��.�,�!�"�%��w�%�
�b�k�k�3����
�4��9�
�
�
�~�s�E�2�D�8�
9�
���Z��(��
�'�
�
�H�
%���������.��,.�~�.�t�.�u�.�"2�N�2�D�2�E�2�*A�.�A��A�)�S�)�S�)�
$�n�$�S�$��$������
B�c�
B�h�s�m�
B�4�N�4��4�u�4�*2�>�2��2��2�C�.�C�t�D�z�C�e�C�3�C�$+��+�T�+�<�>�<��<�/��/�T�/�=��=�d�=�


�t�

� N�T�N��N�5�N�&05��W���c�3�s�8�m�9L��"�&��8�E�#�t�)�4D�+E��1�C�1�C�1�Q��e�C��#���,C�&D�!E�Q�#�c�(�Q�?�N�?�t�C��I��?�(��(�8�D�>�(�
$�N�$�x��~�$�
R��* ���w�X�.��7��6��!�3�'�	8��$�s�O�3�4�	�%�i�0���?�	�^�$�������
�K��(��
�{�-�.���;�5�6��
�k�5�6�	�
�'�(9�;U�V���{�-�.�
��� 1�3J�K���#�$9�;V�W����/�0���;�5�6���K�/�0���-���$���,���$�%=�?Q�R�� �-�.D�FV�W�!��(�4�r?

Zerion Mini Shell 1.0