diff --git a/causalpy/version.py b/causalpy/version.py index b1a19e32..034f46c3 100644 --- a/causalpy/version.py +++ b/causalpy/version.py @@ -1 +1 @@ -__version__ = "0.0.5" +__version__ = "0.0.6" diff --git a/setup.py b/setup.py index 2b606a9d..a3b50e49 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,6 @@ README_FILE = os.path.join(PROJECT_ROOT, "README.md") VERSION_FILE = os.path.join(PROJECT_ROOT, "causalpy", "version.py") REQUIREMENTS_FILE = os.path.join(PROJECT_ROOT, "requirements.txt") -TEST_REQUIREMENTS_FILE = os.path.join(PROJECT_ROOT, "requirements-test.txt") def get_long_description(): @@ -14,18 +13,15 @@ def get_long_description(): return f.read() -with open(VERSION_FILE) as f: - version = f.read().split("=")[-1].strip().strip('"') +# get version +exec(open("causalpy/version.py").read()) with open(REQUIREMENTS_FILE) as f: install_reqs = f.read().splitlines() -with open(TEST_REQUIREMENTS_FILE) as f: - tests_reqs = f.read().splitlines() - setup( name="CausalPy", - version=version, + version=__version__, description="Causal inference for quasi-experiments in Python", long_description=get_long_description(), long_description_content_type="text/markdown", @@ -36,5 +32,5 @@ def get_long_description(): python_requires=">=3.8", maintainer="Benjamin T. Vincent", install_requires=install_reqs, - tests_require=tests_reqs, + # tests_require=test_reqs, )