a
    ÇZEg�  ã                   @  sö   d dl mZ d dlmZ zHd dlmZ zd dlmZmZm	Z	 W n e
y\   e Z Z	ZY n0 W n* e
yŠ   d dlmZ d dlmZ	 Y n0 dd„ ZG dd	„ d	ejeƒZG d
d„ dejeƒZG dd„ dejeƒZG dd„ dejeƒZeeeedœZdS )é    )Úannotations)Úfrontend)ÚCommand)Ú	BaseErrorÚOptionErrorÚ
SetupError)ÚDistutilsSetupErrorc                 C  s"   |dksJ ‚t |tƒstdƒ‚dS )ag  Validate the ``message_extractors`` keyword argument to ``setup()``.

    :param dist: the distutils/setuptools ``Distribution`` object
    :param name: the name of the keyword argument (should always be
                 "message_extractors")
    :param value: the value of the keyword argument
    :raise `DistutilsSetupError`: if the value is not valid
    Zmessage_extractorszDthe value of the "message_extractors" parameter must be a dictionaryN)Ú
isinstanceÚdictr   )ÚdistÚnameÚvalue© r   ú[/var/www/sistema_ama/venv/lib/python3.9/site-packages/babel/messages/setuptools_frontend.pyÚcheck_message_extractors   s
    	
ÿr   c                   @  s   e Zd ZdZdS )Úcompile_catalogaæ  Catalog compilation command for use in ``setup.py`` scripts.

    If correctly installed, this command is available to Setuptools-using
    setup scripts automatically. For projects using plain old ``distutils``,
    the command needs to be registered explicitly in ``setup.py``::

        from babel.messages.setuptools_frontend import compile_catalog

        setup(
            ...
            cmdclass = {'compile_catalog': compile_catalog}
        )

    .. versionadded:: 0.9
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   #   s   r   c                   @  s   e Zd ZdZdS )Úextract_messagesaÍ  Message extraction command for use in ``setup.py`` scripts.

    If correctly installed, this command is available to Setuptools-using
    setup scripts automatically. For projects using plain old ``distutils``,
    the command needs to be registered explicitly in ``setup.py``::

        from babel.messages.setuptools_frontend import extract_messages

        setup(
            ...
            cmdclass = {'extract_messages': extract_messages}
        )
    Nr   r   r   r   r   r   5   s   r   c                   @  s   e Zd ZdZdS )Úinit_catalogaÉ  New catalog initialization command for use in ``setup.py`` scripts.

    If correctly installed, this command is available to Setuptools-using
    setup scripts automatically. For projects using plain old ``distutils``,
    the command needs to be registered explicitly in ``setup.py``::

        from babel.messages.setuptools_frontend import init_catalog

        setup(
            ...
            cmdclass = {'init_catalog': init_catalog}
        )
    Nr   r   r   r   r   r   E   s   r   c                   @  s   e Zd ZdZdS )Úupdate_catalogaß  Catalog merging command for use in ``setup.py`` scripts.

    If correctly installed, this command is available to Setuptools-using
    setup scripts automatically. For projects using plain old ``distutils``,
    the command needs to be registered explicitly in ``setup.py``::

        from babel.messages.setuptools_frontend import update_catalog

        setup(
            ...
            cmdclass = {'update_catalog': update_catalog}
        )

    .. versionadded:: 0.9
    Nr   r   r   r   r   r   U   s   r   )r   r   r   r   N)Ú
__future__r   Zbabel.messagesr   Ú
setuptoolsr   Zsetuptools.errorsr   r   r   ÚImportErrorÚ	ExceptionÚdistutils.cmdÚdistutils.errorsr   r   ZCompileCatalogr   ZExtractMessagesr   ZInitCatalogr   ZUpdateCatalogr   ZCOMMANDSr   r   r   r   Ú<module>   s(   ü