fix: make pystray a core dependency on Windows instead of optional extra
Lint & Test / test (push) Successful in 2m5s
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:
@@ -123,7 +123,6 @@ Screen capture from inside a container requires X11 access. Uncomment `network_m
|
|||||||
```bash
|
```bash
|
||||||
pip install ".[perf]" # DXCam, BetterCam, WGC (Windows only)
|
pip install ".[perf]" # DXCam, BetterCam, WGC (Windows only)
|
||||||
pip install ".[notifications]" # OS notification capture
|
pip install ".[notifications]" # OS notification capture
|
||||||
pip install ".[tray]" # System tray icon (Windows only)
|
|
||||||
pip install ".[dev]" # pytest, black, ruff (development)
|
pip install ".[dev]" # pytest, black, ruff (development)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -130,7 +130,7 @@ if ($LASTEXITCODE -ne 0) { throw "Failed to install pip" }
|
|||||||
# ── Install dependencies ──────────────────────────────────────
|
# ── Install dependencies ──────────────────────────────────────
|
||||||
|
|
||||||
Write-Host "[5/8] Installing dependencies..."
|
Write-Host "[5/8] Installing dependencies..."
|
||||||
$extras = "camera,notifications,tray"
|
$extras = "camera,notifications"
|
||||||
if (-not $SkipPerf) { $extras += ",perf" }
|
if (-not $SkipPerf) { $extras += ",perf" }
|
||||||
|
|
||||||
# Install the project (pulls all deps via pyproject.toml), then remove
|
# Install the project (pulls all deps via pyproject.toml), then remove
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ dependencies = [
|
|||||||
"opencv-python-headless>=4.8.0",
|
"opencv-python-headless>=4.8.0",
|
||||||
"websockets>=13.0",
|
"websockets>=13.0",
|
||||||
"just-playback>=0.1.7",
|
"just-playback>=0.1.7",
|
||||||
|
"pystray>=0.19.0; sys_platform == 'win32'",
|
||||||
|
"Pillow>=10.4.0; sys_platform == 'win32'",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
@@ -80,10 +82,6 @@ perf = [
|
|||||||
"bettercam>=1.0.0; sys_platform == 'win32'",
|
"bettercam>=1.0.0; sys_platform == 'win32'",
|
||||||
"windows-capture>=1.5.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]
|
[project.urls]
|
||||||
Homepage = "https://git.dolgolyov-family.by/alexei.dolgolyov/wled-screen-controller-mixed"
|
Homepage = "https://git.dolgolyov-family.by/alexei.dolgolyov/wled-screen-controller-mixed"
|
||||||
|
|||||||
Reference in New Issue
Block a user