\bgRdZddlZddlZddlmZddlmZddlmZddl Z ddl Z n #e $rdZ YnwxYwej eZejGddejZdS)z"Tests for distutils.command.check.N)check)DistutilsSetupError)supportc:eZdZd dZdZdZdZdZdZdZ dS) TestCheckNc |i}|'tj}tj||jdi|\}}t |}||D]\}} t||| || |tj||S)N) osgetcwdchdir create_distrinitialize_optionsitemssetattrensure_finalizedrun) selfmetadatacwdoptionsold_dirpkg_infodistcmdnamevalues w/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/setuptools/_distutils/tests/test_check.py_runzTestCheck._runs  H ?ikkG HSMMM))55H55$Dkk    "==?? & &KD% Cu % % % %   ? HW    c|}|jdksJdddddd}||}|jdksJtjt5|jifiddidddn #1swxYwY||d}|jdksJdddddd d d }||}|jdksJdS) Nxxx)urlauthor author_emailrversionrstrictT)r'uÉricuSomething about esszet ßuMore things about esszet ß)r#r$r%rr& descriptionlong_description)r _warningspytestraisesr)rrrs rtest_check_metadatazTestCheck.test_check_metadata'sfiikk}!!!! !   ii!!}!!!!]. / / + + DIb * *XqM * * * + + + + + + + + + + + + + + +iii..}!!!!!!: A  ii!!}!!!!!!s%BB Bc dD]}dd|dzdddddi}||}|jdksJd ||dz<||}|jdksJd ||<||dz=||}|jdksJdS) N)r$ maintainerr#r"_emailzName rr&rzname@email.comName)rr*)rkindrrs rtest_check_author_maintainerz&TestCheck.test_check_author_maintainerQs, & &Dux!85 H ))H%%C=A%%%%)9HTH_ %))H%%C=A%%%%$HTN)))H%%C=A%%%%%+ & &rc*tjd|\}}t|}d}||}t |dksJd}||}t |dksJdS)Ndocutilstitle === testr!ztitle ===== testr)r+ importorskipr r_check_rst_datalen)rrrr broken_restmsgsrests rtest_check_documentzTestCheck.test_check_documentisJ'''))++$Dkk+ "";//4yyA~~~~&""4((4yyA~~~~~~rctjdd}||\}}t|}||jdksJddddd|d}tjt5|j|fiddddddn #1swxYwYd|d <||d d }|jd ksJd |d <||td d }|jd ksJdS)Nr5r6r)r!r")r#r$r%rr&r)r'restructuredtextutitle ===== test ßr)Trz)title ===== .. include:: includetest.rst)rr'rA) r+r7r rcheck_restructuredtextr*r,rrHERE)rr:rrrrs rtest_check_restructuredtextz%TestCheck.test_check_restructuredtextxsJ'''* ));)GG$Dkk ""$$$}!!!!! +   ]. / / H H DIh G GQA"F"F G G G H H H H H H H H H H H H H H H(E#$iiiEE}!!!!(V#$iid4$iOO}!!!!!!sB  B$'B$ctjdtjdtjdg}|D]}||\}}t |}|||}tt|dksJpt|dksJt|dddksJdS)Nr5z} Here's some code: .. code:: python def foo(): pass z Here's some code: .. code-block:: python def foo(): pass r?rr!z0Cannot analyze code. Pygments package not found.) r+r7textwrapdedentr rrBr8pygmentsr9str)rexample_rst_docsrest_with_coderrrr;s r1test_check_restructuredtext_with_syntax_highlightz;TestCheck.test_check_restructuredtext_with_syntax_highlights J''' O   O   ./  N!--~-NNNHd++C  & & ( ( (&&~66D#4yyA~~~~~4yyA~~~~Q OOIJJJJJ  rctjt5|jifidddddddS#1swxYwYdS)Nr!r@)r+r,rr)rs rtest_check_allzTestCheck.test_check_alls ]. / / B B DIb A Aqa@@ A A A B B B B B B B B B B B B B B B B B Bs 9==)NN) __name__ __module__ __qualname__rr-r3r=rDrLrNr rrrrs"("("("T&&&0   """>'''RBBBBBrr)__doc__r rFdistutils.command.checkrdistutils.errorsrdistutils.testsrr+rH ImportErrorpathdirname__file__rCcombine_markersTempdirManagerrr rrr\s(( ))))))000000###### OOOOHHH wx   mBmBmBmBmB&mBmBmBmBmBs '11