Skip to content

Commit eb4522e

Browse files
committed
Install systemd service files
Install the systemd service as part of the pyproject installation process. Signed-off-by: Christopher Obbard <christopher.obbard@linaro.org>
1 parent d980773 commit eb4522e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ authors = [
2121
Homepage = "https://github.com/brgl/gpiod-sysfs-proxy"
2222
Issues = "https://github.com/brgl/gpiod-sysfs-proxy/issues"
2323

24+
[tool.setuptools.data-files]
25+
"lib/systemd/system" = [
26+
"share/gpiod-sysfs-proxy.service",
27+
"share/run-gpio-sys.mount",
28+
"share/sys-class.mount",
29+
]
30+
"lib/systemd/system/sysinit.target.wants" = [
31+
"share/sysinit.target.wants/run-gpio-sys.mount",
32+
"share/sysinit.target.wants/sys-class.mount",
33+
]
34+
2435
[build-system]
2536
requires = ["setuptools", "wheel"]
2637
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)