Your IP : 216.73.216.196


Current Path : /opt/alt/python35/lib/python3.5/site-packages/setuptools_scm/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/setuptools_scm/__pycache__/config.cpython-35.pyc



,�?\%
�@s�dZddlmZmZddlZddlZddlZddlmZdZ	dZ
dd	�Zd
d�ZGdd
�d
e
�ZdS)z configuration �)�print_function�unicode_literalsN�)�tracez@^(?:[\w-]+-)?(?P<version>[vV]?\d+(?:\.\d+){0,2}[^\+]+)(?:\+.*)?$�version_schemecCse|st}tj|�}|jj�}|jdksT|jdkrad|kratjd�|S)Nrr�versionzvExpected tag_regex to contain a single match group or a group named 'version' to identify the version part of any tag.)�DEFAULT_TAG_REGEX�re�compile�
groupindex�keys�groups�warnings�warn)�value�regex�group_names�r�F/opt/alt/python35/lib/python3.5/site-packages/setuptools_scm/config.py�_check_tag_regex
s*rcCsp|r`tjj|�r?|j|�r?tjd||f�tjjtjj|�|�}tjj|�S)Nz2absolute root path '%s' overrides relative_to '%s')	�os�path�isabs�
startswithrr�join�dirname�abspath)�root�relative_torrr�_check_absolute_roots"!rc@s�eZdZdZdZdZdZdZdZdZ	dZ
dZdZdddd�Z
edd��Zedd	��Zejd
d	��Zedd��Zejd
d��Zedd��Zejdd��ZdS)�
Configurationz Global configuration model N�.cCs^||_d|_||_t|_d|_d|_d|_d|_t	|_
d|_dS)Nr!z
node-and-date�)�_relative_to�_rootr�DEFAULT_VERSION_SCHEMEr�local_scheme�write_to�write_to_template�parser�	tag_regex�git_describe_command)�selfrrrrr�__init__4s									zConfiguration.__init__cCs|jS)N)�_absolute_root)r,rrr�
absolute_rootBszConfiguration.absolute_rootcCs|jS)N)r#)r,rrrrFszConfiguration.relative_tocCs8t|j|�|_||_tdt|j��dS)Nr)rr$r.r#r�repr)r,rrrrrJs	cCs|jS)N)r$)r,rrrrPszConfiguration.rootcCs8t||j�|_||_tdt|j��dS)Nr)rr#r.r$rr0)r,rrrrrTs	cCs|jS)N)�
_tag_regex)r,rrrr*ZszConfiguration.tag_regexcCst|�|_dS)N)rr1)r,rrrrr*^s)�__name__�
__module__�__qualname__�__doc__r$rr&r'r(r#r)r1r.r-�propertyr/r�setterrr*rrrrr 's$r )r5�
__future__rrrr	r�utilsrrr%rr�objectr rrrr�<module>s