From ee094241bbd331a328a5c7b5056f087cde498651 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pythermostat/setup.py b/pythermostat/setup.py index e1f7c87..b610f28 100644 --- a/pythermostat/setup.py +++ b/pythermostat/setup.py @@ -9,4 +9,14 @@ setup( license="GPLv3", install_requires=["setuptools"], packages=find_packages(), + entry_points={ + "gui_scripts": [ + "thermostat_plot = plot:main", + ], + "console_scripts": [ + "thermostat_autotune = autotune:main", + "thermostat_test = test:main", + ] + }, + py_modules=["autotune", "plot", "test"], )