#!/usr/bin/env python3
"""
@file
@defgroup rtctk_clients_ctrlMonTool Control and Monitoring Tool
@ingroup rtctk_clients

@brief Control and Monitoring Tool for managing SRTC components.

@copyright
  SPDX-FileCopyrightText: 2023-2026 European Southern Observatory (ESO) @n
  SPDX-License-Identifier: LGPL-3.0-only
"""

from wtools.module import declare_pyqtprogram

# The declare_pyqtprogram instruction will automatically find
# the QT Resources, and the UI files, and run the necessary
# commands to produce the python versions of them.

declare_pyqtprogram(
    target="rtctkCtrlMonTool",
    py_program="src/rtctk_ctrl_mon_tool.py",
    py_package="src/rtctk/",
    use=[
        "componentFramework.pybindings",
        "componentFramework.interfaces.rtctkif-python",
        "clients.common",
    ],
    ut_attrs=dict(
        use=lambda pkgs, _: pkgs
        + ["componentFramework.services.testSupport.pybindings", "clients.guiWidgets"]
    ),
    depends="cut.widgets.widgets cut.widgets.bindings cut.widgets.taurus",
    with_unit_test=True,
    with_ut_lib="pytest",
    with_doctest=False,
)
