PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/hc_python/lib/python3.12/site-packages/nose/sphinx/__pycache__/
Upload File :
Current File : //opt/hc_python/lib/python3.12/site-packages/nose/sphinx/__pycache__/pluginopts.cpython-312.pyc

�

���g����dZddlZ	ddlmZmZddlmZddlmZddl
mZddlm
Z
ddlmZdd	lmZdd
lmZddlmZd�Zd
�ZGd�de�ZGd�de�Zd�Zy#e	$rY�KwxYw)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	��|d}	t|	�}
|jdd�}|r
t|
|�}nJt|
�D]<}
t|
|
�}t	|�s�t|t�s�,|tus�5|	�d|
��}nt�}|jd|	zd�|jdd�|jdd�|jdd�|jdd��}t�}|j|i�|D]h}|j|j�d�|jd	d�|jd
|jzdzd�|jdd��j|jdd�|jd
d�|jdd�|jd|zd�|jdd�|jdd�|jdd�|jdd�|jd
d�|jdtj|jdtj j#|
j$j'dd���zd�|jdd�|jdd�t)j*�}|j|_|j,j.}|j,j0}g|j,_d|j,_|j3|d|d��||j,_||j,_|j4S)Nr�plugin�.z.. automodule :: %s
�	<autodoc>��Options�-------�   
�   �
rz------z.. autoclass :: %s
z
   :members:
z   :show-inheritance:
�Sourcez.. include :: %s
�sourcez.pycz.pyz
   :literal:
���match_titles)r�get�getattr�dirr�
issubclassrr�append�	OptBucket�options�helpr�
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_machine�mod_name�mod�	plug_name�obj�entry�rst�plug�opts�opt�node�surrounding_title_styles�surrounding_section_levels                     �E/opt/hc_python/lib/python3.12/site-packages/nose/sphinx/pluginopts.py�autoplugin_directiverF1s�����|�H�
�x�
 �C����H�d�+�I���c�9�%����X�E��#�u�%�C��s�|�
�3�� 7�C�v�<M�'/��7�	��	��*�C��J�J�&��1�;�?��J�J�r�;���J�J�y�+�&��J�J�y�+�&��J�J�r�;���5�D��;�D��L�L��r�����
�
�3�;�;�=�+�.��
�
�7�K�(��
�
�5�3�8�8�#�d�*�K�8��
�
�4��%�	��J�J�x��%��J�J�x��%��J�J�r�;���J�J�%�	�1�;�?��J�J���-��J�J�(�+�6��J�J�r�;���J�J�x��%��J�J�x��%��J�J� �5�#6�#6��&�&�x�0��������� 4� 4�V�U� C�D�$F�
F�
�	�
�J�J���-��J�J�r�;���=�=�?�D��N�N�D�M�$�z�z�6�6�� %�
�
� 8� 8�� �E�J�J�� �E�J�J��	���s�A�t�!��4�6�E�J�J��8�E�J�J���=�=��c	��ttt���}	|	jt	j
��}
t
�}|
j�jd�D]}|j|d��|jdd�|jdd�|jdd�|
D]h}
|j|
j�d�|jdd�|jd|
jzdzd�|jdd��jtj�}|j|_|jj }|jj"}g|j_d	|j_|j%|d	|d
��||j_||j_|j&S)zproduces rst from nose help)�parserClass�pluginsrrrrrrrrrr)r
r!r	�	getParserr�usager�format_help�splitr r"r#rr+r%r,r-r.r/r0)r1r2r"r3r4r5r6r7r8�config�parserr>�linerArBrCrDs                 rE�autohelp_directiverRtsm���	�0�2�4�F�
�
�
�k�/�/�1�
2�F�
�*�C��"�"�$�*�*�4�0���
�
�4��%�1��J�J�y�+�&��J�J�y�+�&��J�J�r�;�����
�
�3�;�;�=�+�.��
�
�7�K�(��
�
�5�3�8�8�#�d�*�K�8��
�
�4��%�	�
�=�=�?�D��N�N�D�M�$�z�z�6�6�� %�
�
� 8� 8�� �E�J�J�� �E�J�J��	���s�A�t�!��4�6�E�J�J��8�E�J�J���=�=�rGc�&�eZdZdd�Zd�Zd�Zd�Zy)r!Nc�.�g|_||_||_y�N)r@�doc�prog)�selfrVrWs   rE�__init__zOptBucket.__init__�s����	������	rGc�,�t|j�SrU)�iterr@�rXs rE�__iter__zOptBucket.__iter__�s���D�I�I��rGc�n�|jjd|j�jdd�S)Nz%progz:
z::
)rVr*rWr\s rErMzOptBucket.format_help�s*���x�x�������3�;�;�E�6�J�JrGc�L�|jjt|i|���yrU)r@r �Opt�rX�arg�kws   rE�
add_optionzOptBucket.add_option�s���	�	����c��R��)rG)N�	nosetests)�__name__�
__module__�__qualname__rYr]rMrd�rGrEr!r!�s���
�K�*rGr!c��eZdZd�Zd�Zd�Zy)r`c���||_|jdd�|_|jdd�|_|jdd�|_|jdd�|_y)N�action�default�metavarr#)r@�poprlrmrnr#ras   rErYzOpt.__init__�sQ����	��f�f�X�t�,����v�v�i��.����v�v�i��.����F�F�6�4�(��	rGc��g}|jD]:}|}|jdvr|d|j|�zz
}|j|��<ddj	|�zS)N)�
store_true�store_falsez=%sz.. cmdoption :: z, )r@rl�metar �join)rX�buf�	optstring�descs    rEr"zOpt.options�s`�������I��D��{�{�"?�?����	�	�)� 4�4�4���J�J�t��	#�
"�D�I�I�c�N�2�2rGc�"�|jxsdS)N�DEFAULT)rn)rXrvs  rErszOpt.meta�s���|�|�(�y�(rGN)rfrgrhrYr"rsrirGrEr`r`�s��)�3�)rGr`c��|jdtddtj��|jdtdd�y)N�
autopluginr)rrr)r�autohelpr)rrr)�
add_directiverFr�	unchangedrR)�apps rE�setupr��s>�����l�*�A�y�'�1�1��3����j�"4�a��CrG)�__doc__r&�docutilsrr�docutils.statemachiner�docutils.parsers.rstr�ImportError�	nose.utilr�nose.plugins.baser�nose.plugins.managerr	�nose.configr
�	nose.corer�inspectrrFrR�objectr!r`r�rirGrE�<module>r�sq���@
�	�%�.�/�#�$�5��!��@�F�>
*��
*� )�&�)�,D��g�	��	�s�A � A(�'A(

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic