/opt/alt/python37/lib/python3.7/site-packages/nose/sphinx/__pycache__
NameSizeModeActions
pluginopts.cpython-37.opt-1.pyc51360644editdlrm
pluginopts.cpython-37.pyc51360644editdlrm
__init__.cpython-37.opt-1.pyc1560644editdlrm
__init__.cpython-37.pyc1560644editdlrm
Edit: /opt/alt/python37/lib/python3.7/site-packages/nose/sphinx/__pycache__/pluginopts.cpython-37.pyc (5136B)
B kž6Sã@sÒdZddlZy,ddlmZmZddlmZddlmZWne k rLYnXddl m Z ddl m Z ddlmZdd lmZdd lmZdd lmZd d „Zdd„ZGdd„deƒZGdd„deƒZdd„ZdS)aÊ Adds a sphinx directive that can be used to automatically document a plugin. this:: .. autoplugin :: nose.plugins.foo :plugin: Pluggy produces:: .. automodule :: nose.plugins.foo Options ------- .. cmdoption :: --foo=BAR, --fooble=BAR Do the foo thing to the new thing. Plugin ------ .. autoclass :: nose.plugins.foo.Pluggy :members: Source ------ .. include :: path/to/nose/plugins/foo.py :literal: éN)ÚnodesÚutils)ÚViewList)Ú directives)Ú resolve_name)ÚPlugin)ÚBuiltinPluginManager)ÚConfig)Ú TestProgram)Úisclassc  Cs*|d} t| ƒ} | dd¡} | r,t| | ƒ} nDxBt| ƒD]6} t| | ƒ} t| ƒr6t| tƒr6| tk r6d| | f} Pq6Wtƒ}| d| d¡| dd¡| dd¡| dd¡| dd¡| ƒ}t ƒ}|  |i¡xJ|D]B}| |  ¡d¡| d d¡| d |j d d¡| d d¡qÔW| d d¡| d d¡| dd¡| d| d¡| dd¡| dd¡| dd¡| dd¡| d d¡| dt   |jdtj | j dd¡¡¡d¡| dd¡| dd¡t ¡}|j|_|jj}|jj}g|j_d|j_|j|d|dd||j_||j_|jS)NrÚpluginz%s.%sz.. automodule :: %s z ÚÚOptionsz-------z z Ú rz------z.. autoclass :: %s z :members: z :show-inheritance: ZSourcez.. include :: %s Úsourcez.pycz.pyz :literal: é)Ú match_titles)rÚgetÚgetattrÚdirr Ú issubclassrrÚappendÚ OptBucketÚoptionsÚhelprZ relative_pathÚdocumentÚosÚpathÚabspathÚ__file__ÚreplacerÚsectionÚmemoÚ title_stylesÚ section_levelÚ nested_parseÚchildren)ÚdirnameÚ argumentsrÚcontentÚlinenoÚcontent_offsetÚ block_textÚstateÚ state_machineZmod_nameÚmodZ plug_nameÚobjÚentryÚrstZplugÚoptsÚoptÚnodeÚsurrounding_title_stylesÚsurrounding_section_level©r8úG/opt/alt/python37/lib/python3.7/site-packages/nose/sphinx/pluginopts.pyÚautoplugin_directive1sd                     r:c Cstttƒd} |  t ¡¡} tƒ} x"|  ¡ d¡D]} |   | d¡q2W|   dd¡|   dd¡|   dd¡xJ| D]B} |   |   ¡d¡|   dd¡|   d| j dd¡|   dd¡qpWt   ¡}|j|_|jj}|jj}g|j_d |j_|j| d |d d ||j_||j_|jS) zproduces rst from nose help)Z parserClassZpluginsrz rz-------r z z rr)r)r rrZ getParserr ZusagerÚ format_helpÚsplitrrrrr!rr"r#r$r%r&)r'r(rr)r*r+r,r-r.ZconfigÚparserr2Úliner4r5r6r7r8r8r9Úautohelp_directivets0      r?c@s.eZdZd dd„Zdd„Zdd„Zd d „ZdS) rNÚ nosetestscCsg|_||_||_dS)N)r3ÚdocÚprog)ÚselfrArBr8r8r9Ú__init__”szOptBucket.__init__cCs t|jƒS)N)Úiterr3)rCr8r8r9Ú__iter__™szOptBucket.__iter__cCs|j d|j¡ dd¡S)Nz%progz: z:: )rAr rB)rCr8r8r9r;œszOptBucket.format_helpcOs|j t||Ž¡dS)N)r3rÚOpt)rCÚargÚkwr8r8r9Ú add_optionŸszOptBucket.add_option)Nr@)Ú__name__Ú __module__Ú __qualname__rDrFr;rJr8r8r8r9r“s rc@s$eZdZdd„Zdd„Zdd„ZdS)rGcOsB||_| dd¡|_| dd¡|_| dd¡|_| dd¡|_dS)NÚactionÚdefaultÚmetavarr)r3ÚpoprNrOrPr)rCrHrIr8r8r9rD¤s z Opt.__init__cCsLg}x8|jD].}|}|jdkr0|d| |¡7}| |¡q Wdd |¡S)N)Ú store_trueZ store_falsez=%sz.. cmdoption :: z, )r3rNÚmetarÚjoin)rCZbufÚ optstringZdescr8r8r9r«s  z Opt.optionscCs |jpdS)NZDEFAULT)rP)rCrUr8r8r9rS´szOpt.metaN)rKrLrMrDrrSr8r8r8r9rG£s rGcCs*|jdtddtjd| dtdd¡dS)NZ autopluginr)rrr)r Zautohelpr)rrr)Z add_directiver:rZ unchangedr?)Zappr8r8r9Úsetup¹s rV)Ú__doc__rZdocutilsrrZdocutils.statemachinerZdocutils.parsers.rstrÚ ImportErrorZ nose.utilrZnose.plugins.baserZnose.plugins.managerrZ nose.configr Z nose.corer Úinspectr r:r?ÚobjectrrGrVr8r8r8r9Ú s$       C