# Path: fabfile/constants.py
# VER_FILE = os.path.join(LIB_DIR, 'climenu.py')
# 
# DOCS_CONF_FILE = os.path.join(LIB_DIR, 'docs', 'conf.py')
# 
# Path: fabfile/helpers.py
# def true(value):
#     '''Since fabric task inputs are always text, we need a way to convert it
#     to a boolean.
#     '''
#     if isinstance(value, bool):
#         return value
#     elif isinstance(value, basestring):
#         return value.lower()[0] in ['y', 't', '1']
# 
#     # Use the default representation
#     return bool(value)


import re
from fabric.api import task
from .constants import VER_FILE, DOCS_CONF_FILE
from .helpers import true
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
This module manages the version info.
'''

# Imports #####################################################################


# Metadata ####################################################################
__author__ = 'Timothy McFadden'
__creationDate__ = '13-APR-2017'


# Globals #####################################################################
RE_VERSION = re.compile(
    '^__version__\s*=\s*[\'"](?P<version>.*?)[\'"]\s*?^', re.MULTILINE)


def get_version():
    '''Gets the current version'''

# Path: fabfile/constants.py
# VER_FILE = os.path.join(LIB_DIR, 'climenu.py')
# 
# DOCS_CONF_FILE = os.path.join(LIB_DIR, 'docs', 'conf.py')
# 
# Path: fabfile/helpers.py
# def true(value):
#     '''Since fabric task inputs are always text, we need a way to convert it
#     to a boolean.
#     '''
#     if isinstance(value, bool):
#         return value
#     elif isinstance(value, basestring):
#         return value.lower()[0] in ['y', 't', '1']
# 
#     # Use the default representation
#     return bool(value)


# Path: fabfile/ver.py
import re
from fabric.api import task
from .constants import VER_FILE, DOCS_CONF_FILE
from .helpers import true

#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
This module manages the version info.
'''

# Imports #####################################################################


# Metadata ####################################################################
__author__ = 'Timothy McFadden'
__creationDate__ = '13-APR-2017'


# Globals #####################################################################
RE_VERSION = re.compile(
    '^__version__\s*=\s*[\'"](?P<version>.*?)[\'"]\s*?^', re.MULTILINE)


def get_version():
    '''Gets the current version'''

    text = open(VER_FILE).read()