From abf4fe7a1751d62fbf423e03a50250cb4be1d776 Mon Sep 17 00:00:00 2001 From: CamDavidsonPilon Date: Mon, 15 Jul 2019 14:09:35 -0400 Subject: [PATCH] setup.py should look at requirements.txt --- setup.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index 4acae0470..26ee9be65 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,10 @@ def filepath(fname): return os.path.join(os.path.dirname(__file__), fname) +with open("reqs/base-requirements.txt") as f: + requirements = f.read().splitlines() + + exec(compile(open("lifelines/version.py").read(), "lifelines/version.py", "exec")) with open("README.md") as f: @@ -35,14 +39,6 @@ def filepath(fname): "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering", ], - install_requires=[ - "numpy>=1.6.0", - "scipy>=1.0,<=1.2.1", - "pandas>=0.23.0", - "matplotlib>=3.0", - "bottleneck>=1.0", - "autograd>=1.2", - "autograd-gamma>=0.3", - ], + install_requires=requirements, package_data={"lifelines": ["../README.md", "../README.txt", "../LICENSE", "../MANIFEST.in", "datasets/*"]}, )