-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
64 lines (52 loc) · 1.91 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
61
62
63
64
import re
import sys
import setuptools
import os
from setuptools import find_packages
if sys.version_info < (3, 6):
sys.exit('Python < 3.6 is not supported')
# get abs path from this folder name
here = os.path.dirname(os.path.abspath(__file__))
print(here)
# open __init__.py, where version is specified
with open(os.path.join(here, 'bcause', '__init__.py')) as f:
txt = f.read()
# try to read it from source code
try:
version = re.findall(r"^__version__ = '([^']+)'\r?$",
txt, re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version.')
#REQUIREMENTS = [i.strip() for i in open("requirements/install.txt").readlines()]
REQUIREMENTS = [
"numpy~=1.24.4 ",
"pandas~=2.1.3 ",
"matplotlib~=3.5.2 ",
"networkx~=2.6.3 ",
"pgmpy~=0.1.17 ",
]
setuptools.setup(
name="bcause",
version=version,
author="Rafael Cabañas",
author_email="[email protected]",
description="Causal reasoning with PGMs",
long_description="BCAUSE is a package for doing causal and counterfactual resoning with PGMs.",
long_description_content_type="text/markdown",
url="https://github.com/PGM-Lab/bcause",
#packages=["bcause"],
#package_dir={'bcause': './bcause'},
packages = find_packages('.'),
include_package_data=False,
license='Apache License 2.0',
classifiers=['Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python :: 3.6'],
python_requires='>=3.6',
install_requires=REQUIREMENTS,
)