forked from Priesemann-Group/covid19_inference_forecast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (27 loc) · 908 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
from setuptools import setup
import re
# read the contents of your README file
from os import path
with open('README.md') as f:
long_description = f.read()
verstr = "unknown"
try:
verstrline = open('covid19_inference/_version.py', "rt").read()
except EnvironmentError:
pass
else:
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("unable to find version in covid19_inference/_version.py")
setup(
name='covid19_inference',
author='Jonas Dehning, Johannes Zierenberg, F. Paul Spitzner, Michael Wibral, Joao Pinheiro Neto, Michael Wilczek, Viola Priesemann',
author_email='[email protected]',
packages=['covid19_inference'],
url='https://github.com/Priesemann-Group/covid19_inference_forecast',
python_requires='>=3.6.0',
version = verstr,
)