HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /lib/python3/dist-packages/setuptools/config/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/setuptools/config/__pycache__/_apply_pyprojecttoml.cpython-311.pyc
�

���c5���UdZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
ddlmZddl
mZddlmZmZmZmZmZmZmZmZmZmZmZdd	lmZerdd
lmZddlm Z ei��Z!ee"d<eej#e$fZ%ee&e$fZ'ed
ee%gdfZ(ee$e(fZ)ej*e+��Z,dd
de&de%dd
fd�Z-dd
de&de%fd�Z.dd
de&de%fd�Z/dd
de&fd�Z0de$de$fd�Z1dd
de$defd�Z2dddd �Z3d!e$dee$fd"�Z4dd
d#e'de%fd$�Z5dd
d#e&de%fd%�Z6dd
d#ee&d&e%d'e$fd(�Z7dd
d#e&fd)�Z8dd
d#e&fd*�Z9dd
d#e:fd+�Z;dd
d#e&fd,�Z<de&fd-�Z=d.e&dd
de%fd/�Z>e!fd0edee$ee$ffd1�Z?d2d3deee$effd4�Z@d5e$de$fd6�ZAd7eee$ee$e$fdee$fd8�ZBd9�ZCd:�ZDe5e6e	e7d;�<��e	e7d=�<��e8e;e<e9d>�ZEee$e)fe"d?<d@dAiZFdBdCiZGhdD�ZHeCdE��eCdF��eCdG��eCdH��eDdIdJ��eCdK��eDdLdM��eDdNdO��eCdP��eCdQ��eCdR��eCdS��eDdTdU��eDdVdW��dX�ZIGdY�dZeJ��ZKdS)[akTranslation 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)�SetuptoolsDeprecationWarning��metadata��Distribution�EMPTYr�dist�config�filename�returnc��|s|Stj�|��pd}t|||��t	|||��tj��}tj|��	|���|���tj|��n#tj|��wxYw|S)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���x�(�(�/�C�H���v�x�0�0�0��d�F�H�-�-�-��	�����H�X����$����!�!�!��$�$�&�&�&�
��"�#�#�#�#����"�#�#�#�#�����Ks�0(B-�-Cr)c��|�di�����}|sdSt||��t|��|���D]]\}}t|��}t�||��}t|��r||||���Lt|||���^dS)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#:s����J�J�y�"�-�-�2�2�4�4�M������D�-�0�0�0��
�&�&�&�%�+�+�-�-�.�.���u�&�u�-�-��*�.�.�x��B�B���G���	.��G�D�%��*�*�*�*���g�u�-�-�-�-�
.�.�c��|�di���di��}|sdS|���D]x\}}t|��}|tvr/t|}d|�d|��}t	j|t��t�||��}t|||���yt|||��dS)N�tool�
setuptoolszThe parameter `z` is deprecated, )
r/r3r4�TOOL_TABLE_DEPRECATIONS�warnings�warnr�TOOL_TABLE_RENAMESr7�_copy_command_options)	rrr�
tool_tabler9r:r;�
suggestion�msgs	         r+r$r$Ks������F�B�'�'�+�+�L�"�=�=�J�����"�(�(�*�*�	+�	+���u�&�u�-�-���.�.�.�0��:�J�K�H�K�K�z�K�K�C��M�#�;�<�<�<�%�)�)�(�H�=�=���D�(�E�*�*�*�*��&�$��1�1�1�1�1r=r8c��t|�dg����}t���D]O\}}||vsF||vsB||��}|r5t�||��}t
j|t���PdS)zJBe temporarily forgiving with ``dynamic`` fields not listed in ``dynamic``�dynamicN)�setr/�_PREVIOUSLY_DEFINEDr3�_WouldIgnoreField�messagerBrC)rr8rJr9�getterr:rHs       r+r1r1^s����-�#�#�I�r�2�2�3�3�G�,�2�2�4�4�6�6�
��v���&�&�%�7�*:�*:��F�4�L�L�E��
6�'�/�/��u�=�=���
�c�#4�5�5�5��6�6r=�keyc�R�|����dd��S)z1As defined in :pep:`566#json-compatible-metadata`�-�_)�lower�replace)rPs r+r4r4js ���9�9�;�;���s�C�(�(�(r=r9r:c���t|jd|��d��}|r
||��dSt|j|��s	|tvrt	|j||��dSt	|||��dS)N�set_)�getattrr�hasattr�SETUPTOOLS_PATCHES�setattr)rr9r:�setters    r+r7r7os���
�T�]�N�5�N�N�D�
9�
9�F�
�$���u�
�
�
�
�
�	����	&�	&�$�%�3E�*E�*E���
�u�e�,�,�,�,�,���e�U�#�#�#�#�#r=z
text/markdownz
text/x-rstz
text/plain)z.mdz.rstz.txt�filec�@�tj�|�����\}}|sdS|tvr
t|Sd�d�t���D����}d|�d�}td|�d|�����)N�, c3�,K�|]\}}|�d|�d�V��dS)z (�)N���.0�k�vs   r+�	<genexpr>z&_guess_content_type.<locals>.<genexpr>�s2����F�F�t�q�!��l�l�a�l�l�l�F�F�F�F�F�Fr=z3only the following file extensions are recognized: rzUndefined content type for )r r!�splitextrT�_CONTENT_TYPES�joinr3�
ValueError)r]rS�ext�validrHs     r+�_guess_content_typern�s���
�W�
�
�d�j�j�l�l�
+�
+�F�A�s����t�
�n����c�"�"��I�I�F�F�~�/C�/C�/E�/E�F�F�F�F�F�E�
H��
H�
H�
H�C�
�@�4�@�@�3�@�@�
A�
A�Ar=�valc���ddlm}t|t��r(|}|�||��}t|��}nJ|�d��pg}|�d��p|�||��}|d}t|d|��|rt|d|��|r/|j�	tt|����dSdS)Nr��expandr]�textzcontent-type�long_description�long_description_content_type)�setuptools.configrr�
isinstance�str�
read_filesrnr/r7�_referenced_files�addr)rror)rrr]rs�ctypes       r+�_long_descriptionr}�s���(�(�(�(�(�(��#�s���$�!$��� � ��x�0�0��#�C�(�(����w�w�v���$�"���w�w�v���C�&�"3�"3�D�(�"C�"C���N�#����(�$�/�/�/��B��D�9�5�A�A�A��4���"�"�4��T�?�?�3�3�3�3�3�4�4r=c���ddlm}d|vrNt|d|�|dg|����|j�|d��dSt|d|d��dS)Nrrqr]�licensers)rvrrr7ryrzr{)rror)rrs    r+�_licenser��s���(�(�(�(�(�(�
��}�}��D�)�V�%6�%6��F��}�h�%O�%O�P�P�P���"�"�3�v�;�/�/�/�/�/��D�)�S��[�1�1�1�1�1r=�	_root_dir�kindc��g}g}|D]�}d|vr|�|d���"d|vr|�|d���Bt|d|d���}|�t|������|r$t||d�|����|r)t||�d�d�|����dSdS)N�name�email)�display_name�	addr_specr_�_email)�appendrrxr7rj)rror�r�r9�email_field�person�addrs        r+�_peopler��s���E��K��*�*���������v�g��/�/�/�/�
�F�
"�
"��L�L����(�(�(�(���v��&��/�R�R�R�D����s�4�y�y�)�)�)�)��2��D�$��	�	�%� 0� 0�1�1�1��C��D�T�/�/�/�4�9�9�[�+A�+A�B�B�B�B�B�C�Cr=c�(�t|d|��dS)N�project_urls)r7)rror�s   r+�
_project_urlsr��s����n�c�*�*�*�*�*r=c�F�ddlm}t|d||����dS)Nr)�SpecifierSet�python_requires)�&setuptools.extern.packaging.specifiersr�r7)rror�r�s    r+�_python_requiresr��s7��C�C�C�C�C�C���'���c�):�):�;�;�;�;�;r=c�v�t|dg��rd}tj|��t|d|��dS)N�install_requireszA`install_requires` overwritten in `pyproject.toml` (dependencies))rXrBrCr7)rror�rHs    r+�
_dependenciesr��sE���t�'��,�,��Q���
�c������(�#�.�.�.�.�.r=c�R�t|di��}t|di|�|���dS)N�extras_require)rXr7)rror��existings    r+�_optional_dependenciesr��s8���t�-�r�2�2�H���&�(;�8�(;�s�(;�<�<�<�<�<r=c�f�|}|�d|�di����}ddd�}t|�����D]8\}}t|��}||vr |r|�|��|||<�9|r#d�|���D��|d<dSdS)N�entry-points�entry_points�console_scripts�gui_scripts)�scriptsr�c�R�i|]$\}}|d�|���D����%S)c�"�g|]\}}|�d|����
S)z = rbrcs   r+�
<listcomp>z2_unify_entry_points.<locals>.<dictcomp>.<listcomp>�s&��:�:�:�D�A�q�a�<�<�A�<�<�:�:�:r=)r3)rdr��groups   r+�
<dictcomp>z'_unify_entry_points.<locals>.<dictcomp>�sE��#
�#
�#
���e�
�:�:�E�K�K�M�M�:�:�:�#
�#
�#
r=)�pop�listr3r4)r8r.r��renamingrPr:r;s       r+r2r2�s����G��;�;�~�w�{�{�>�2�/N�/N�O�O�L�,�]�K�K�H��7�=�=�?�?�+�+�@�@�
��U�&�s�+�+���x���E��/6�{�{�3�/?�/?�L��(�+�,���
�#
�#
�+�1�1�3�3�#
�#
�#
������
�
r=�	pyprojectc	��|�di��}|�di���di��}t|��}|j}|�di���di�����D]�\}}t	|��}|�|t����}	|�|i��|���D]S\}
}t	|
��}
t|��|f|||
<|
|	vr!t�	d|�d|
�d����T��dS)Nr?r@�cmdclass�	distutilszCommand option rz is not defined)
r/�_valid_command_options�command_optionsr3r4rK�
setdefaultrx�_logger�warning)r�rrrFr��
valid_options�cmd_opts�cmdrrmrPr:s            r+rErE�sQ�����v�r�*�*�J��~�~�l�B�/�/�3�3�J��C�C�H�*�8�4�4�M��#�H� �}�}�V�R�0�0�4�4�[�"�E�E�K�K�M�M�
N�
N���V�!�#�&�&���!�!�#�s�u�u�-�-�����C��$�$�$� �,�,�.�.�	N�	N�J�C��%�c�*�*�C�"%�h�-�-��!7�H�S�M�#���%������ L�#� L� L�� L� L� L�M�M�M��
	N�	
N�
Nr=r�c	�|�ddlm}ddlm}dt	|j��i}|jd���}d�|D��}d	�|D��}t||�����D]M\}}|�	|t����}	|	t	t|d
g����z}	|	||<�N|S)N�rrr�globalzdistutils.commands)r�c3�4K�|]}t|��V��dS�N)�_load_ep�rd�eps  r+rgz)_valid_command_options.<locals>.<genexpr>�s(����H�H�B�8�B�<�<�H�H�H�H�H�Hr=c3�K�|]}|�|V��	dSr�rbr�s  r+rgz)_valid_command_options.<locals>.<genexpr>�s'����;�;�2��;�B�;�;�;�;�;�;r=�user_options)�
_importlibr�setuptools.distr�_normalise_cmd_options�global_optionsr�rr3r/rKrX)
r�rrr��unloaded_entry_points�loaded_entry_pointsr�r��	cmd_class�optss
          r+r�r��s���%�%�%�%�%�%�,�,�,�,�,�,��5�l�6Q�R�R�S�M�1�H�1�8L�M�M�M��H�H�2G�H�H�H��;�;�!4�;�;�;�L���h�n�n�.>�.>�?�?�"�"���Y�� � ��c�e�e�,�,���,�W�Y��PR�-S�-S�T�T�T��!�
�c����r=r�zmetadata.EntryPointc���	|j|���fS#t$r@}|jj�d|j��}t
�|�d|����Yd}~dSd}~wwxYw)Nz" while trying to load entry-point z: )r��load�	Exception�	__class__�__name__r�r�)r��exrHs   r+r�r�s~����������#�#��������&�S�S�"�'�S�S�����3���"���'�'�'��t�t�t�t�t��������s��
A'�5A"�"A'r�c�F�t|���d��S)Nz_=)r4�strip)r�s r+�_normalise_cmd_option_keyr�s���t�$�$�*�*�4�0�0�0r=�descc��d�|D��S)Nc�8�h|]}t|d����S)r)r�)rd�fancy_options  r+�	<setcomp>z)_normalise_cmd_options.<locals>.<setcomp>s%��P�P�P�<�%�l�1�o�6�6�P�P�Pr=rb)r�s r+r�r�s��P�P�4�P�P�P�Pr=c�V�ttd�|�d����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�)rX)�acc�xs  r+�<lambda>z_attrgetter.<locals>.<lambda>&s��'�#�q�$�*?�*?�r=r)rr�split)�attrs r+�_attrgetterr�s$���6�?�?����C���Q�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�V����fd��D��}td�|D��d��S)Nc3�H�K�|]}t|�����V��dSr�)r�)rd�i�objs  �r+rgz5_some_attrgetter.<locals>._acessor.<locals>.<genexpr>6s3�����5�5�!�.�+�a�.�.��%�%�5�5�5�5�5�5r=c3�K�|]}|�|V��	dSr�rb)rdr�s  r+rgz5_some_attrgetter.<locals>._acessor.<locals>.<genexpr>7s"����8�8�1�!�-�Q�-�-�-�-�8�8r=)�next)r��valuesr3s` �r+�_acessorz"_some_attrgetter.<locals>._acessor5s<����5�5�5�5�u�5�5�5���8�8��8�8�8�$�?�?�?r=rb)r3r�s` r+�_some_attrgetterr�)s(���@�@�@�@�@��Or=�author)r��
maintainer)�readmer�authors�maintainers�urls�dependencies�optional_dependencies�requires_pythonr5�script_filesr��namespace_packagesz5consider using implicit namespaces instead (PEP 420).>�license_filer��
license_files�provides_extrasruz
metadata.namezmetadata.versionzmetadata.descriptionzmetadata.long_descriptionr�zmetadata.python_requireszmetadata.licensezmetadata.authorzmetadata.author_emailzmetadata.maintainerzmetadata.maintainer_emailzmetadata.keywordszmetadata.classifierszmetadata.project_urlsr��_orig_install_requiresr��_orig_extras_requirer�)r��version�descriptionr�zrequires-pythonrr�r��keywords�classifiersr�r�r�zoptional-dependenciesc�,�eZdZdZdZed���ZdS)rMzGInform users that ``pyproject.toml`` would overwrite previous metadata.a    {field!r} defined outside of `pyproject.toml` would be ignored.
    !!


    ##########################################################################
    # 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!r} 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!r} under `dynamic` or alternatively
    remove the `[project]` table from your file and rely entirely on other means of
    configuration.
    

!!
    c�X�ddlm}||j�||�����S)Nr)�cleandoc)r9r:)�inspectr��MESSAGE�format)�clsr9r:r�s    r+rNz_WouldIgnoreField.message}s9��$�$�$�$�$�$��x���*�*��e�*�D�D�E�E�Er=N)r��
__module__�__qualname__�__doc__r�classmethodrNrbr=r+rMrM`sA������Q�Q��G�4�F�F��[�F�F�Fr=rM)Lr�loggingr rB�collections.abcr�email.headerregistryr�	functoolsrr�	itertoolsr�typesr�typingr	r
rrr
rrrrrr�setuptools._deprecation_warningr�setuptools._importlibrr�rr�__annotations__�PathLikerx�_Path�dict�
_DictOrStr�
_CorrespFn�_Correspondence�	getLoggerr�r�r,r#r$r1r4r7rirnr}r�r�r�r�r�r�r�r2rEr�r�r�r�r�r�r5rDrArZrL�UserWarningrMrbr=r+�<module>rs����������	�	�	�	�����#�#�#�#�#�#�(�(�(�(�(�(�%�%�%�%�%�%�%�%�������"�"�"�"�"�"�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�'�I�H�H�H�H�H��-�.�.�.�.�.�.�,�,�,�,�,�,�!�!�"�%�%��w�%�%�%�
�b�k�3����
�4��9�
�
�
�~�s�E�2�D�8�
9�
���Z��(��
�'�
�H�
%�
%���������.�����,.�~�.�t�.�u�.�.�.�.�"2�N�2�D�2�E�2�2�2�2�&	6�.�	6��	6�	6�	6�	6�)�S�)�S�)�)�)�)�
$�n�$�S�$��$�$�$�$�������
B�c�
B�h�s�m�
B�
B�
B�
B�4�N�4��4�u�4�4�4�4�*2�>�2��2��2�2�2�2�C�.�C�t�D�z�C�e�C�3�C�C�C�C�$+��+�T�+�+�+�+�<�>�<��<�<�<�<�/��/�T�/�/�/�/�=��=�d�=�=�=�=�


�t�

�

�

�

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