forked from Ryochan7/sc-controller
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): set daemon version from setuptools-scm
- Loading branch information
1 parent
e366980
commit 726042d
Showing
5 changed files
with
26 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ appimage/ | |
dist/ | ||
sccontroller.egg-info/ | ||
!.github | ||
scc/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,12 @@ | |
# TODO migrate files from setup.py - https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html | ||
|
||
[build-system] | ||
requires = ["setuptools>=60", "wheel"] | ||
requires = ["setuptools>=60", "setuptools-scm>=8.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "sccontroller" | ||
version = "0.4.9.5" # Replace with DAEMON_VERSION or vice versa? | ||
dynamic = ["version"] | ||
description = "User-mode driver, mapper and GTK3 based GUI for Steam Controller, DS4 and similar controllers." | ||
authors = [{name = "C0rn3j", email = "[email protected]"}] | ||
license = {text = "GPL-2.0-only"} | ||
|
@@ -22,6 +22,21 @@ classifiers = [ | |
requires-python = ">=3.8" | ||
#platforms = ["Linux"] | ||
|
||
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#creating-executable-scripts | ||
[project.gui-scripts] | ||
sc-controller = "scc.bin.sc_controller:main" | ||
|
||
[project.scripts] | ||
scc-daemon = "scc.bin.scc_daemon:main" | ||
scc = "scc.bin.scc:main" | ||
scc-osd-dialog = "scc.bin.scc_osd_dialog:main" | ||
scc-osd-keyboard = "scc.bin.scc_osd_keyboard:main" | ||
scc-osd-launcher = "scc.bin.scc_osd_launcher:main" | ||
scc-osd-menu = "scc.bin.scc_osd_menu:main" | ||
scc-osd-message = "scc.bin.scc_osd_message:main" | ||
scc-osd-radial-menu = "scc.bin.scc_osd_radial_menu:main" | ||
scc-osd-show-bindings = "scc.bin.scc_osd_show_bindings:main" | ||
|
||
[tool.setuptools] | ||
packages = [ | ||
"scc", | ||
|
@@ -37,20 +52,8 @@ packages = [ | |
"scc.gui.creg" | ||
] | ||
|
||
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#creating-executable-scripts | ||
[project.gui-scripts] | ||
sc-controller = "scc.bin.sc_controller:main" | ||
|
||
[project.scripts] | ||
scc-daemon = "scc.bin.scc_daemon:main" | ||
scc = "scc.bin.scc:main" | ||
scc-osd-dialog = "scc.bin.scc_osd_dialog:main" | ||
scc-osd-keyboard = "scc.bin.scc_osd_keyboard:main" | ||
scc-osd-launcher = "scc.bin.scc_osd_launcher:main" | ||
scc-osd-menu = "scc.bin.scc_osd_menu:main" | ||
scc-osd-message = "scc.bin.scc_osd_message:main" | ||
scc-osd-radial-menu = "scc.bin.scc_osd_radial_menu:main" | ||
scc-osd-show-bindings = "scc.bin.scc_osd_show_bindings:main" | ||
[tool.setuptools_scm] | ||
version_file = "scc/_version.py" | ||
|
||
[tool.ruff] | ||
# Target non-EOL releases at minimum, or later if needed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters