Skip to content

Commit dfb5590

Browse files
authored
Merge pull request #99 from pymc-labs/hotfix
HOTFIX - get pypi build working
2 parents 0226302 + b35481d commit dfb5590

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

causalpy/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.5"
1+
__version__ = "0.0.6"

setup.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,22 @@
66
README_FILE = os.path.join(PROJECT_ROOT, "README.md")
77
VERSION_FILE = os.path.join(PROJECT_ROOT, "causalpy", "version.py")
88
REQUIREMENTS_FILE = os.path.join(PROJECT_ROOT, "requirements.txt")
9-
TEST_REQUIREMENTS_FILE = os.path.join(PROJECT_ROOT, "requirements-test.txt")
109

1110

1211
def get_long_description():
1312
with open(README_FILE, encoding="utf-8") as f:
1413
return f.read()
1514

1615

17-
with open(VERSION_FILE) as f:
18-
version = f.read().split("=")[-1].strip().strip('"')
16+
# get version
17+
exec(open("causalpy/version.py").read())
1918

2019
with open(REQUIREMENTS_FILE) as f:
2120
install_reqs = f.read().splitlines()
2221

23-
with open(TEST_REQUIREMENTS_FILE) as f:
24-
tests_reqs = f.read().splitlines()
25-
2622
setup(
2723
name="CausalPy",
28-
version=version,
24+
version=__version__,
2925
description="Causal inference for quasi-experiments in Python",
3026
long_description=get_long_description(),
3127
long_description_content_type="text/markdown",
@@ -36,5 +32,5 @@ def get_long_description():
3632
python_requires=">=3.8",
3733
maintainer="Benjamin T. Vincent",
3834
install_requires=install_reqs,
39-
tests_require=tests_reqs,
35+
# tests_require=test_reqs,
4036
)

0 commit comments

Comments
 (0)