Skip to content

Commit 1c99868

Browse files
authored
pyproject.toml: Make python-xlib and pywayland deps optional (slgobinath#779)
Follow-up to 44e3e93
1 parent 65c39ea commit 1c99868

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ jobs:
3333
- run: |
3434
sudo apt-get update
3535
sudo apt-get install -y libwayland-dev libcairo2-dev libgirepository-2.0-dev
36-
- run: uv pip install -r pyproject.toml
36+
- run: uv pip install -r pyproject.toml --extra wayland --extra x11
3737
- run: uv pip install --group types
3838
- run: mypy safeeyes

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ classifiers = [
2121
"Topic :: Utilities",
2222
]
2323
dependencies = [
24-
"pywayland",
2524
"PyGObject",
2625
"babel",
2726
"packaging",
28-
"python-xlib",
2927
]
3028
requires-python = ">=3.10"
3129

@@ -38,6 +36,8 @@ safeeyes = "safeeyes.__main__:main"
3836

3937
[project.optional-dependencies]
4038
healthstats = ["croniter"]
39+
wayland = ["pywayland"]
40+
x11 = ["python-xlib"]
4141

4242
[build-system]
4343
requires = ["setuptools"]

0 commit comments

Comments
 (0)