forked from duckietown/gym-duckietown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (48 loc) · 1.27 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
55
56
57
58
59
60
import sys
from setuptools import find_packages, 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
break
else:
raise ValueError("No version found in %r." % filename)
if version is None:
raise ValueError(filename)
return version
version = get_version(filename="src/gym_duckietown/__init__.py")
line = "daffy"
install_requires = [
"gym",
"numpy",
"pyglet==1.5",
"pyzmq",
"opencv-python",
"PyYAML",
"PyGeometry-z6",
"carnivalmirror",
"zuper-commons-z6",
"typing_extensions",
"Pillow",
]
system_version = tuple(sys.version_info)[:3]
if system_version < (3, 7):
install_requires.append("dataclasses")
setup(
name=f"duckietown-gym-{line}",
package_dir={"": "src"},
packages=find_packages("src"),
zip_safe=False,
version=version,
keywords="duckietown, environment, agent, rl, openaigym, openai-gym, gym",
include_package_data=True,
install_requires=install_requires,
entry_points={
"console_scripts": [
"dt-check-gpu=gym_duckietown.check_hw:main",
],
},
)