-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
49 lines (33 loc) · 1.16 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
import sys
import setuptools
from setuptools import setup
__version__ = "0.1.2"
if sys.version_info < (3, 8):
sys.exit("hypercontagion requires Python 3.8 or later.")
name = "hypercontagion"
version = __version__
authors = "Nicholas Landry"
author_email = "nicholas.landry@colorado.edu"
url = "https://github.com/nwlandry/hypercontagion"
description = "HyperContagion is a Python library for the simulation of contagion on complex systems with group (higher-order) interactions."
def parse_requirements_file(filename):
with open(filename) as fid:
requires = [l.strip() for l in fid.readlines() if not l.startswith("#")]
return requires
extras_require = {
dep: parse_requirements_file("requirements/" + dep + ".txt")
for dep in ["developer", "documentation", "release", "test", "tutorial"]
}
install_requires = parse_requirements_file("requirements/default.txt")
license = "3-Clause BSD license"
setup(
name=name,
packages=setuptools.find_packages(),
version=version,
author=authors,
author_email=author_email,
url=url,
description=description,
install_requires=install_requires,
extras_require=extras_require,
)