Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (91 loc) · 3.83 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (91 loc) · 3.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[project]
dependencies = [
"aiohttp>=3.9",
"pyyaml>=6.0", # Comment-preserving YAML round-trip for the deck write API (issues # #84 / #85 / #99): the editor reconciles a client snapshot onto a
# fresh on-disk re-read so a hand-authored deck's comments and key
# order survive a one-field save. PyYAML stays for the load path.
"ruamel.yaml>=0.18",
"pydantic>=2.6",
"watchfiles>=1.0", # psutil backs the daemon's cross-platform sensor sources
# (CPU utilization, memory used, CPU frequency, battery).
# One pure-Python dep that works on Linux + macOS Intel + Apple
# Silicon without per-OS install steps. Wheel-only on every
# supported platform; no compile toolchain needed.
"psutil>=5.9",
]
description = "App-aware touch control surface daemon"
license = "GPL-3.0-or-later"
license-files = ["LICENSE"]
name = "deckd"
requires-python = ">=3.11"
version = "0.0.1"
[project.optional-dependencies]
dbus = [
# dbus-fast backs the ``dbus:`` action primitive and MPRIS now-playing
# (issue #27). Both are Linux-only in practice — the default deck's
# targets (org.mpris.*, org.freedesktop.login1.*, org.gnome.ScreenSaver)
# don't exist on macOS, which has no session bus — so this is an opt-in
# extra rather than a base dep. ``__main__`` probes the import and wires
# ``None`` when absent; the daemon then serves without D-Bus/MPRIS.
"dbus-fast>=5",
]
dev = [
"websockets>=13",
"pytest>=8",
"pytest-asyncio>=0.23", # Step 1 of the verification ladder (`just test-all`). Declared so the # typecheck is reproducible from a fresh `just setup` on either platform
# rather than depending on an ad-hoc global install.
"pyright>=1.1.400",
]
macos = [
# Quartz covers input injection and CGWindowList window enumeration;
# Cocoa + ApplicationServices activate and raise AX windows.
"pyobjc-framework-Quartz>=10.0",
"pyobjc-framework-Cocoa>=10.0",
"pyobjc-framework-ApplicationServices>=10.0",
]
packaging = [
# PyInstaller freezes the daemon + client into the self-contained
# deckd.app bundle (issue #165). macOS-only in practice, but installing
# it elsewhere is harmless; the build recipes refuse to run off-mac.
"pyinstaller>=6.0",
]
uinput = [
# x86_64 gets the prebuilt evdev-binary wheel. Other arches (notably
# aarch64) have no evdev-binary wheel, so fall back to the sdist `evdev`,
# which builds from source -- needs a C compiler + kernel headers. On a
# stock distro `pip install .[uinput]` handles that; on Nix/flox use
# scripts/install_evdev_source.sh (it locates and passes the header paths).
"evdev-binary>=1.9; platform_machine == 'x86_64'",
"evdev>=1.9; platform_machine != 'x86_64'",
]
[project.scripts]
deckctl = "deckd.cli:main"
deckd = "deckd.__main__:main"
deckd-dev = "deckd.dev:main"
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=68", "wheel"]
[tool.setuptools.packages.find]
include = ["deckd*"]
where = ["daemon"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.pyright]
# Point pyright at the project venv so `pyright daemon` resolves
# third-party imports (aiohttp, dbus_fast, pydantic, etc.) regardless
# of how it's invoked — bare `pyright`, `.venv/bin/pyright`, or via
# `just test-all`. Without this, pyright falls back to stdlib-only
# and every import is a false-positive error.
#
# This names the plain-`uv venv` layout. A flox checkout has no ./.venv
# (flox owns the env under $FLOX_ENV_CACHE/python, and `just setup` skips
# venv creation there) — pyright then falls back to the interpreter
# `just test-all` passes via `--pythonpath "$(command -v python)"`.
# NOTE: an *existing but empty* ./.venv wins over --pythonpath and makes
# every third-party import unresolvable, which is why setup must not
# leave one behind.
venv = ".venv"
venvPath = "."
# Type-check against the declared floor (requires-python >=3.11)
pythonVersion = "3.11"