From f00d404f9dbf1c99e78879ea92632e94276a6ff1 Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Sat, 28 Sep 2024 22:44:15 +0200 Subject: [PATCH] pyproject.toml: Fix defining project.scripts functions --- pyproject.toml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4cc74e01..8d9c767a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,8 @@ +# TODO add requirements.txt https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata +# but it is BETA + +# TODO migrate files from setup.py - https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html + [build-system] requires = ["setuptools>=60", "wheel"] build-backend = "setuptools.build_meta" @@ -32,17 +37,19 @@ packages = [ ] # https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#creating-executable-scripts +[project.gui-scripts] +sc-controller = "scripts.sc_controller:main_function" + [project.scripts] -scc-daemon = "scripts.scc_daemon" -sc-controller = "scripts.sc_controller" -scc = "scripts.scc" -scc-osd-dialog = "scripts.scc_osd_dialog" -scc-osd-keyboard = "scripts.scc_osd_keyboard" -scc-osd-launcher = "scripts.scc_osd_launcher" -scc-osd-menu = "scripts.scc_osd_menu" -scc-osd-message = "scripts.scc_osd_message" -scc-osd-radial-menu = "scripts.scc_osd_radial_menu" -scc-osd-show-bindings = "scripts.scc_osd_show_bindings" +scc-daemon = "scripts.scc_daemon:main_function" +scc = "scripts.scc:main_function" +scc-osd-dialog = "scripts.scc_osd_dialog:main_function" +scc-osd-keyboard = "scripts.scc_osd_keyboard:main_function" +scc-osd-launcher = "scripts.scc_osd_launcher:main_function" +scc-osd-menu = "scripts.scc_osd_menu:main_function" +scc-osd-message = "scripts.scc_osd_message:main_function" +scc-osd-radial-menu = "scripts.scc_osd_radial_menu:main_function" +scc-osd-show-bindings = "scripts.scc_osd_show_bindings:main_function" [tool.ruff] # Target non-EOL releases at minimum, or later if needed