fix: make pystray a core dependency on Windows instead of optional extra
Lint & Test / test (push) Successful in 2m5s

The tray icon should always appear on Windows, not only when installed
with the [tray] extra.
This commit is contained in:
2026-04-02 14:22:18 +03:00
parent 89990f8d63
commit 99460a8043
3 changed files with 3 additions and 6 deletions
-1
View File
@@ -123,7 +123,6 @@ Screen capture from inside a container requires X11 access. Uncomment `network_m
```bash
pip install ".[perf]" # DXCam, BetterCam, WGC (Windows only)
pip install ".[notifications]" # OS notification capture
pip install ".[tray]" # System tray icon (Windows only)
pip install ".[dev]" # pytest, black, ruff (development)
```
+1 -1
View File
@@ -130,7 +130,7 @@ if ($LASTEXITCODE -ne 0) { throw "Failed to install pip" }
# ── Install dependencies ──────────────────────────────────────
Write-Host "[5/8] Installing dependencies..."
$extras = "camera,notifications,tray"
$extras = "camera,notifications"
if (-not $SkipPerf) { $extras += ",perf" }
# Install the project (pulls all deps via pyproject.toml), then remove
+2 -4
View File
@@ -48,6 +48,8 @@ dependencies = [
"opencv-python-headless>=4.8.0",
"websockets>=13.0",
"just-playback>=0.1.7",
"pystray>=0.19.0; sys_platform == 'win32'",
"Pillow>=10.4.0; sys_platform == 'win32'",
]
[project.optional-dependencies]
@@ -80,10 +82,6 @@ perf = [
"bettercam>=1.0.0; sys_platform == 'win32'",
"windows-capture>=1.5.0; sys_platform == 'win32'",
]
tray = [
"pystray>=0.19.0; sys_platform == 'win32'",
"Pillow>=10.4.0; sys_platform == 'win32'",
]
[project.urls]
Homepage = "https://git.dolgolyov-family.by/alexei.dolgolyov/wled-screen-controller-mixed"