Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-dill for openSUSE:Factory checked in at 2025-11-14 16:23:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-dill (Old) and /work/SRC/openSUSE:Factory/.python-dill.new.2061 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dill" Fri Nov 14 16:23:05 2025 rev:20 rq:1317773 version:0.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-dill/python-dill.changes 2025-08-20 13:27:27.997790465 +0200 +++ /work/SRC/openSUSE:Factory/.python-dill.new.2061/python-dill.changes 2025-11-14 16:23:09.518120430 +0100 @@ -1,0 +2,6 @@ +Fri Nov 14 10:48:35 UTC 2025 - Marius Grossu <[email protected]> + +- added a fix-contextvars.patch: + * Pickle _contextvars.Context objects, for threads in Python 3.14+ + +------------------------------------------------------------------- New: ---- fix-contextvars.patch ----------(New B)---------- New: - added a fix-contextvars.patch: * Pickle _contextvars.Context objects, for threads in Python 3.14+ ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-dill.spec ++++++ --- /var/tmp/diff_new_pack.oTimuS/_old 2025-11-14 16:23:13.482286980 +0100 +++ /var/tmp/diff_new_pack.oTimuS/_new 2025-11-14 16:23:13.494287485 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-dill # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,8 @@ License: BSD-3-Clause URL: https://github.com/uqfoundation/dill Source: https://github.com/uqfoundation/dill/archive/refs/tags/%{version}.tar.gz#/dill-%{version}.tar.gz +#PATCH-FIX-UPSTREAM fix-contextvars.patch based on gh#uqfoundation/dill#717 +Patch0: fix-contextvars.patch BuildRequires: %{python_module dbm} BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module objgraph >= 1.7.2} ++++++ fix-contextvars.patch ++++++ >From a84c1a6baf4ba3f8d119da7166a6624ace6b8fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <[email protected]> Date: Thu, 22 May 2025 20:13:40 +0200 Subject: [PATCH] Pickle _contextvars.Context objects, for threads in Python 3.14+ Fixes https://github.com/uqfoundation/dill/issues/716 --- dill/_dill.py | 7 +++++++ 1 file changed, 7 insertions(+) Index: dill-0.4.0/dill/_dill.py =================================================================== --- dill-0.4.0.orig/dill/_dill.py +++ dill-0.4.0/dill/_dill.py @@ -54,6 +54,7 @@ OLD312a7 = (sys.hexversion < 0x30c00a7) import builtins as __builtin__ from pickle import _Pickler as StockPickler, Unpickler as StockUnpickler from pickle import GLOBAL, POP +from _contextvars import Context from _thread import LockType from _thread import RLock as RLockType try: @@ -2119,6 +2120,12 @@ if HAS_CTYPES and hasattr(ctypes, 'pytho else: _testcapsule = None +@register(Context) +def save_context(pickler, obj): + logger.trace(pickler, "Cx: %s", obj) + pickler.save_reduce(Context, tuple(obj.items()), obj=obj) + logger.trace(pickler, "# Cx") + ############################# # A quick fix for issue #500
