-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
62 lines (50 loc) · 1.37 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
61
62
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>=0.17.1",
"numpy>=1.10.0,<=1.20.0",
"pyglet",
# 'pyglet',
"pyzmq>=16.0.0",
"opencv-python>=3.4",
"PyYAML>=3.11",
f"duckietown-world-{line}",
"PyGeometry-z6",
"carnivalmirror==0.6.2",
"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",
],
},
)