-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
70 lines (65 loc) · 1.8 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
65
66
67
68
69
70
# Copyright 2020 MIT Probabilistic Computing Project.
# See LICENSE.txt
import os
import re
from setuptools import setup
# Specify the requirements.
requirements = {
'src' : [
'astunparse==1.6.3',
'numpy==1.23.1',
'scipy==1.8.1',
'sympy==1.10.1',
],
'magics' : [
'graphviz==0.13.2',
'ipython==7.23.1',
'jupyter-core==4.6.3',
'networkx==2.4',
'notebook==6.0.3',
'matplotlib==3.3.2',
'pygraphviz==1.5',
],
'tests' : [
'pytest-timeout==2.1.0',
'pytest==7.1.2',
'coverage==6.4.2',
]
}
requirements['all'] = [r for v in requirements.values() for r in v]
# Determine the version (hardcoded).
dirname = os.path.dirname(os.path.realpath(__file__))
vre = re.compile('__version__ = \'(.*?)\'')
m = open(os.path.join(dirname, 'src', '__init__.py')).read()
__version__ = vre.findall(m)[0]
setup(
name='sppl',
version=__version__,
description='The Sum-Product Probabilistic Language',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/probcomp/sppl',
license='Apache-2.0',
maintainer='Feras A. Saad',
maintainer_email='[email protected]',
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Topic :: Scientific/Engineering :: Mathematics',
],
packages=[
'sppl',
'sppl.compilers',
'sppl.magics',
'sppl.tests',
],
package_dir={
'sppl' : 'src',
'sppl.compilers' : 'src/compilers',
'sppl.magics' : 'magics',
'sppl.tests' : 'tests',
},
install_requires=requirements['src'],
extras_require=requirements,
python_requires='>=3.8',
)