HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/site-packages/setuptools/_distutils/command/__pycache__/check.cpython-311.pyc
�

�nc����dZddlZddlmZddlmZeje��5ddlZ	ddl
Z	ddlZ	ddlZ	Gd�de	j
j��Zddd��n#1swxYwYGd�de��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	        ��ED:\Python311\Lib\site-packages\setuptools/_distutils/command/check.pyr
zSilentReporter.__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     rrzSilentReporter.system_message sf���M� � �%��(�F�!C�D�D�D��>�0���@H���$�4�;�u�+=���LR���
r)Nrrr)�__name__�
__module__�__qualname__r
r�
__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
�r3s r�finalize_optionszcheck.finalize_optionsAs���rc�L�|xjdz
c_tj||��S)z*Counts the number of warnings that occurs.r1)r2r�warn)r�msgs  rr9z
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.r2)r�excs  r�runz	check.runIs����=�	"����!�!�!�� �	M��W�Y�Y�&�
M�8��/�/�1�1�1�1�� �8�8�8�-�c�#�h�h�7�7�7�����8������
M�)�*K�L�L�L��;�	F�4�>�A�-�	F�%�&D�E�E�E�	F�	F�	F�	Fs�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*�getattrrr9�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.����lineNr1z{} (line {}))rF�get_long_description�_check_rst_data�get�formatr9)r�data�warningrMs    rr>zcheck.check_restructuredtextns���� �5�5�7�7���+�+�D�1�1�	�	�G��2�;�?�?�6�*�*�D��
B�!�!�*���(�/�/���
�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)rrLz!Could not finish the parsing: %s.�)rF�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�AttributeErrorrr)rrR�source_path�parser�settings�reporterre�es        rrOzcheck._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_optionsr4r7r9rBr<r>rOr6rrr)r)'s�������;�;�6�K����L�A�@�@�O����
�
�
�'�'�'�
F�F�F�&M�M�M�$	�	�	�!�!�!�!�!rr))rn�
contextlib�distutils.corer�distutils.errorsr�suppress�ImportError�docutils.utilsr�docutils.parsers.rst�docutils.frontend�docutils.nodes�utils�Reporterrr)r6rr�<module>r}sF��������"�"�"�"�"�"�0�0�0�0�0�0��Z���%�%��������������������������0����
������������������:p!�p!�p!�p!�p!�G�p!�p!�p!�p!�p!s�)A�A�A