diff mbox series

[meta-python,7/9] python3-pystemd: Upgrade 0.15.3 -> 0.16.0

Message ID 20261203075150.3403376-8-khem.raj@oss.qualcomm.com
State New
Headers show
Series Recipe upgrades and dependency fixes for meta-python | expand

Commit Message

Khem Raj Dec. 3, 2026, 7:51 a.m. UTC
Behaviour changes:
- DbusMessage.get_path()/get_interface()/get_member()/get_destination()/
  get_sender() return None for a missing header field (they used to
  crash the interpreter); get_interface() no longer returns the path.
- Using a closed DBus raises DBusError instead of corrupting memory;
  sd-bus errors while building a message and unbalanced '(' in
  signatures now raise.
- DBus.match_signal no longer sets a metadata attribute on the callback
  and keeps the callback alive.

Fixes and features:
- Fix pystemd.run(wait=True/wait_for_activation=True) hanging forever,
  and missing unit state changes with several queued signals.
- Fix pystemd.futures on Python 3.14+ (no fork start method), with
  User= on systemd >= 255, and leaking units/namespace fds.
- Fix Unit.SetProperties raising NotImplementedError and
  Manager.StartTransientUnit/SetUnitProperties shifting their arguments
  when called on the object.
- Fix leaked D-Bus messages, errors and file descriptors on failed
  calls; buses are freed when garbage collected.
- Add fd store helpers (daemon.notify(fds=), listen_fds_with_names,
  store_fd(s)), delegate= for pystemd.run, utils.ns.join_namespaces
  and many unit properties to KNOWN_UNIT_SIGNATURES.
- Ship py.typed with stubs updated to systemd 259, and a PyInstaller
  hook.

The build no longer requires wheel (setuptools >= 70.1), so drop
python3-wheel-native from DEPENDS. Add python3-psutil to RDEPENDS: it is
in install_requires and imported by pystemd.futures, but was missing.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../{python3-pystemd_0.15.3.bb => python3-pystemd_0.16.0.bb} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-pystemd_0.15.3.bb => python3-pystemd_0.16.0.bb} (79%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pystemd_0.15.3.bb b/meta-python/recipes-devtools/python/python3-pystemd_0.16.0.bb
similarity index 79%
rename from meta-python/recipes-devtools/python/python3-pystemd_0.15.3.bb
rename to meta-python/recipes-devtools/python/python3-pystemd_0.16.0.bb
index 9aec45aeeb..e8abba884f 100644
--- a/meta-python/recipes-devtools/python/python3-pystemd_0.15.3.bb
+++ b/meta-python/recipes-devtools/python/python3-pystemd_0.16.0.bb
@@ -2,12 +2,13 @@  SUMMARY = "Python bindings for interacting with systemd over DBus"
 LICENSE = "LGPL-2.1-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c"
 
-SRC_URI[sha256sum] = "3533f6d287a1ffe39dbfffcf2f547454bb8ef7a169ac6a24e81f446ddb258802"
+SRC_URI[sha256sum] = "35309ed1935edb00e0e9aa1c38553fac7c0126eeb36cecd8179b6d837d7cf1b3"
 
-DEPENDS = "python3-wheel-native systemd"
+DEPENDS = "systemd"
 RDEPENDS:${PN} += "\
     python3-xml \
     python3-lxml \
+    python3-psutil \
     python3-pprint \
     python3-core \
     python3-shell \