
    n&phR                         S r SSKrSSKJr  SSKJr  SSKJr  \R                  " \	5         SSK
rSSKrSSKrSSKr " S S\R                  R                   5      rSSS5         " S	 S
\5      rg! , (       d  f       N= f)zCdistutils.command.check

Implements the Distutils 'check' command.
    N)ClassVar   )Command)DistutilsSetupErrorc                   :   ^  \ rS rSr    SU 4S jjrS rSrU =r$ )SilentReporter   c           	      8   > / U l         [        TU ]	  XX4XVU5        g N)messagessuper__init__)	selfsourcereport_level
halt_levelstreamdebugencodingerror_handler	__class__s	           V/var/www/html/venv/lib/python3.13/site-packages/setuptools/_distutils/command/check.pyr   SilentReporter.__init__   s"     DMGj%=    c                     U R                   R                  XX445        [        R                  R                  " U/UQ7XR
                  U   S.UD6$ )N)leveltype)r   appenddocutilsnodessystem_messagelevels)r   r   messagechildrenkwargss        r   r!   SilentReporter.system_message"   sT    MM  %(!CD>>00"*/kk%6HLR r   )r   )NFasciireplace)__name__
__module____qualname____firstlineno__r   r!   __static_attributes____classcell__)r   s   @r   r   r      s      #		 	r   r   c                       \ rS rSr% SrSr/ SQr\\\	\
\
\
4         \S'   / SQr\\\
      \S'   S rS	 rS
 rS rS rS rS rSrg)check)   z1This command checks the meta-data of the package.z"perform some checks on the package))metadatamzVerify meta-data)restructuredtextrzEChecks if long string meta-data syntax are reStructuredText-compliant)strictsz(Will exit with an error if a check failsuser_options)r2   r4   r6   boolean_optionsc                 <    SU l         SU l        SU l        SU l        g)z Sets default values for options.F   r   N)r4   r2   r6   	_warningsr   s    r   initialize_optionscheck.initialize_options9   s     %r   c                     g r    r=   s    r   finalize_optionscheck.finalize_options@   s    r   c                 X    U =R                   S-  sl         [        R                  " X5      $ )z*Counts the number of warnings that occurs.r;   )r<   r   warn)r   msgs     r   rE   
check.warnC   s    !||D&&r   c                    U R                   (       a  U R                  5         U R                  (       a<  S[        5       ;   a   U R	                  5         OU R                  (       a  [        S5      eU R                  (       a  U R                  S:  a  [        S5      egg! [
         a  n[        [        U5      5      eSnAff = f)zRuns the command.r   NzThe docutils package is needed.r   zPlease correct your package.)
r2   check_metadatar4   globalscheck_restructuredtext	TypeErrorr   strr6   r<   )r   excs     r   run	check.runH   s     ==!  WY&8//1 )*KLL ;;4>>A-%&DEE .; ! 8-c#h778s   B 
C 'B;;C c                     U R                   R                  nS Vs/ s H  n[        XS5      (       a  M  UPM     nnU(       a0  U R                  SR	                  SR                  U5      5      5        ggs  snf )z}Ensures that all required elements of meta-data are supplied.

Required fields:
    name, version

Warns if any are missing.
)nameversionNzmissing required meta-data: {}z, )distributionr2   getattrrE   formatjoin)r   r2   attrmissings       r   rI   check.check_metadata[   sn     $$-- 1
0TPT8UD0 	 
 II6==dii>PQR 	
s
   A4A4c                     U R                   R                  5       nU R                  U5       H<  nUS   R                  S5      nUc  US   nOUS    SU S3nU R	                  U5        M>     g)z4Checks if the long string fields are reST-compliant.lineNr;   z (line ))rT   get_long_description_check_rst_datagetrE   )r   datawarningr]   s       r   rK   check.check_restructuredtextl   sm      557++D1G2;??6*D|!!*$QZLvQ7IIg 2r   c           
         U R                   R                  =(       d    Sn[        R                  R                  R                  5       n[        R                  R                  [        R                  R                  R
                  4S9R                  5       nSUl	        SUl
        SUl        [        UUR                  UR                  UR                  UR                   UR"                  UR$                  S9n[        R&                  R)                  XEUS9nUR+                  US5         UR-                  X5        UR2                  $ ! [.        [0        4 a8  nUR2                  R5                  SSU S	3S
0 45         SnAUR2                  $ SnAff = f)z8Returns warnings when the provided data doesn't compile.zsetup.py)
components   N)r   r   r   r   )r   r\   zCould not finish the parsing: . )rT   script_namer   parsersrstParserfrontendOptionParserget_default_values	tab_widthpep_referencesrfc_referencesr   r   r   warning_streamr   error_encodingerror_encoding_error_handlerr    documentnote_sourceparseAttributeErrorrL   r   r   )r   rb   source_pathparsersettingsreporterrw   es           r   r`   check._check_rst_dataw   sp    ''33Az!!%%,,.$$11 ((,,335 2 



 	 "&"&!!!**..,,"??
 >>**8k*R["-	LL(     	* 	$$015	&      	s   'E F#FF)r<   r2   r4   r6   N)r)   r*   r+   r,   __doc__descriptionr8   r   listtuplerM   __annotations__r9   r>   rB   rE   rO   rI   rK   r`   r-   rA   r   r   r0   r0   )   sh    ;6K:L(4c3m 456  ,VOXd3i(U'
F&S"	!!r   r0   )r   
contextlibtypingr   corer   errorsr   suppressImportErrordocutils.frontendr   docutils.nodesdocutils.parsers.rstdocutils.utilsutilsReporterr   r0   rA   r   r   <module>r      sd   
    (%00  &:o!G o!; &%s   0A//
A=