-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (35 loc) · 907 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
36
37
38
39
40
41
42
43
from setuptools import setup
def get_version(filename):
import ast
version = None
with open(filename) as f:
for line in f:
if line.startswith("__version__"):
version = ast.parse(line).body[0].value.s
print(version)
break
else:
raise ValueError(f"No version found in {filename}.")
if version is None:
raise ValueError(filename)
return version
install_requires = [
"numpy",
"scipy",
"suds-jurko",
"casadi==3.5.1",
"matplotlib",
]
module = "udgs"
package = "udgs"
src = "src"
version = get_version(filename=f"src/{module}/__init__.py")
setup(
name=package,
package_dir={"": src},
packages=[module],
version=version,
zip_safe=False,
#entry_points={"console_scripts": ["dg-demo = games_zoo:dg_demo", ]},
install_requires=install_requires,
)