Skip to content

Commit 9a38d85

Browse files
authored
Fix wakepy install on linux (needs jeepney for dbus) (#189)
* make jeepney a required dependency * remove wakepy[dbus] install option
1 parent 11718bb commit 9a38d85

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

pyproject.toml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ description = "wakelock / keep-awake / stay-awake"
55
authors = [
66
{name = "Niko Föhr", email = "[email protected]"},
77
]
8-
9-
# wakepy does not have any required python dependencies
10-
# For using dbus-based methods, install a supported dbus package or `dbus`
11-
# extras; pip install wakepy[dbus]
12-
dependencies = []
8+
dependencies = [
9+
# For using the D-Bus based methods
10+
"jeepney >= 0.7.1;sys_platform=='linux'"
11+
]
1312

1413
# Python 3.7 introduces from __future__ import annotations
1514
requires-python = ">=3.7"
@@ -53,11 +52,6 @@ dev = [
5352
# Jeepney is used in the integration tests for creating a D-Bus server
5453
"jeepney >= 0.7.1;sys_platform=='linux'"
5554
]
56-
dbus = [
57-
# Install this with `pip install wakepy[dbus]` if you wnat to use the
58-
# D-Bus based methods
59-
"jeepney >= 0.7.1;sys_platform=='linux'"
60-
]
6155

6256
[project.urls]
6357
Homepage = "https://github.com/fohrloop/wakepy"

wakepy/core/method.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def process_dbus_call(self, call: DbusMethodCall) -> Any:
239239
if self._dbus_adapter is None:
240240
raise RuntimeError(
241241
f'{self.__class__.__name__ }cannot process dbus method call "{call}" as'
242-
"it does not have a DbusAdapter."
242+
" it does not have a DbusAdapter."
243243
)
244244
return self._dbus_adapter.process(call)
245245

0 commit comments

Comments
 (0)