
    vKg!                         S r SSK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   )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	           c/var/www/highfloat_scraper/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                   V    \ rS rSrSrSr/ SQr/ SQr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)r1   r3   r5   c                 <    SU l         SU l        SU l        SU l        g)z Sets default values for options.F   r   N)r3   r1   r5   	_warningsr   s    r   initialize_optionscheck.initialize_options;   s     %r   c                     g r
    r:   s    r   finalize_optionscheck.finalize_optionsB   s    r   c                 X    U =R                   S-  sl         [        R                  " X5      $ )z*Counts the number of warnings that occurs.r8   )r9   r   warn)r   msgs     r   rB   
check.warnE   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.)
r1   check_metadatar3   globalscheck_restructuredtext	TypeErrorr   strr5   r9   )r   excs     r   run	check.runJ   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, )distributionr1   getattrrB   formatjoin)r   r1   attrmissings       r   rF   check.check_metadata]   sn     $$-- 1
0TPT8UD0 	 
 II6==dii>PQR 	
s
   A3A3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.lineNr8   z (line ))rQ   get_long_description_check_rst_datagetrB   )r   datawarningrZ   s       r   rH   check.check_restructuredtextn   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R0                  $ ! [.         a8  nUR0                  R3                  SSU S	3S
0 45         SnAUR0                  $ 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   rY   zCould not finish the parsing: . )rQ   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AttributeErrorr   r   )r   r_   source_pathparsersettingsreporterrt   es           r   r]   check._check_rst_datay   sk    ''33Az!!%%,,.$$11 ((,,335 2 



 	 "&"&!!!**..,,"??
 >>**8k*R["-	LL(      	$$015	&      	s   'E 
F#FF)r9   r1   r3   r5   N)r(   r)   r*   r+   __doc__descriptionuser_optionsboolean_optionsr;   r?   rB   rL   rF   rH   r]   r,   r>   r   r   r/   r/   (   s>    ;6KL AO'
F&S"	!!r   r/   )r~   
contextlibcorer   errorsr   suppressImportErrordocutils.frontendr   docutils.nodesdocutils.parsers.rstdocutils.utilsutilsReporterr   r/   r>   r   r   <module>r      sa   
   (%00  &:r!G r!; &%s   0A))
A7