Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/setuptools_scm/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/setuptools_scm/__pycache__/config.cpython-37.pyc

B

,�?\%
�@sddZddlmZmZddlZddlZddlZddlmZdZ	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_schemecCsF|st}t�|�}|j��}|jdks8|jdkrBd|krBt�d�|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/python37/lib/python3.7/site-packages/setuptools_scm/config.py�_check_tag_regex
s

rcCsN|rBtj�|�r,|�|�s,t�d||f�tj�tj�|�|�}tj�|�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ddd�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__4szConfiguration.__init__cCs|jS)N)�_absolute_root)r,rrr�
absolute_rootBszConfiguration.absolute_rootcCs|jS)N)r#)r,rrrrFszConfiguration.relative_tocCs(t|j|�|_||_tdt|j��dS)Nr)rr$r.r#r�repr)r,rrrrrJscCs|jS)N)r$)r,rrrrPszConfiguration.rootcCs(t||j�|_||_tdt|j��dS)Nr)rr#r.r$rr0)r,rrrrrTscCs|jS)N)�
_tag_regex)r,rrrr*ZszConfiguration.tag_regexcCst|�|_dS)N)rr1)r,rrrrr*^s)Nr!)�__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