forked from duckietown/duckietown-world
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
89 lines (78 loc) · 2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# coding=utf-8
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/duckietown_world/__init__.py")
line = "daffy"
install_requires = [
"Pillow",
"PyContracts3",
"PyGeometry-z6>=2.0.4",
"PyYAML",
f"aido-protocols-{line}",
"beautifulsoup4>=4.6.3,<=4.7.1",
"coloredlogs",
"duckietown-serialization-ds1<2",
"frozendict",
"future",
"gltflib",
"jpeg4py",
"lxml",
"Markdown",
"matplotlib",
"networkx>=2.2,<3",
"numpy",
"oyaml",
"Pillow",
"plotly",
"pyrender",
"scipy",
"six",
"svgwrite",
"trimesh",
"typing_extensions",
"zuper-commons-z6",
"zuper-ipce-z6",
"zuper-typing-z6",
"ipython",
]
tests_require = ["comptests-z6", "compmake-z6>=6.1.1"]
system_version = tuple(sys.version_info)[:3]
if system_version < (3, 7):
install_requires.append("dataclasses")
line = "daffy"
setup(
name=f"duckietown-world-{line}",
version=version,
download_url="http://github.com/duckietown/duckietown-world/tarball/%s" % version,
package_dir={"": "src"},
packages=find_packages("src"),
install_requires=install_requires,
tests_require=tests_require,
# This avoids creating the egg file, which is a zip file, which makes our data
# inaccessible by dir_from_package_name()
zip_safe=False,
# without this, the stuff is included but not installed
include_package_data=True,
entry_points={
"console_scripts": [
# 'dt-world-draw-log = duckietown_world.svg_drawing:draw_logs_main',
"dt-world-draw-maps = duckietown_world.svg_drawing:draw_maps_main",
"dt-world-export-gltf = duckietown_world.gltf:gltf_export_main",
"dt-make-scenarios =duckietown_world.world_duckietown.sampling:make_scenario_main",
"dt-compile-textures=duckietown_world.world_duckietown.compile_textures:compile_textures_main",
]
},
)