From 96aaae70e9f80b7ea61710ba6f1a27a0c6950a3f6d87a5fd0ad56b2f9fcdcd25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 27 Nov 2024 09:06:08 +0000 Subject: [PATCH] Accepting request 1226818 from home:bnavigator:branches:devel:languages:python:numeric - Update to 3.1.0 * Some improvements to make cloudpickle more deterministic when pickling dynamic functions and classes, in particular with CPython 3.13. (PR #524 and PR #534) * Fix a problem with the joint usage of cloudpickle's _whichmodule and multiprocessing. (PR #529) - Drop Fix-test_extract_class_dict-for-Python-313.patch OBS-URL: https://build.opensuse.org/request/show/1226818 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudpickle?expand=0&rev=58 --- ...est_extract_class_dict-for-Python-313.patch | 18 ------------------ cloudpickle-3.0.0-gh.tar.gz | 3 --- cloudpickle-3.1.0-gh.tar.gz | 3 +++ python-cloudpickle.changes | 11 +++++++++++ python-cloudpickle.spec | 4 +--- 5 files changed, 15 insertions(+), 24 deletions(-) delete mode 100644 Fix-test_extract_class_dict-for-Python-313.patch delete mode 100644 cloudpickle-3.0.0-gh.tar.gz create mode 100644 cloudpickle-3.1.0-gh.tar.gz diff --git a/Fix-test_extract_class_dict-for-Python-313.patch b/Fix-test_extract_class_dict-for-Python-313.patch deleted file mode 100644 index 3f7684d..0000000 --- a/Fix-test_extract_class_dict-for-Python-313.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff --git a/tests/cloudpickle_test.py b/tests/cloudpickle_test.py -index 5aa4bac..af5ef3e 100644 ---- a/tests/cloudpickle_test.py -+++ b/tests/cloudpickle_test.py -@@ -110,7 +110,12 @@ def test_extract_class_dict(): - return "c" - - clsdict = _extract_class_dict(C) -- assert sorted(clsdict.keys()) == ["C_CONSTANT", "__doc__", "method_c"] -+ expected_keys = ["C_CONSTANT", "__doc__", "method_c"] -+ # New attribute in Python 3.13 beta 1 -+ # https://github.com/python/cpython/pull/118475 -+ if sys.version_info >= (3, 13): -+ expected_keys.insert(2, "__firstlineno__") -+ assert sorted(clsdict.keys()) == expected_keys - assert clsdict["C_CONSTANT"] == 43 - assert clsdict["__doc__"] is None - assert clsdict["method_c"](C()) == C().method_c() diff --git a/cloudpickle-3.0.0-gh.tar.gz b/cloudpickle-3.0.0-gh.tar.gz deleted file mode 100644 index f3ced68..0000000 --- a/cloudpickle-3.0.0-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:49cc8581ce305630b1e179bc083069b21b45db4731e5e3f2ea6fc40b131e1c55 -size 59519 diff --git a/cloudpickle-3.1.0-gh.tar.gz b/cloudpickle-3.1.0-gh.tar.gz new file mode 100644 index 0000000..09e3ede --- /dev/null +++ b/cloudpickle-3.1.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a6cf611c6cc12b93dcafe0d539da7c5e3d7aac52b041a452980fdf3b8753946 +size 62638 diff --git a/python-cloudpickle.changes b/python-cloudpickle.changes index 015f8e2..1684d9b 100644 --- a/python-cloudpickle.changes +++ b/python-cloudpickle.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Nov 27 08:42:54 UTC 2024 - Ben Greiner + +- Update to 3.1.0 + * Some improvements to make cloudpickle more deterministic when + pickling dynamic functions and classes, in particular with + CPython 3.13. (PR #524 and PR #534) + * Fix a problem with the joint usage of cloudpickle's + _whichmodule and multiprocessing. (PR #529) +- Drop Fix-test_extract_class_dict-for-Python-313.patch + ------------------------------------------------------------------- Mon Sep 9 09:43:13 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-cloudpickle.spec b/python-cloudpickle.spec index fa4dc1c..a1b4fb7 100644 --- a/python-cloudpickle.spec +++ b/python-cloudpickle.spec @@ -18,14 +18,12 @@ %{?sle15_python_module_pythons} Name: python-cloudpickle -Version: 3.0.0 +Version: 3.1.0 Release: 0 Summary: Extended pickling support for Python objects License: BSD-3-Clause URL: https://github.com/cloudpipe/cloudpickle Source: https://github.com/cloudpipe/cloudpickle/archive/refs/tags/v{%version}.tar.gz#/cloudpickle-%{version}-gh.tar.gz -# PATCH-FIX-UPSTREAM gh/cloudpipe/cloudpickle#534 - Fix test_extract_class_dict for Python 3.13 beta 1 -Patch: Fix-test_extract_class_dict-for-Python-313.patch BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module flit-core} BuildRequires: %{python_module pip}