def get_version(package):
    init_py = open(os.path.join(package, '__init__.py')).read()
    return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
Test the creation of a simple XlsxWriter file.
dataset/ETHPy150Open evonove/django-stored-messages/setup.py/get_version--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/comparison/test_chart_data_labels21.py/TestCompareXLSXFiles.test_create_file