U
    öÕ/e¿  ã                   @  sr   d Z ddlmZ ddlZe e¡ZddlmZ dZ	ddœd	d
„Z
ddddœdd„Zdddœdd„Zeƒ d Z[dS )a¹   Provide a version for the Bokeh library.

This module uses `versioneer`_ to manage version strings. During development,
`versioneer`_ will compute a version string from the current git revision.
For packaged releases based off tags, the version string is hard coded in the
files packaged for distribution.

Attributes:
    __version__:
        The full version string for this installed Bokeh library

Functions:
    base_version:
        Return the base version string, without any "dev", "rc" or local build
        information appended.

    is_full_release:
        Return whether the current installed version is a full release.

.. _versioneer: https://github.com/warner/python-versioneer

é    )ÚannotationsNé   )Úget_versions)Úbase_versionÚis_full_releaseÚstr)Úreturnc                   C  s   t tƒS )N)Ú_base_version_helperÚ__version__© r   r   ú6/tmp/pip-unpacked-wheel-f5fndrjf/bokeh/util/version.pyr   :   s    r   z
str | NoneÚbool)Úversionr   c                 C  s(   dd l }| pt} | d¡}t| | ¡ƒS )Nr   z^(\d+\.\d+\.\d+)$)Úrer
   Úcompiler   Úmatch)r   r   ÚVERSION_PATr   r   r   r   =   s    
r   c                 C  s2   dd l }| d¡}| | ¡}|d k	s(t‚| d¡S )Nr   z^(\d+\.\d+\.\d+)((?:dev|rc).*)?é   )r   r   ÚsearchÚAssertionErrorÚgroup)r   r   r   r   r   r   r   r	   K   s
    

r	   r   )N)Ú__doc__Ú
__future__r   ÚloggingÚ	getLoggerÚ__name__ÚlogÚ_versionr   Ú__all__r   r   r	   r
   r   r   r   r   Ú<module>   s   
	
