Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python38/lib64/python3.8/distutils/command/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python38/lib64/python3.8/distutils/command/__pycache__/check.cpython-38.opt-2.pyc
U

��,a��@s�ddlmZddlmZzTddlmZddlmZddlm	Z	ddlm
Z
ddlmZGdd	�d	e�Z
d
ZWnek
r�dZYnXGdd
�d
e�ZdS)�)�Command)�DistutilsSetupError)�Reporter)�Parser)�frontend)�nodes)�StringIOc@seZdZd	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�</opt/alt/python38/lib64/python3.8/distutils/command/check.pyrs�zSilentReporter.__init__cOs6|j�||||f�tj|f|�||j|d�|��S)N)�level�type)r
�appendr�system_messageZlevels)rr�messageZchildren�kwargsrrrrs���zSilentReporter.system_message)Nrr
r)�__name__�
__module__�__qualname__rrrrrrr	s�
r	TFc@s\eZdZdZdddgZdddgZdd	�Zd
d�Zdd
�Zdd�Z	dd�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 failsr#r%r'cCsd|_d|_d|_d|_dS)Nr�)r%r#r'�	_warnings�rrrr�initialize_options1szcheck.initialize_optionscCsdSrrr+rrr�finalize_options8szcheck.finalize_optionscCs|jd7_t�||�S)Nr))r*r�warn)r�msgrrrr.;sz
check.warncCsL|jr|��|jr0tr"|��n|jr0td��|jrH|jdkrHtd��dS)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||�r(t||�s|�|�q|rL|�dd�|��|jrd|js�|�d�n"|j	r||j
s�|�d�n
|�d�dS)N)�name�versionZurlzmissing required meta-data: %sz, zLmissing meta-data: if 'author' supplied, 'author_email' must be supplied toozTmissing meta-data: if 'maintainer' supplied, 'maintainer_email' must be supplied toozimissing meta-data: either (author and author_email) or (maintainer and maintainer_email) must be supplied)�distributionr#�hasattr�getattrrr.�joinZauthorZauthor_emailZ
maintainerZmaintainer_email)rr#Zmissing�attrrrrr0Pszcheck.check_metadatacCsX|j��}|�|�D]>}|d�d�}|dkr8|d}nd|d|f}|�|�qdS)N����liner)z%s (line %s))r6Zget_long_description�_check_rst_data�getr.)r�dataZwarningr<rrrr2ns

zcheck.check_restructuredtextc
Cs�|jjp
d}t�}tjtfd���}d|_d|_d|_t	||j
|j|j|j
|j|jd�}tj|||d�}|�|d�z|�||�Wn:tk
r�}z|j�dd|dif�W5d}~XYnX|jS)	Nzsetup.py)Z
components�)rrrr)rr;z!Could not finish the parsing: %s.�)r6Zscript_namerrZOptionParserZget_default_valuesZ	tab_widthZpep_referencesZrfc_referencesr	rrZwarning_streamrZerror_encodingZerror_encoding_error_handlerr�documentZnote_source�parse�AttributeErrorr
r)rr?�source_path�parserZsettingsZreporterrB�errrr=ys.��zcheck._check_rst_dataN)
rr r!ZdescriptionZuser_optionsZboolean_optionsr,r-r.r3r0r2r=rrrrr"$s�
r"N)Zdistutils.corerZdistutils.errorsrZdocutils.utilsrZdocutils.parsers.rstrZdocutilsrr�iorr	r1�	Exceptionr"rrrr�<module>s


ZeroDay Forums Mini