-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
60 lines (52 loc) · 1.62 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from setuptools import setup, dist , find_packages
try:
from Cython.Build import cythonize
except ImportError:
dist.Distribution().fetch_build_eggs(["cython>=0.28.0"])
from Cython.Build import cythonize
import Cython.Compiler.Options
Cython.Compiler.Options.annotate = True
try:
from numpy import get_include as np_get_include
except ImportError:
dist.Distribution().fetch_build_eggs(["numpy"])
from numpy import get_include as np_get_include
import causalforge
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
with open("requirements.txt") as f:
requirements = f.readlines()
with open("requirements-test.txt") as f:
requirements_test = f.readlines()
packages = find_packages(exclude=["tests", "tests.*"])
setup(
name="causalforge",
version=causalforge.__version__,
author="Gino Tesei, Jey Kottalam",
author_email="",
description="Python Package for Causal Inference",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/anthem-ai/causalforge",
packages=packages,
python_requires=">=3.7",
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
setup_requires=[
"setuptools",
"cython",
"numpy",
"scikit-learn",
"tensorflow",
"keras",
"torch"
],
install_requires=requirements,
tests_require=requirements_test,
license="MIT",
include_package_data=True,
include_dirs=[np_get_include()]
)