import os
from glob import glob
from setuptools import setup

package_name = "saltybot_uwb_espnow_relay"

setup(
    name=package_name,
    version="0.1.0",
    packages=[package_name],
    data_files=[
        ("share/ament_index/resource_index/packages",
            [f"resource/{package_name}"]),
        (f"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="sl-uwb",
    maintainer_email="sl-uwb@saltylab.local",
    description="ESP-NOW to ROS2 serial relay for SaltyBot UWB tags (Issue #618)",
    license="Apache-2.0",
    entry_points={
        "console_scripts": [
            "espnow_relay = saltybot_uwb_espnow_relay.relay_node:main",
        ],
    },
)
