Skip to content

Commit 46d88a2

Browse files
committed
optional dependencies on PyQt5 and PyQt6
1 parent 05243fd commit 46d88a2

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,25 @@ mkdocs = "^1.5.3"
2929
mkdocs-material = "^9.2.0"
3030
qgis-stubs = "^0.2.0.post1"
3131

32+
# Qt runtime bindings — only needed on Windows where QGIS does not ship them
33+
# system-wide. Optional groups: install exactly one with
34+
# poetry install --with qt5 (when targeting QGIS 3.x)
35+
# poetry install --with qt6 (when targeting QGIS 4.x)
36+
[tool.poetry.group.qt5]
37+
optional = true
38+
39+
[tool.poetry.group.qt5.dependencies]
40+
PyQt5 = {version = "5.15.6", platform = "win32"}
41+
PyQt5-Qt5 = {version = "5.15.2", platform = "win32"}
42+
PyQt5-stubs = "^5.15.6.0"
43+
44+
[tool.poetry.group.qt6]
45+
optional = true
46+
47+
[tool.poetry.group.qt6.dependencies]
48+
PyQt6 = {version = "^6.7", platform = "win32"}
49+
PyQt6-Qt6 = {version = "^6.7", platform = "win32"}
50+
3251
[tool.pytest.ini_options]
3352
addopts = "--verbose --exitfirst"
3453

0 commit comments

Comments
 (0)