-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
54 lines (43 loc) · 1.19 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
# ```hypothesis``` is free software; you can redistribute it and\or modify it
# under the terms of the Revised BSD License; see LICENSE file for more details.
"""```hypothesis``` setup file."""
import os
import re
import sys
from setuptools import find_packages
from setuptools import setup
"""Configuration"""
include_extensions=True
include_benchmarks=True
exclusions=["doc", "examples"]
if not include_extensions:
exclusions.append("hypothesis/extension")
if not include_benchmarks:
exclusions.append("hypothesis/benchmark")
packages = find_packages(exclude=exclusions)
# Get the version string of hypothesis.
with open(os.path.join("hypothesis", "__init__.py"), "rt") as fh:
_version = re.search(
'__version__\s*=\s*"(?P<version>.*)"\n',
fh.read()
).group("version")
# Module requirements.
_install_requires = [
"argparse",
"corner",
"numpy",
"pandas",
"scipy",
"sklearn",
"torch"
]
_parameters = {
"install_requires": _install_requires,
"license": "BSD",
"name": "hypothesis",
"packages": packages,
"platform": "any",
"url": "https://github.com/montefiore-ai/hypothesis/",
"version": _version
}
setup(**_parameters)