diff --git a/dill-0.4.0.tar.gz b/dill-0.4.0.tar.gz deleted file mode 100644 index d84a3fc..0000000 --- a/dill-0.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac4fe8071bf2859cc02b6ca8ed75d2727b24b564de09f37b59d666bafd7848a7 -size 180077 diff --git a/dill-0.4.1.tar.gz b/dill-0.4.1.tar.gz new file mode 100644 index 0000000..5cd74ec --- /dev/null +++ b/dill-0.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6fc954a2b757aaf7a38cf41e7feddcf5109230bc72888e51df1fb7d799946ef5 +size 180239 diff --git a/fix-contextvars.patch b/fix-contextvars.patch deleted file mode 100644 index cba62c2..0000000 --- a/fix-contextvars.patch +++ /dev/null @@ -1,36 +0,0 @@ -From a84c1a6baf4ba3f8d119da7166a6624ace6b8fc0 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= -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 diff --git a/python-dill.changes b/python-dill.changes index 8f80c4a..701b200 100644 --- a/python-dill.changes +++ b/python-dill.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Jan 20 01:52:03 UTC 2026 - Steve Kowalik + +- Update to 0.4.1: + * drop formal support for python 3.8 + * use get_file_type to open _pyio file types + * update rtfd to 3.12 and docs requirements + * formal support for 3.14; init support for 3.15 + * dict and weakref descriptors are singletons in 3.15 + * sync with rtd 15.4.1 + * ensure valid class qualname in getsource + * avoid numpy segfault for 3.15.0a3 + * update copyright for 2026, urllib3 to 2.6.0 +- Drop patch fix-contextvars.patch, merged upstream. + ------------------------------------------------------------------- Fri Nov 14 10:48:35 UTC 2025 - Marius Grossu diff --git a/python-dill.spec b/python-dill.spec index 517f631..834d147 100644 --- a/python-dill.spec +++ b/python-dill.spec @@ -1,7 +1,7 @@ # # spec file for package python-dill # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 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 @@ -23,16 +23,14 @@ %endif %{?sle15_python_module_pythons} Name: python-dill -Version: 0.4.0 +Version: 0.4.1 Release: 0 Summary: Module to serialize all of Python 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 devel >= 3.9} BuildRequires: %{python_module objgraph >= 1.7.2} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools}