1
0

8 Commits

Author SHA256 Message Date
13ca58a0b9 Accepting request 1322605 from devel:languages:python
- Update to 3.1.2:
  * Fix pickling of abstract base classes containing type annotations
    for Python 3.14. (PR#578)
- Remove upstreamed patch support-python-314.patch

OBS-URL: https://build.opensuse.org/request/show/1322605
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cloudpickle?expand=0&rev=28
2025-12-16 14:49:37 +00:00
c5c6485afc - Update to 3.1.2:
* Fix pickling of abstract base classes containing type annotations
    for Python 3.14. (PR#578)
- Remove upstreamed patch support-python-314.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudpickle?expand=0&rev=64
2025-12-12 12:04:11 +00:00
c56c4428a4 Accepting request 1307024 from devel:languages:python
- Add patch support-python-314.patch:
  * Fix a test to pass under Python 3.14.

OBS-URL: https://build.opensuse.org/request/show/1307024
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cloudpickle?expand=0&rev=27
2025-09-26 20:24:09 +00:00
5798b814a9 - Add patch support-python-314.patch:
* Fix a test to pass under Python 3.14.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudpickle?expand=0&rev=62
2025-09-25 05:17:05 +00:00
fe50248c68 Accepting request 1239864 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1239864
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cloudpickle?expand=0&rev=26
2025-01-24 12:38:51 +00:00
72dc3539dc - Update to 3.1.1
* Various fixes to support for Python 3.14. (PR #545)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudpickle?expand=0&rev=60
2025-01-23 12:56:24 +00:00
e8d3894824 Accepting request 1226826 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1226826
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cloudpickle?expand=0&rev=25
2024-11-27 21:10:38 +00:00
70dc196ad9 - 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/package/show/devel:languages:python/python-cloudpickle?expand=0&rev=58
2024-11-27 09:06:08 +00:00
5 changed files with 36 additions and 25 deletions

View File

@@ -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()

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7acae4307459d436eee740eea52ec9056f37b8b907d6aef7b0a97a1ccff90ff9
size 64055

View File

@@ -1,3 +1,34 @@
-------------------------------------------------------------------
Fri Dec 12 11:59:47 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Update to 3.1.2:
* Fix pickling of abstract base classes containing type annotations
for Python 3.14. (PR#578)
- Remove upstreamed patch support-python-314.patch
-------------------------------------------------------------------
Thu Sep 25 05:14:58 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-python-314.patch:
* Fix a test to pass under Python 3.14.
-------------------------------------------------------------------
Thu Jan 23 11:08:09 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.1.1
* Various fixes to support for Python 3.14. (PR #545)
-------------------------------------------------------------------
Wed Nov 27 08:42:54 UTC 2024 - Ben Greiner <code@bnavigator.de>
- 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 <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cloudpickle
#
# Copyright (c) 2024 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
@@ -18,14 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-cloudpickle
Version: 3.0.0
Version: 3.1.2
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}