-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (47 loc) · 1.34 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
# Copyright 2020 MIT Probabilistic Computing Project.
# See LICENSE.txt
import os
import re
from setuptools import setup
# 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='optas',
version=__version__,
description='Optimal Approximate Sampling from Discrete Probability Distributions',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/probcomp/optimal-approximate-sampling',
maintainer='Feras A. Saad',
maintainer_email='[email protected]',
license='Apache-2.0',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
],
packages=[
'optas',
'optas.tests',
'optas.examples',
],
package_dir={
'optas': 'src',
'optas.tests': 'tests',
'optas.examples': 'examples',
},
package_data={
'optas': [
'orderm2',
'phi',
'../c/*.c',
],
},
extras_require={
'tests': ['pytest', 'scipy']
}
)