from setuptools import setup, find_packages
import os
from glob import glob

package_name = "saltybot_emergency"

setup(
    name=package_name,
    version="0.1.0",
    packages=find_packages(exclude=["test"]),
    data_files=[
        ("share/ament_index/resource_index/packages",
         [f"resource/{package_name}"]),
        (f"share/{package_name}", ["package.xml"]),
        (os.path.join("share", package_name, "config"),
         glob("config/*.yaml")),
        (os.path.join("share", package_name, "launch"),
         glob("launch/*.py")),
    ],
    install_requires=["setuptools"],
    zip_safe=True,
    maintainer="sl-controls",
    maintainer_email="sl-controls@saltylab.local",
    description="Emergency behavior system — collision avoidance, fall prevention, stuck detection, recovery",
    license="MIT",
    tests_require=["pytest"],
    entry_points={
        "console_scripts": [
            f"emergency_node = {package_name}.emergency_node:main",
        ],
    },
)
