-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
44 lines (36 loc) · 1.32 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
from setuptools import setup, Extension
import re
description = 'A python library to evolve binary star systems in time.'
try:
with open('README.md', 'r', encoding='utf-8') as f:
long_description = f.read()
except FileNotFoundError:
long_description = description
metadata = {"version": "",
"author": "",
"email": ""
}
metadata_file = open("takahe/_metadata.py", "rt").read()
for item in metadata.keys():
version_regex = rf"^__{item}__ = ['\"]([^'\"]*)['\"]"
match = re.search(version_regex, metadata_file, re.M)
if match:
metadata[item] = match.group(1)
setup(name='takahe',
license = 'MIT License',
version = metadata['version'],
description = description,
long_description = long_description,
author = metadata['author'],
author_email = metadata['email'],
packages = ['takahe'],
zip_safe = False,
homepage = 'https://github.com/Krytic/Takahe',
install_requires = ['numpy',
'matplotlib',
'numba',
'pandas',
'diffeqpy',
'imageio'
]
)