forked from PickNikRobotics/generate_parameter_library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (34 loc) · 1.22 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
# -*- coding: utf-8 -*-
import sys
from setuptools import setup
package_name = 'generate_parameter_module_example'
if len(sys.argv) >= 2 and sys.argv[1] != 'clean':
from generate_parameter_library_py.setup_helper import generate_parameter_module
# set module_name and yaml file
module_name = 'admittance_parameters'
yaml_file = 'generate_parameter_module_example/parameters.yaml'
validation_module = 'generate_parameter_module_example.custom_validation'
generate_parameter_module(
module_name, yaml_file, validation_module=validation_module
)
setup(
name=package_name,
version='0.3.8',
packages=[package_name],
data_files=[
('share/ament_index/resource_index/packages', ['resource/' + package_name]),
('share/' + package_name, ['package.xml']),
],
install_requires=['setuptools'],
zip_safe=True,
maintainer='Paul Gesel',
maintainer_email='[email protected]',
description='Example usage of generate_parameter_library for a python module',
license='BSD-3-Clause',
tests_require=['pytest'],
entry_points={
'console_scripts': [
'test_node = generate_parameter_module_example.minimal_publisher:main'
],
},
)