|
@@ -1,31 +1,27 @@
|
|
|
-import glob
|
|
|
-import os
|
|
|
+import xml.etree.ElementTree as ET
|
|
|
from pathlib import Path
|
|
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
-package_name = 'gui'
|
|
|
-
|
|
|
+package_xml = ET.parse('package.xml').getroot()
|
|
|
+package_name = package_xml.find('name').text
|
|
|
data = Path('share') / package_name
|
|
|
setup(
|
|
|
name=package_name,
|
|
|
- version='1.0.0',
|
|
|
+ version=package_xml.find('version').text,
|
|
|
packages=[package_name],
|
|
|
+ maintainer=package_xml.find('license').text,
|
|
|
+ maintainer_email=package_xml.find('maintainer').attrib['email'],
|
|
|
+ license=package_xml.find('license').text,
|
|
|
data_files=[
|
|
|
(str(data), ['package.xml']),
|
|
|
(str(data / 'launch'), ['launch/main_launch.py']),
|
|
|
- # (os.path.join('share', package_name, 'launch'), glob(os.path.join('launch', '*launch.[pxy][yma]*')))
|
|
|
],
|
|
|
install_requires=['setuptools'],
|
|
|
zip_safe=True,
|
|
|
- maintainer='Zauberzeug GmbH',
|
|
|
- maintainer_email='nicegui@zauberzeug.com',
|
|
|
- description='This is an example of NiceGUI in a ROS2 node based that uses a joystick to control turtlesim.',
|
|
|
- license='MIT License',
|
|
|
entry_points={
|
|
|
'console_scripts': [
|
|
|
'nicegui_node = gui.node:main',
|
|
|
],
|
|
|
-
|
|
|
},
|
|
|
)
|