def get_version(module):
    """
    Return package version as listed in `__version__`.
    """
    init_py = open('{0}.py'.format(module)).read()
    return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)