from setuptools import setup
import os
from glob import glob

package_name = 'saltybot_phone'

setup(
    name=package_name,
    version='0.1.0',
    packages=[package_name],
    data_files=[
        ('share/ament_index/resource_index/packages', ['resource/' + package_name]),
        ('share/' + package_name, ['package.xml']),
        (os.path.join('share', package_name, 'launch'), glob('launch/*.py')),
        (os.path.join('share', package_name, 'config'), glob('config/*.yaml')),
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='seb',
    maintainer_email='seb@vayrette.com',
    description='Android/Termux phone node for SaltyBot',
    license='MIT',
    tests_require=['pytest'],
    entry_points={
        'console_scripts': [
            'camera_node = saltybot_phone.camera_node:main',
            'gps_node = saltybot_phone.gps_node:main',
            'imu_node = saltybot_phone.imu_node:main',
            'openclaw_chat = saltybot_phone.openclaw_chat_node:main',
            'phone_bridge = saltybot_phone.ws_bridge:main',
            'phone_camera_node = saltybot_phone.phone_camera_node:main',
            'mqtt_ros2_bridge = saltybot_phone.mqtt_ros2_bridge_node:main',
            'vesc_mqtt_relay = saltybot_phone.vesc_mqtt_relay_node:main',
        ],
    },
)