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/_distutils/command/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/setuptools/_distutils/command/__pycache__/check.cpython-311.pyc
�

���c����dZddlZddlmZddlmZeje��5ddlZ	ddl
Z	ddlZ	ddlZ	Gd�de	j
j��Zddd��n#1swxYwYGd�d	e��ZdS)
zCdistutils.command.check

Implements the Distutils 'check' command.
�N�)�Command)�DistutilsSetupErrorc�.��eZdZ				d�fd�	Zd�Z�xZS)�SilentReporterNr�ascii�replacec	�d��g|_t���|||||||��dS�N)�messages�super�__init__)	�self�source�report_level�
halt_level�stream�debug�encoding�
error_handler�	__class__s	        ��E/usr/lib/python3/dist-packages/setuptools/_distutils/command/check.pyrzSilentReporter.__init__sA����D�M��G�G�����j�&�%��=�
�
�
�
�
�c��|j�||||f��tjj|g|�R||j|d�|��S)N)�level�type)r�append�docutils�nodes�system_message�levels)rr�message�children�kwargss     rr zSilentReporter.system_message sf���M� � �%��(�F�!C�D�D�D��>�0���@H���$�4�;�u�+=���LR���
r)Nrrr	)�__name__�
__module__�__qualname__rr �
__classcell__)rs@rrrsZ����������#�
	�
	�
	�
	�
	�
	�	�	�	�	�	�	�	rrc�P�eZdZdZdZgd�Zgd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
dS)
�checkz1This command checks the meta-data of the package.z"perform some checks on the package))�metadata�mzVerify meta-data)�restructuredtext�rzEChecks if long string meta-data syntax are reStructuredText-compliant)�strict�sz(Will exit with an error if a check fails)r+r-r/c�>�d|_d|_d|_d|_dS)z Sets default values for options.r�N)r-r+r/�	_warnings�rs r�initialize_optionszcheck.initialize_options:s#�� !�����
��������rc��dSr�r4s r�finalize_optionszcheck.finalize_optionsAs���rc�L�|xjdz
c_tj||��S)z*Counts the number of warnings that occurs.r2)r3r�warn)r�msgs  rr:z
check.warnDs$�����!�����|�D�#�&�&�&rc�d�|jr|���|jrjdt��vrD	|���nD#t
$r!}t
t|�����d}~wwxYw|jrt
d���|jr|j	dkrt
d���dSdS)zRuns the command.rNzThe docutils package is needed.rzPlease correct your package.)
r+�check_metadatar-�globals�check_restructuredtext�	TypeErrorr�strr/r3)r�excs  r�runz	check.runIs����=�	"����!�!�!�� �	M��W�Y�Y�&�&�8��/�/�1�1�1�1�� �8�8�8�-�c�#�h�h�7�7�7�����8������
M�)�*K�L�L�L��;�	F�4�>�A�-�-�%�&D�E�E�E�	F�	F�-�-s�A	�	
A4�A/�/A4c���|jj}g}dD](}t||d��s|�|���)|r-|�dd�|��z��dSdS)z�Ensures that all required elements of meta-data are supplied.

        Required fields:
            name, version

        Warns if any are missing.
        )�name�versionNzmissing required meta-data: %sz, )�distributionr+�getattrrr:�join)rr+�missing�attrs    rr=zcheck.check_metadata\s����$�-����%�	%�	%�D��8�T�4�0�0�
%����t�$�$�$���	M��I�I�6����7�9K�9K�K�L�L�L�L�L�	M�	Mrc��|j���}|�|��D]Y}|d�d��}|�	|d}nd�|d|��}|�|���ZdS)z4Checks if the long string fields are reST-compliant.����lineNr2z{} (line {}))rG�get_long_description�_check_rst_data�get�formatr:)r�data�warningrNs    rr?zcheck.check_restructuredtextns���� �5�5�7�7���+�+�D�1�1�	�	�G��2�;�?�?�6�*�*�D��|�!�!�*���(�/�/���
�D�A�A���I�I�g�����
	�	rc	��|jjpd}tjj���}tj�tjjjf������}d|_	d|_
d|_t||j
|j|j|j|j|j���}tj�|||���}|�|d��	|�||��n8#t.$r+}|j�dd|zd	if��Yd}~nd}~wwxYw|jS)
z8Returns warnings when the provided data doesn't compile.zsetup.py)�
components�N)rrrr)rrMz!Could not finish the parsing: %s.�)rG�script_namer�parsers�rst�Parser�frontend�OptionParser�get_default_values�	tab_width�pep_references�rfc_referencesrrr�warning_streamr�error_encoding�error_encoding_error_handlerr�document�note_source�parse�AttributeErrorrr)rrS�source_path�parser�settings�reporterrf�es        rrPzcheck._check_rst_dataysz���'�3�A�z���!�%�,�,�.�.���$�1�1� �(�,�3�5�2�
�
�
�
�
�
�	����"&���"&���!���!����*��.��,�"�?�
�
�
���>�*�*�8�X�k�*�R�R�����[�"�-�-�-�	��L�L��x�(�(�(�(���	�	�	���$�$��8�1�<�b�"�E�
�
�
�
�
�
�
�
�����	����
� � s�;D�
E�!E�EN)r%r&r'�__doc__�description�user_options�boolean_optionsr5r8r:rCr=r?rPr7rrr*r*'s�������;�;�6�K����L�A�@�@�O����
�
�
�'�'�'�
F�F�F�&M�M�M�$	�	�	�!�!�!�!�!rr*)ro�
contextlib�corer�errorsr�suppress�ImportError�docutils.utilsr�docutils.parsers.rst�docutils.frontend�docutils.nodes�utils�Reporterrr*r7rr�<module>r~sF��������������(�(�(�(�(�(��Z���%�%��������������������������0����
������������������:p!�p!�p!�p!�p!�G�p!�p!�p!�p!�p!s�)A�A�A