def get_version(package):
    init_py = read(os.path.join(package, '__init__.py'))
    return re.search(
        "^__version__ = ['\"]([^'\"]+)['\"]", 
        init_py,
        re.MULTILINE
    ).group(1)

# Setup parameters that depend on the Python version
Return package version as listed in `__version__` in `__init__.py`.
dataset/ETHPy150Open dalembertian/fabmanager/setup.py/get_version