-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
66 lines (58 loc) · 2.23 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
#!/usr/bin/env python3
################################################################################
# This is a minimal setup.py for enabling ROS builds.
#
# For all other modes of development, use poetry and pyproject.toml
################################################################################
import os
from setuptools import find_packages, setup
def gather_js_files():
data_files = []
for root, unused_subdirs, files in os.walk("js"):
destination = os.path.join("share", package_name, root)
js_files = []
for file in files:
pathname = os.path.join(root, file)
js_files.append(pathname)
data_files.append((destination, js_files))
return data_files
package_name = "py_trees_js"
setup(
name=package_name,
# version needs to be updated in several places
# package.xml
# pyproject.toml
# py_trees-<version>.js (and version variable therein)
# py_trees-<version.css>
# py_trees_js/viewer/html/index.html
# py_trees_js/resources.qrc
version="0.6.4",
packages=find_packages(exclude=["tests*", "docs*"]),
data_files=[("share/" + package_name, ["package.xml"])] + gather_js_files(),
package_data={"py_trees_js": ["viewer/*.ui", "viewer/html/*", "viewer/images/*"]},
author="Daniel Stonier",
maintainer="Daniel Stonier <[email protected]>",
url="https://github.com/splintered-reality/py_trees_js",
keywords=["ROS", "ROS2", "behaviour-trees", "Qt"],
zip_safe=True,
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
],
description=(
"Javascript libraries for visualising executing or log-replayed behaviour trees"
),
long_description=(
"Javascript libraries for visualising executing or log-replayed behaviour trees."
"Includes a qt-js hybrid viewer for development and demonstration purposes."
),
license="BSD",
entry_points={
"console_scripts": [
"py-trees-demo-viewer = py_trees_js.viewer.viewer:main",
],
},
)