HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/distutils/command/__pycache__/check.cpython-310.opt-2.pyc
o

�i�@s�	ddlmZddlmZz$ddlmZddlmZddlm	Z	ddlm
Z
Gdd�de�Zd	ZWne
y<d
ZYnwGdd�de�Zd
S)�)�Command)�DistutilsSetupError)�Reporter)�Parser)�frontend)�nodesc@s"eZdZ		d	dd�Zdd�ZdS)
�SilentReporterNr�ascii�replacec
Cs"g|_t�||||||||�dS�N)�messagesr�__init__)�self�source�report_level�
halt_level�stream�debug�encoding�
error_handler�r�4/usr/local/lib/python3.10/distutils/command/check.pyr
s�zSilentReporter.__init__cOs8|j�||||f�tj|g|�R||j|d�|��S)N)�level�type)r�appendr�system_messageZlevels)rr�message�children�kwargsrrrrs���zSilentReporter.system_message)Nrr	r
)�__name__�
__module__�__qualname__r
rrrrrrs

�rTFc@sZeZdZ	dZgd�Zgd�Zdd�Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�ZdS)�checkz"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'cCs	d|_d|_d|_d|_dS)Nr�)r%r#r'�	_warnings�rrrr�initialize_options0s

zcheck.initialize_optionscCsdSrrr+rrr�finalize_options7szcheck.finalize_optionscCs	|jd7_t�||�S)Nr))r*r�warn)r�msgrrrr.:sz
check.warncCsR	|jr|��|jrtr|��n|jrtd��|jr%|jdkr'td��dSdS)NzThe docutils package is needed.rzPlease correct your package.)r#�check_metadatar%�HAS_DOCUTILS�check_restructuredtextr'rr*r+rrr�run?s
�z	check.runcCs�	|jj}g}dD]}t||�rt||�s|�|�q	|r'|�dd�|��|jr6|js4|�d�dSdS|j	rE|j
sC|�d�dSdS|�d�dS)N)�name�version�urlzmissing required meta-data: %sz, zNmissing meta-data: if 'author' supplied, 'author_email' should be supplied toozVmissing meta-data: if 'maintainer' supplied, 'maintainer_email' should be supplied toozkmissing meta-data: either (author and author_email) or (maintainer and maintainer_email) should be supplied)�distributionr#�hasattr�getattrrr.�joinZauthorZauthor_emailZ
maintainerZmaintainer_email)rr#�missing�attrrrrr0Os$

���zcheck.check_metadatacCsZ	|j��}|�|�D]}|d�d�}|dur|d}nd|d|f}|�|�qdS)N����liner)z%s (line %s))r7Zget_long_description�_check_rst_data�getr.)r�data�warningr>rrrr2ps

�zcheck.check_restructuredtextc
Cs�	|jjpd}t�}tjtfd���}d|_d|_d|_t	||j
|j|j|j
|j|jd�}tj|||d�}|�|d�z
|�||�W|jStye}z|j�dd|dif�WYd}~|jSd}~ww)	Nzsetup.py)�
components�)rrrr)rr=z!Could not finish the parsing: %s.�)r7Zscript_namerrZOptionParserZget_default_valuesZ	tab_widthZpep_referencesZrfc_referencesrrrZwarning_streamrZerror_encodingZerror_encoding_error_handlerr�documentZnote_source�parse�AttributeErrorrr)rrA�source_path�parserZsettingsZreporterrF�errrr?{s6�����zcheck._check_rst_dataN)
rr r!�descriptionZuser_optionsZboolean_optionsr,r-r.r3r0r2r?rrrrr"#s!r"N)Zdistutils.corerZdistutils.errorsrZdocutils.utilsrZdocutils.parsers.rstrZdocutilsrrrr1�	Exceptionr"rrrr�<module>s�