Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-dirtyjson for 
openSUSE:Factory checked in at 2022-01-24 23:09:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dirtyjson (Old)
 and      /work/SRC/openSUSE:Factory/.python-dirtyjson.new.1938 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-dirtyjson"

Mon Jan 24 23:09:47 2022 rev:3 rq:948299 version:1.0.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dirtyjson/python-dirtyjson.changes        
2021-05-18 18:27:48.990605089 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-dirtyjson.new.1938/python-dirtyjson.changes  
    2022-01-24 23:10:10.326684933 +0100
@@ -1,0 +2,6 @@
+Mon Jan 24 00:48:06 UTC 2022 - Steve Kowalik <[email protected]>
+
+- Add patch support-python-310.patch:
+  * Support Python 3.10. 
+
+-------------------------------------------------------------------

New:
----
  support-python-310.patch

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

Other differences:
------------------
++++++ python-dirtyjson.spec ++++++
--- /var/tmp/diff_new_pack.QJ04It/_old  2022-01-24 23:10:12.058673096 +0100
+++ /var/tmp/diff_new_pack.QJ04It/_new  2022-01-24 23:10:12.062673068 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-dirtyjson
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/codecobblers/dirtyjson
 Source:         
https://files.pythonhosted.org/packages/source/d/dirtyjson/dirtyjson-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#codecobblers/dirtyjson#6
+Patch0:         support-python-310.patch
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -36,7 +38,7 @@
 JSON decoder for Python that can extract data from dirty input.
 
 %prep
-%setup -q -n dirtyjson-%{version}
+%autosetup -p1 -n dirtyjson-%{version}
 
 %build
 %python_build

++++++ support-python-310.patch ++++++
>From 45d359a9e061f5a2e00d8f38817372a0e39822ae Mon Sep 17 00:00:00 2001
From: Eric Swanson <[email protected]>
Date: Fri, 17 Dec 2021 11:38:13 -0500
Subject: [PATCH] Python 3.10 support

---
 dirtyjson/attributed_containers.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dirtyjson/attributed_containers.py 
b/dirtyjson/attributed_containers.py
index c71e411..147f303 100644
--- a/dirtyjson/attributed_containers.py
+++ b/dirtyjson/attributed_containers.py
@@ -4,7 +4,10 @@
 
 """
 try:
-    from collections import MutableMapping as DictMixin
+    try:
+        from collections.abc import MutableMapping as DictMixin
+    except ImportError:
+        from collections import MutableMapping as DictMixin
     py_level = 3
 except ImportError:
     # noinspection PyUnresolvedReferences,PyCompatibility

Reply via email to