Skip to content

Commit

Permalink
pyproject.toml: Fix defining project.scripts functions
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Sep 28, 2024
1 parent 42b0ac4 commit f00d404
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f00d404

Please sign in to comment.