ros2-docs/code-snippets/ros2 node templete/my_py_pkg/setup.py

27 lines
662 B
Python
Raw Normal View History

2024-11-27 01:37:59 +00:00
from setuptools import setup
package_name = 'my_py_pkg'
setup(
name=package_name,
version='0.0.0',
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='ed',
maintainer_email='ed@todo.todo',
description='TODO: Package description',
license='TODO: License declaration',
tests_require=['pytest'],
entry_points={
'console_scripts': [
"py_node = my_py_pkg.my_first_node:main"
],
},
)