Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
)