HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1784574/root/usr/lib/python3/dist-packages/pbr/__pycache__/
Upload File :
Current File : //proc/1784574/root/usr/lib/python3/dist-packages/pbr/__pycache__/builddoc.cpython-311.pyc
�

㦧b�.��X�ddlmZddlZddlZddlZ	ddlZn#e$rddlZYnwxYw	ddlZ	ddl	m
Z
dZn#e$rddlm
Z
dZYnwxYwddlmZddlm
Z
n!#e$rZeee�����dZ[wwxYwddlmZdd	lmZdd
lmZgd�Zdd
gZdZd�ZGd�de
j��ZdS)�)�logN)�apidocFT)�application)�
setup_command)�git)�options)�version)�autodoc_tree_index_modules�autodoc_index_modules�autodoc_tree_excludes�autodoc_exclude_modules�AUTODOC_TREE_INDEX_MODULES�AUTODOC_INDEX_MODULESzi%(heading)s
%(underline)s

.. automodule:: %(module)s
  :members:
  :undoc-members:
  :show-inheritance:
c��|D]C}|�d��r,|dkr&d||�dd���d|dd���<�DdS)Nz.pyz__init__.pyT�/�.���)�endswith�replace)�arg�dirname�files�filenames    �./usr/lib/python3/dist-packages/pbr/builddoc.py�
_find_modulesrIsq���2�2�����U�#�#�	2��M�(A�(A�-1�
�7�?�?�3��4�4�4�4�#�C�R�C�=�=�*�
+��2�2�c�H�eZdZdgZdZdZd�Zdd�Zd�Zd�Z	d	�Z
d
�Zd�ZdS)
�
LocalBuildDoc�html�build_sphinxFc�r�|j�d��}|j�d��}|�dd��\}}d|vr-tj�|dd|��}nd|z}tj�|��stj|��|S)Nr �pbr�api_doc_dir)N�api�
source_dir�zdoc/source/)�distribution�get_option_dict�get�os�path�join�exists�makedirs)�self�option_dict�pbr_option_dict�_r#r%s      r�_get_source_dirzLocalBuildDoc._get_source_dirVs����'�7�7��G�G���+�;�;�E�B�B��(�,�,�]�M�J�J���;��;�&�&�����k�,�&?��&B�&1�3�3�J�J�'��4�J��w�~�~�j�)�)�	$��K�
�#�#�#��rNc�����tjdtj�tj��z��i}|���}|jjD]2}d|vr,tj	|��D]\}}}t|||����3�fd��t�fd�|���D����}tj�
|d��}	t|	d��5}
|
�d��|D]�}tj�
|d|z��}d	|z}
d
t!|
��z}t#||
|���}tjd|z��t|d��5}|�t$|z��ddd��n#1swxYwY|
�d
|z����	ddd��dS#1swxYwYdS)Nz[pbr] Autodocumenting from %src�>���t�fd��D����S)Nc3�B�K�|]}tj�|��V��dS�N)�fnmatch)�.0�pat�modules  �r�	<genexpr>zDLocalBuildDoc.generate_autoindex.<locals>.include.<locals>.<genexpr>nsC�����8�8�"�#�?�6�3�7�7�8�8�8�8�8�8r)�any)r;�excluded_moduless`�r�includez1LocalBuildDoc.generate_autoindex.<locals>.includemsA�����8�8�8�8�&6�8�8�8�8�8�8�
8rc3�2�K�|]}�|���
|V��dSr7�)r9�modr?s  �rr<z3LocalBuildDoc.generate_autoindex.<locals>.<genexpr>qs0�����K�K�S�g�g�c�l�l�K�S�K�K�K�K�K�Krz
autoindex.rst�wz.. toctree::
   :maxdepth: 1

z%s.rstzThe :mod:`%s` Module�=)r;�heading�	underlinez[pbr] Generating %sz
   %s.rst
)r�infor*r+�abspath�curdirr3r'�packages�walkr�sorted�keysr,�open�write�len�dict�
_rst_template)r/r>�modulesr%�pkg�dirpath�dirnamesr�module_list�autoindex_filename�	autoindexr;�output_filenamerErF�values�output_filer?s `               @r�generate_autoindexz LocalBuildDoc.generate_autoindexcs�������0��7�?�?�2�9�-�-�.�	/�	/�	/����)�)�+�+�
��$�-�	;�	;�C��#�~�~�02�����;�;�,�G�X�u�!�'�7�E�:�:�:�:��	8�	8�	8�	8�	8��K�K�K�K�G�L�L�N�N�K�K�K�K�K���W�\�\�*�o�F�F��
�$�c�
*�
*�	8�i��O�O��
�
�
�&�
8�
8��"$�'�,�,�z�/7�&�/@�#B�#B��0�6�9���#�g�,�,�.�	��V�W�(1�3�3�3����.�*�+�,�,�,��/�3�/�/�>�;��%�%�m�f�&<�=�=�=�>�>�>�>�>�>�>�>�>�>�>����>�>�>�>����
�� 6�7�7�7�7�
8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8�	8����	8�	8�	8�	8�	8�	8s7�8B
G!�F/�#G!�/F3�3G!�6F3�7G!�!G%�(G%c��|���}ddd|dg}tr|�dd��tj||jz��dS)Nz-H�Modulesz-orrr)r3�apidoc_use_padding�insertr�mainr)r/r%�cmds   r�_sphinx_treezLocalBuildDoc._sphinx_tree�s]���)�)�+�+�
��Y��j�#�6���	$��J�J�q�(�#�#�#���C�$�4�4�5�5�5�5�5rc���|jstj��}ntj}i}|jr
|j|d<|jr
|j|d<|jr
|j|d<|jr
|j|d<|j	rgd�|d<tj|j|j
|j|j|j|||j|j��	�	}d|_		|�|j�	��n�#t*$r�}d
dlm}t1||j��r}tj�d��tj�|jd
�d
d����tj�d��n�Yd}~nd}~wwxYw|jrJ|j j!|jj"z}|j�#d��}tIj%||��dSdS)N�projectr	�release�today)zapp.add_directivezapp.add_rolezapp.add_generic_rolezapp.add_nodezimage.nonlocal_uri�suppress_warnings)�freshenv�warningiserrorT)�	force_allr)�utilszreST markup error:
�ascii�backslashreplace�
�index)&�verbose�	cStringIO�StringIO�sys�stdoutrfr	rgrh�sphinx_initializedr�Sphinxr%�
config_dir�builder_target_dir�doctree_dir�builder�	fresh_env�warning_is_error�build�	all_files�	Exception�docutilsrm�
isinstance�
SystemMessage�stderrO�stderr�args�encode�
link_index�config�
master_doc�
out_suffix�get_outfilenamer*�symlink)r/�
status_stream�
confoverrides�app�errrm�src�dsts        r�_sphinx_runzLocalBuildDoc._sphinx_run�s(���|�	'�%�.�0�0�M�M��J�M��
��<�	4�'+�|�M�)�$��<�	4�'+�|�M�)�$��<�	4�'+�|�M�)�$��:�	0�%)�Z�M�'�"��"�	�2�2�2�M�-�.�
� ��O�T�_��#�T�%5��L�-���^�D�4I�	K�K�K��
#'���
	��I�I���I�/�/�/�/���	�	�	�&�&�&�&�&�&��#�u�2�3�3�
��	��� 6�7�7�7��
� � ���!��!3�!3�G�4F�"H�"H�I�I�I��
� � ��&�&�&�&��'�&�&�&�&�����
	�����?�	!��*�'�#�+�*@�@�C��+�-�-�g�6�6�C��J�s�C� � � � � �	!�	!s�C � 
F
�*BF�F
c	��|j�d��}t|������t
��}t
td�t����}|s|r7d}|r|dt
|��zz
}|r|d|zz
}tj
|��tj��r*tj
|���tj|���tj|dd��}tj|d	d
��}t#jd��sh|r|���|rP|�t|�ddd
g��d�������|���t0j�t6j��t1jdd��k}|stj
d��|jdgkr"tj
d��|r|j|_|rt>j �!|��S|jD]1}||_|���|�"���2dS)Nr"c�*�tj|��Sr7)r*�getenv)�xs r�<lambda>z#LocalBuildDoc.run.<locals>.<lambda>�s����1���rz�The autodoc and autodoc_tree features are deprecated in 4.2 and will be removed in a future release. You should use the sphinxcontrib-apidoc Sphinx extension instead. Refer to the pbr documentation for more information.z Deprecated options: %sz% Deprecated environment variables: %s)r0r
rrr�SPHINX_DEBUGr
�r&�zQ[pbr] Support for Sphinx < 1.6 will be dropped in pbr 4.0. Upgrade to Sphinx 1.6+ra'[pbr] Sphinx 1.6 added native support for specifying multiple builders in the '[sphinx_build] builder' configuration option, found in 'setup.cfg'. As a result, the '[sphinx_build] builders' option has been deprecated and will be removed in pbr 4.0. Migrate to the 'builder' configuration option.)#r'r(�setrM�intersection�_deprecated_options�list�filter�_deprecated_envsr�warnr�_git_is_installed�write_git_changelog�generate_authorsr�get_boolean_optionr*r�rdr]r)�split�finalize_optionsr	�SemanticVersion�from_pip_string�sphinx�__version__�buildersr|r�BuildDoc�runr�)	r/r0�	warn_opts�warn_env�msg�
tree_index�
auto_index�is_multibuilder_sphinxr|s	         rr�zLocalBuildDoc.run�s����'�7�7��>�>����(�(�*�*�+�+�8�8�9L�M�M�	���5�5�7G�H�H�I�I���
	��
	�J�C��
C��0�4�	�?�?�B�B���
J��>��I�I���H�S�M�M�M�� �"�"�	:��#��<�<�<�<�� �[�9�9�9�9��/��0L�0L�N�N�
��/��0G�0G�I�I�
��y��(�(�		1��
$��!�!�#�#�#��
1��'�'�����1��r�
�$�$�$%�'�',�u�w�w�0�0�1�1�1�
	
������!(�!8�!H�!H���" �" �#*�#:�1�a�#@�#@�"A��&�	8��H�7�
8�
8�
8��=�V�H�$�$��H�>�
?�
?�
?�&�
-�#�}���!�	4� �)�-�-�d�3�3�3��}�	�	�G�"�D�L��!�!�#�#�#��������	�	rc�T�tj�|��dg|_dS)Nzsetup.py)rr��initialize_optionsr)r/s rr�z LocalBuildDoc.initialize_optionss+����1�1�$�7�7�7�'1�\��"�"�"rc���ddlm}tj�|��|j�d��}d|�dgg��dvr|dd|_t|jt��s&|jr|j�d��|_|j���|_
|j���|_|j���|_d}|j�d	��}||vr&|�||d��|_t'|d
��s	d|_dSdS)Nr)�utilr zcommand liner|r&�,rr"r~F)r"r�rr�r�r'r(r)r�r�r�r��get_namerf�get_versionr	rg�split_multiliner�hasattrr~)r/r�r0�opts    rr�zLocalBuildDoc.finalize_optionssf��������	��/�/��5�5�5��'�7�7��G�G���[�_�_�Y���=�=�a�@�@�@�'�	�2�1�5�D�M��$�-��.�.�	5�4�=�	5� �M�/�/��4�4�D�M��(�1�1�3�3����(�4�4�6�6����(�4�4�6�6���&���'�7�7��>�>���+���)-�)=�)=��C� ��#�*%�*%�D�&��t�/�0�0�	*�$)�D�!�!�!�	*�	*rr7)
�__name__�
__module__�__qualname__r��command_namerwr3r]rdr�r�r�r�rArrrrPs��������x�H�!�L������!8�!8�!8�!8�F6�6�6�*!�*!�*!�XE�E�E�N2�2�2�*�*�*�*�*rr)�	distutilsrr8r*rurs�ImportError�ior��
sphinx.extrr`rrr��e�strr"rrr	r�r�rRrr�rrArr�<module>r�s���"����������	�	�	�	�
�
�
�
������������������������M�M�M�"�%�%�%�%�%�%�"�����"�"�"�!�!�!�!�!�!�!����"����#�"�"�"�"�"�$�$�$�$�$�$�$�������+�c�c�!�f�f�
�
����������������������������K�K�K��0�2I�J���
�2�2�2�T*�T*�T*�T*�T*�M�*�T*�T*�T*�T*�T*sC��	%�%�A�7�A�
A�A�A�A�A5�A0�0A5