Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-flask-restplus for
openSUSE:Factory checked in at 2022-01-13 23:20:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flask-restplus (Old)
and /work/SRC/openSUSE:Factory/.python-flask-restplus.new.1892 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flask-restplus"
Thu Jan 13 23:20:55 2022 rev:7 rq:946007 version:0.13.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-flask-restplus/python-flask-restplus.changes
2021-08-16 10:17:59.350622812 +0200
+++
/work/SRC/openSUSE:Factory/.python-flask-restplus.new.1892/python-flask-restplus.changes
2022-01-13 23:21:33.140051835 +0100
@@ -1,0 +2,6 @@
+Thu Jan 13 08:32:42 UTC 2022 - Fusion Future <[email protected]>
+
+- Import Mappnig and MutableMapping from collections.abc (bpo#37324)
+ * 004-Import-from-collections-abc.patch
+
+-------------------------------------------------------------------
New:
----
004-Import-from-collections-abc.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-flask-restplus.spec ++++++
--- /var/tmp/diff_new_pack.FjaK6L/_old 2022-01-13 23:21:33.712052210 +0100
+++ /var/tmp/diff_new_pack.FjaK6L/_new 2022-01-13 23:21:33.736052225 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-flask-restplus
#
-# 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
@@ -30,8 +30,10 @@
Patch0: pytest4.patch
Patch1: 001-Fix-content-type-assertion-for-werkzeug-1.0.patch
Patch2: 002-Update-cached_property-import-for-werkzeug-1.0.patch
-# PATCH-FIX-UPSTREAM 003-Import-from-flask-scaffold.patch
https://github.com/pallets/flask/commit/9f7c602a84faa8371be4ece23e4405282d1283d2
+# PATCH-FIX-UPSTREAM 003-Import-from-flask-scaffold.patch
_endpoint_from_view_func moved to flask.scaffold after flask 2.0.0
https://github.com/pallets/flask/commit/9f7c602a84faa8371be4ece23e4405282d1283d2
Patch3: 003-Import-from-flask-scaffold.patch
+# PATCH-FIX-UPSTREAM 004-Import-from-collections-abc.patch collections: remove
deprecated aliases to ABC classes bpo#37324
+Patch4: 004-Import-from-collections-abc.patch
BuildRequires: %{python_module Flask >= 0.8}
BuildRequires: %{python_module aniso8601 >= 0.82}
BuildRequires: %{python_module jsonschema}
@@ -73,11 +75,7 @@
%prep
%setup -q -n flask-restplus-%{version}
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-# _endpoint_from_view_func moved to flask.scaffold after flask 2.0.0
-%patch3 -p1
+%autopatch -p1
%build
%python_build
++++++ 004-Import-from-collections-abc.patch ++++++
Index: flask-restplus-0.13.0/flask_restplus/model.py
===================================================================
--- flask-restplus-0.13.0.orig/flask_restplus/model.py
+++ flask-restplus-0.13.0/flask_restplus/model.py
@@ -5,7 +5,12 @@ import copy
import re
import warnings
-from collections import OrderedDict, MutableMapping
+from collections import OrderedDict
+try:
+ from collections.abc import MutableMapping
+except ImportError:
+ # For Python 2.7
+ from collections import MutableMapping
from six import iteritems, itervalues
from werkzeug.utils import cached_property
Index: flask-restplus-0.13.0/flask_restplus/schemas/__init__.py
===================================================================
--- flask-restplus-0.13.0.orig/flask_restplus/schemas/__init__.py
+++ flask-restplus-0.13.0/flask_restplus/schemas/__init__.py
@@ -11,7 +11,11 @@ import io
import json
import pkg_resources
-from collections import Mapping
+try:
+ from collections.abc import Mapping
+except ImportError:
+ # For Python 2.7
+ from collections import Mapping
from jsonschema import Draft4Validator