forked from LFITaskForce/benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (27 loc) · 744 Bytes
/
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
"""`benchmark` setup file."""
import os
import re
import sys
from setuptools import find_packages
from setuptools import setup
package_name = "benchmark"
exclusions = ["doc", "examples"]
packages = find_packages(exclude=exclusions)
with open(os.path.join(package_name, "__init__.py"), "rt") as fh:
_version = re.search(
'__version__\s*=\s*"(?P<version>.*)"\n',
fh.read()
).group("version")
_install_requires = [
"numpy",
"pyro-ppl",
"torch"]
_parameters = {
"install_requires": _install_requires,
"license": "BSE",
"name": package_name,
"packages": packages,
"platform": "any",
"url": "https://github.com/LFITaskForce/benchmark",
"version": _version}
setup(**_parameters)