-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (30 loc) · 942 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2022 PAL Robotics S.L. All rights reserved.
from pathlib import Path
from distutils.core import setup
import xml.etree.ElementTree as ET
NAME = "pal_app"
# get the version from ROS' package.xml
VERSION = ET.parse("package.xml").find("version").text
TPLS = [
("share/%s/%s" % (NAME, t.parent), [str(t)])
for t in Path("tpl").rglob("*")
if t.is_file()
]
setup(
name=NAME,
version=VERSION,
license="Proprietary",
description="A tool to create application controller skeletons for interactive robots",
classifiers=[
"Programming Language :: Python :: 3",
],
requires=["jinja2"],
author="Séverin Lemaignan",
author_email="[email protected]",
scripts=["scripts/pal_app"],
package_dir={"": "src"},
packages=["pal_app"],
data_files=TPLS + [("share/doc/pal_app", ["README.md", "LICENSE"])],
)