From 36d80ebdffdd5a4e08257f80177a85285329efa9 Mon Sep 17 00:00:00 2001 From: atse Date: Mon, 18 Nov 2024 11:47:33 +0800 Subject: [PATCH] PyThermostat: Add entry points for runnables Forms a more convienient interface. --- pythermostat/setup.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pythermostat/setup.py b/pythermostat/setup.py index e1f7c87..7e34ea1 100644 --- a/pythermostat/setup.py +++ b/pythermostat/setup.py @@ -9,4 +9,13 @@ setup( license="GPLv3", install_requires=["setuptools"], packages=find_packages(), + entry_points={ + "gui_scripts": [ + "thermostat_plot = pythermostat.plot:main", + ], + "console_scripts": [ + "thermostat_autotune = pythermostat.autotune:main", + "thermostat_test = pythermostat.test:main", + ] + }, )