Skip to content

Commit

Permalink
Merge pull request #99 from pymc-labs/hotfix
Browse files Browse the repository at this point in the history
HOTFIX - get pypi build working
  • Loading branch information
drbenvincent authored Dec 1, 2022
2 parents 0226302 + b35481d commit dfb5590
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion causalpy/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.5"
__version__ = "0.0.6"
12 changes: 4 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,22 @@
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():
with open(README_FILE, encoding="utf-8") as f:
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",
Expand All @@ -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,
)

0 comments on commit dfb5590

Please sign in to comment.