Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-jsonpickle for 
openSUSE:Factory checked in at 2026-07-20 09:59:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonpickle (Old)
 and      /work/SRC/openSUSE:Factory/.python-jsonpickle.new.24530 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jsonpickle"

Mon Jul 20 09:59:21 2026 rev:24 rq:1366631 version:4.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsonpickle/python-jsonpickle.changes      
2025-12-20 21:47:27.481585295 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-jsonpickle.new.24530/python-jsonpickle.changes
   2026-07-20 10:01:32.092561855 +0200
@@ -1,0 +2,14 @@
+Mon Jul 20 03:03:20 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch increase-warning-counts.patch:
+  * Don't trip over newly added deprecation warnings in the testsuite.
+
+-------------------------------------------------------------------
+Sun Jun 14 15:38:26 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 4.1.2:
+  * Add deprecation warnings for the pending removal of the safe,
+    numeric_keys, and use_decimal arguments, as well as the
+    pending change of keys parameter to default to True. (+600)
+
+-------------------------------------------------------------------

Old:
----
  jsonpickle-4.1.1.tar.gz

New:
----
  increase-warning-counts.patch
  jsonpickle-4.1.2.tar.gz

----------(New B)----------
  New:
- Add patch increase-warning-counts.patch:
  * Don't trip over newly added deprecation warnings in the testsuite.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-jsonpickle.spec ++++++
--- /var/tmp/diff_new_pack.wY3ASH/_old  2026-07-20 10:01:32.624579759 +0200
+++ /var/tmp/diff_new_pack.wY3ASH/_new  2026-07-20 10:01:32.628579893 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-jsonpickle
 #
-# 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
@@ -18,24 +18,22 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-jsonpickle
-Version:        4.1.1
+Version:        4.1.2
 Release:        0
 Summary:        Python library for serializing any arbitrary object graph into 
JSON
 License:        BSD-3-Clause
 URL:            https://github.com/jsonpickle/jsonpickle
 Source:         
https://files.pythonhosted.org/packages/source/j/jsonpickle/jsonpickle-%{version}.tar.gz
 Patch1:         enable_gmpy_test.patch
-BuildRequires:  %{python_module base >= 3.7}
-BuildRequires:  %{python_module importlib_metadata if %python-base < 3.8}
+# PATCH-FIX-OPENSUSE Increase warning counts for new warnings added with 
4.1.2, remove with 5.0.0
+Patch2:         increase-warning-counts.patch
+BuildRequires:  %{python_module base >= 3.8}
 BuildRequires:  %{python_module pip}
-BuildRequires:  %{python_module setuptools >= 42}
-BuildRequires:  %{python_module setuptools_scm >= 3.4.1}
+BuildRequires:  %{python_module setuptools >= 61.2}
+BuildRequires:  %{python_module setuptools_scm >= 6.0}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-%if %python_version_nodots < 38
-Requires:       python-importlib_metadata
-%endif
 BuildArch:      noarch
 # SECTION test requirements
 %if 0%{?suse_version} <= 1600

++++++ enable_gmpy_test.patch ++++++
--- /var/tmp/diff_new_pack.wY3ASH/_old  2026-07-20 10:01:32.656580836 +0200
+++ /var/tmp/diff_new_pack.wY3ASH/_new  2026-07-20 10:01:32.660580970 +0200
@@ -1,8 +1,8 @@
-Index: jsonpickle-3.0.2/tests/ecdsa_test.py
+Index: jsonpickle-4.1.2/tests/ecdsa_test.py
 ===================================================================
---- jsonpickle-3.0.2.orig/tests/ecdsa_test.py
-+++ jsonpickle-3.0.2/tests/ecdsa_test.py
-@@ -7,6 +7,7 @@ import pytest
+--- jsonpickle-4.1.2.orig/tests/ecdsa_test.py
++++ jsonpickle-4.1.2/tests/ecdsa_test.py
+@@ -4,6 +4,7 @@ import pytest
  from helper import SkippableTest
  
  import jsonpickle

++++++ increase-warning-counts.patch ++++++
Index: jsonpickle-4.1.2/tests/jsonpickle_test.py
===================================================================
--- jsonpickle-4.1.2.orig/tests/jsonpickle_test.py
+++ jsonpickle-4.1.2/tests/jsonpickle_test.py
@@ -719,7 +719,7 @@ def test_warnings():
     data = os.fdopen(os.pipe()[0])
     with warnings.catch_warnings(record=True) as w:
         jsonpickle.encode(data, warn=True)
-        assert len(w) == 1
+        assert len(w) == 2
         assert issubclass(w[-1].category, UserWarning)
         assert "replaced with None" in str(w[-1].message)
 
Index: jsonpickle-4.1.2/tests/numpy_test.py
===================================================================
--- jsonpickle-4.1.2.orig/tests/numpy_test.py
+++ jsonpickle-4.1.2/tests/numpy_test.py
@@ -191,7 +191,7 @@ def test_weird_arrays():
     a.strides = 1
 
     # this is kinda fishy; a has overlapping memory, _a does not
-    warn_count = 1
+    warn_count = 3
     with warnings.catch_warnings(record=True) as w:
         _a = roundtrip(a)
         assert len(w) == warn_count
@@ -242,7 +242,7 @@ def test_transpose():
     b = a[1:, 1:]
     assert b.base is a
 
-    warn_count = 1
+    warn_count = 3
     with warnings.catch_warnings(record=True) as w:
         _a, _b = roundtrip([a, b])
         assert len(w) == warn_count
@@ -261,7 +261,7 @@ def test_buffer():
     """test behavior with memoryviews which are not ndarrays"""
     bstring = b'abcdefgh'
     a = np.frombuffer(bstring, dtype=np.byte)
-    warn_count = 1
+    warn_count = 3
     with warnings.catch_warnings(record=True) as w:
         _a = roundtrip(a)
         npt.assert_array_equal(a, _a)
@@ -275,7 +275,7 @@ def test_as_strided():
     is not an ndarray.
 
     """
-    warn_count = 1
+    warn_count = 3
     a = np.arange(10)
     b = np.lib.stride_tricks.as_strided(a, shape=(5,), 
strides=(a.dtype.itemsize * 2,))
     data = [a, b]

++++++ jsonpickle-4.1.1.tar.gz -> jsonpickle-4.1.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpickle-4.1.1/.pre-commit-config.yaml 
new/jsonpickle-4.1.2/.pre-commit-config.yaml
--- old/jsonpickle-4.1.1/.pre-commit-config.yaml        2023-03-26 
10:31:27.000000000 +0200
+++ new/jsonpickle-4.1.2/.pre-commit-config.yaml        2026-05-28 
05:38:15.000000000 +0200
@@ -5,6 +5,6 @@
   - id: black
 
 - repo: https://github.com/asottile/blacken-docs
-  rev: v1.4.0
+  rev: v1.12.1
   hooks:
   - id: blacken-docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpickle-4.1.1/CHANGES.rst 
new/jsonpickle-4.1.2/CHANGES.rst
--- old/jsonpickle-4.1.1/CHANGES.rst    2025-06-02 22:31:13.000000000 +0200
+++ new/jsonpickle-4.1.2/CHANGES.rst    2026-05-28 05:38:15.000000000 +0200
@@ -4,6 +4,12 @@
       You can re-enable yaml support using ``jsonpickle.ext.yaml.register()``.
       (#550) (+551)
 
+v4.1.2
+======
+    * Add deprecation warnings for the pending removal of the ``safe``, 
``numeric_keys``, and
+      ``use_decimal`` arguments, as well as the pending change of ``keys`` 
parameter to default
+      to ``True``. (+600)
+
 v4.1.1
 ======
     * Maintenance release to omit upcoming breaking changes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpickle-4.1.1/PKG-INFO 
new/jsonpickle-4.1.2/PKG-INFO
--- old/jsonpickle-4.1.1/PKG-INFO       2025-06-02 22:34:58.393395000 +0200
+++ new/jsonpickle-4.1.2/PKG-INFO       2026-05-28 05:49:28.894694000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: jsonpickle
-Version: 4.1.1
+Version: 4.1.2
 Summary: jsonpickle encodes/decodes any Python object to/from JSON
 Author: Theelx
 Author-email: David Aguilar <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpickle-4.1.1/jsonpickle/pickler.py 
new/jsonpickle-4.1.2/jsonpickle/pickler.py
--- old/jsonpickle-4.1.1/jsonpickle/pickler.py  2025-06-02 22:17:30.000000000 
+0200
+++ new/jsonpickle-4.1.2/jsonpickle/pickler.py  2026-05-28 05:38:15.000000000 
+0200
@@ -145,6 +145,26 @@
     '{"foo": "[1, 2, [3, 4]]"}'
 
     """
+    # use stacklevel=2 to only warn on top-level user calls
+    if context is None:
+        if not keys:
+            warnings.warn(
+                "keys will default to True in jsonpickle 5.0.0",
+                DeprecationWarning,
+                stacklevel=2,
+            )
+        if numeric_keys:
+            warnings.warn(
+                "numeric_keys is deprecated, use keys=True (will remove in 
5.0.0)",
+                DeprecationWarning,
+                stacklevel=2,
+            )
+        if use_decimal:
+            warnings.warn(
+                "use_decimal is deprecated and will be removed in jsonpickle 
5.0.0",
+                DeprecationWarning,
+                stacklevel=2,
+            )
     backend = backend or json
     context = context or Pickler(
         unpicklable=unpicklable,
@@ -840,9 +860,9 @@
             if not self.unpicklable:
                 return self._list_recurse
             return lambda obj: {
-                tags.TUPLE if type(obj) is tuple else tags.SET: [
-                    self._flatten(v) for v in obj
-                ]
+                tags.TUPLE
+                if type(obj) is tuple
+                else tags.SET: [self._flatten(v) for v in obj]
             }
 
         elif util.is_module_function(obj):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpickle-4.1.1/jsonpickle/unpickler.py 
new/jsonpickle-4.1.2/jsonpickle/unpickler.py
--- old/jsonpickle-4.1.1/jsonpickle/unpickler.py        2025-06-02 
22:17:30.000000000 +0200
+++ new/jsonpickle-4.1.2/jsonpickle/unpickler.py        2026-05-28 
05:38:15.000000000 +0200
@@ -83,6 +83,20 @@
     36
     """
 
+    # use stacklevel=2 to only warn on top-level user calls
+    if context is None:
+        if not keys:
+            warnings.warn(
+                "keys will default to True in jsonpickle 5.0.0",
+                DeprecationWarning,
+                stacklevel=2,
+            )
+        if not safe:
+            warnings.warn(
+                "safe=False is deprecated and will be removed in jsonpickle 
5.0.0",
+                DeprecationWarning,
+                stacklevel=2,
+            )
     if isinstance(on_missing, str):
         on_missing = on_missing.lower()
     elif not util.is_function(on_missing):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonpickle-4.1.1/jsonpickle.egg-info/PKG-INFO 
new/jsonpickle-4.1.2/jsonpickle.egg-info/PKG-INFO
--- old/jsonpickle-4.1.1/jsonpickle.egg-info/PKG-INFO   2025-06-02 
22:34:58.000000000 +0200
+++ new/jsonpickle-4.1.2/jsonpickle.egg-info/PKG-INFO   2026-05-28 
05:49:28.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: jsonpickle
-Version: 4.1.1
+Version: 4.1.2
 Summary: jsonpickle encodes/decodes any Python object to/from JSON
 Author: Theelx
 Author-email: David Aguilar <[email protected]>

Reply via email to