Age | Commit message (Collapse) | Author | Files | Lines |
|
Add support for argNpath in add_signal_receiver
See merge request dbus/dbus-python!24
|
|
Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
|
|
Match messages whose n´th argument equals the given value or match in a
path-like manner.
Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
After abuses of fdo infrastructure were mitigated in
freedesktop/freedesktop#540, contributors cannot usually run pipelines
in their own forks of dbus-python.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Criteria for inclusion: they're in Debian, and they seem to be actively
maintained (which rules out pydbus). No endorsement intended: GDBus via
PyGI is the only one of these that I have actually tried.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Add support for arg0namespace in add_signal_receiver
See merge request dbus/dbus-python!27
|
|
Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
|
|
Match messages whose first argument is a string and start with the
value given to arg0namespace. This is primarily intended for watching
name owner changes for a group of related bus names, rather than for
a single name or all name changes.
Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
|
|
python3.10 was removed from Debian bookworm before it was released as
Debian 12.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Fix typo in class name for dbus.service.Object in example code.
See merge request dbus/dbus-python!25
|
|
|
|
Current Debian Docker images use a reliable CDN, and images for newer
suites like bookworm have started using /etc/apt/sources.list.d/ instead
of the old-style /etc/apt/sources.list, making this step fail.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Set no_reply flag in call_async when reply_handler is None
See merge request dbus/dbus-python!22
|
|
If we do an async call with no handler, it doesn't matter whether the
implementation replies with a result or an error, because either way
we will ignore it. Normally, the method implementation is expected to
reply to all method calls, but with the NO_REPLY flag set, it can
optimize by not sending a reply at all, which also means the message
bus does not have to keep track of pending replies.
Co-authored-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
This avoids git complaining that the git repo's ownership was changed.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
This was only useful on Travis-CI.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
This is no longer transitively Essential in Debian 12.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
twine requires at least PKG-INFO, and if we're generating that, we
might as well have everything.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
These have not been used since commit e443d3b5 "Use AX_IS_RELEASE with
the micro-version policy".
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Reproduces: https://github.com/firewalld/firewalld/issues/985
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
File descriptors are represented as the C int type, but only non-negative
values represent a valid fd, with all negative values representing the
absence of a fd (a NULL-like value).
Previously, make_fd() accepted negative fds, but then UnixFd_tp_new
would crash with an assertion failure. Instead, range-check the value
according to the semantically valid range. If it isn't, raise the same
error we previously raised for values that don't fit in an int.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
In the D-Bus wire protocol, the representation of a Unix fd is a simple
integer in the message body (referred to as the "handle" in GDBus)
which acts as an index into the array of out-of-band fds attached to
the message. The libdbus API (and therefore the dbus-python API)
automatically translates handles into fds, but the GDBus API does not,
making it possible for a GDBus sender to send a message containing
handles that are out-of-range for the number of attached fds. The
message bus also does not prevent such messages from being sent.
dbus-python services need to cope with this and fail gracefully while
unpacking the message, rather than crashing with an assertion failure
in UnixFd_tp_new when the fd turns out to be invalid.
Resolves: https://github.com/firewalld/firewalld/issues/985
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
This seems to be obsolete when using PEP 517.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
This requires mostly dropping support for Python 3.5 and 3.6, both of
which are EOL anyway.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
Signed-off-by: Simon McVittie <smcv@collabora.com>
|