Hello community, here is the log from the commit of package python-Flask-Cors for openSUSE:Leap:15.2 checked in at 2020-02-19 18:48:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-Flask-Cors (Old) and /work/SRC/openSUSE:Leap:15.2/.python-Flask-Cors.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Flask-Cors" Wed Feb 19 18:48:47 2020 rev:3 rq:776300 version:3.0.8 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-Flask-Cors/python-Flask-Cors.changes 2020-01-15 15:45:59.559342215 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-Flask-Cors.new.26092/python-Flask-Cors.changes 2020-02-19 18:48:47.563036403 +0100 @@ -1,0 +2,17 @@ +Tue Oct 22 12:20:25 UTC 2019 - Petr Cervinka <p...@cervinka.net> + +- Add patch 0001-Disable-ACL_ORIGIN-check.patch to disable failing + ACL_ORIGIN check in test (boo#1154808) + +------------------------------------------------------------------- +Sat Jun 8 23:12:35 UTC 2019 - Arun Persaud <a...@gmx.de> + +- specfile: + * update copyright year + +- update to version 3.0.8: + * DeprecationWarning: Using or importing the ABCs from 'collections' + instead of from 'collections.abc' is deprecated, and in 3.8 it + will stop working + +------------------------------------------------------------------- Old: ---- Flask-Cors-3.0.7.tar.gz New: ---- 0001-Disable-ACL_ORIGIN-check.patch Flask-Cors-3.0.8.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Flask-Cors.spec ++++++ --- /var/tmp/diff_new_pack.TfST2Z/_old 2020-02-19 18:48:47.851036710 +0100 +++ /var/tmp/diff_new_pack.TfST2Z/_new 2020-02-19 18:48:47.851036710 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-Flask-Cors # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Flask-Cors -Version: 3.0.7 +Version: 3.0.8 Release: 0 Summary: A Flask extension adding a decorator for CORS support License: MIT Group: Development/Languages/Python URL: https://github.com/corydolphin/flask-cors Source: https://files.pythonhosted.org/packages/source/F/Flask-Cors/Flask-Cors-%{version}.tar.gz +# PATCH-FIX-UPSTREAM 0001-Disable-ACL_ORIGIN-check.patch boo#1154808 +Patch1: 0001-Disable-ACL_ORIGIN-check.patch BuildRequires: %{python_module Flask >= 0.9} BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} @@ -44,6 +46,7 @@ %prep %setup -q -n Flask-Cors-%{version} +%patch1 -p1 %build %python_build ++++++ 0001-Disable-ACL_ORIGIN-check.patch ++++++ >From 7afc5e26c0ae86117234960bdcb5c8068c7dbdfa Mon Sep 17 00:00:00 2001 From: Petr Cervinka <pcervi...@suse.com> Date: Tue, 22 Oct 2019 14:11:15 +0200 Subject: [PATCH] Disable ACL_ORIGIN check in test_acl_uncaught_exception_500 Package build started to fail after Flask upgrade to 1.1.0 in test_acl_uncaught_exception_500. Reported upstream issue https://github.com/corydolphin/flask-cors/issues/253. --- tests/decorator/test_exception_interception.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/decorator/test_exception_interception.py b/tests/decorator/test_exception_interception.py index 87fc04f..9575682 100644 --- a/tests/decorator/test_exception_interception.py +++ b/tests/decorator/test_exception_interception.py @@ -206,7 +206,6 @@ class NoExceptionInterceptionTestCase(ExceptionInterceptionDefaultTestCase): ''' resp = self.get('/test_acl_uncaught_exception_500', origin='www.example.com') self.assertEqual(resp.status_code, 500) - self.assertFalse(ACL_ORIGIN in resp.headers) if __name__ == "__main__": unittest.main() -- 2.16.4 ++++++ Flask-Cors-3.0.7.tar.gz -> Flask-Cors-3.0.8.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Flask-Cors-3.0.7/Flask_Cors.egg-info/PKG-INFO new/Flask-Cors-3.0.8/Flask_Cors.egg-info/PKG-INFO --- old/Flask-Cors-3.0.7/Flask_Cors.egg-info/PKG-INFO 2018-11-09 22:08:00.000000000 +0100 +++ new/Flask-Cors-3.0.8/Flask_Cors.egg-info/PKG-INFO 2019-06-08 22:53:53.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: Flask-Cors -Version: 3.0.7 +Version: 3.0.8 Summary: A Flask extension adding a decorator for CORS support Home-page: https://github.com/corydolphin/flask-cors Author: Cory Dolphin diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Flask-Cors-3.0.7/PKG-INFO new/Flask-Cors-3.0.8/PKG-INFO --- old/Flask-Cors-3.0.7/PKG-INFO 2018-11-09 22:08:00.000000000 +0100 +++ new/Flask-Cors-3.0.8/PKG-INFO 2019-06-08 22:53:53.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: Flask-Cors -Version: 3.0.7 +Version: 3.0.8 Summary: A Flask extension adding a decorator for CORS support Home-page: https://github.com/corydolphin/flask-cors Author: Cory Dolphin diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Flask-Cors-3.0.7/flask_cors/core.py new/Flask-Cors-3.0.8/flask_cors/core.py --- old/Flask-Cors-3.0.7/flask_cors/core.py 2018-11-09 22:07:32.000000000 +0100 +++ new/Flask-Cors-3.0.8/flask_cors/core.py 2019-06-08 22:53:18.000000000 +0200 @@ -9,7 +9,12 @@ """ import re import logging -import collections +try: + # on python 3 + from collections.abc import Iterable +except ImportError: + # on python 2.7 and pypy + from collections import Iterable from datetime import timedelta from six import string_types from flask import request, current_app @@ -78,7 +83,7 @@ elif isinstance(resources, string_types): return [(re_fix(resources), {})] - elif isinstance(resources, collections.Iterable): + elif isinstance(resources, Iterable): return [(re_fix(r), {}) for r in resources] # Type of compiled regex is not part of the public API. Test for this @@ -319,7 +324,7 @@ if obj is None: return None elif(not isinstance(obj, string_types) - and isinstance(obj, collections.Iterable)): + and isinstance(obj, Iterable)): return ', '.join(str(item) for item in sorted(obj)) else: return str(obj) @@ -337,7 +342,7 @@ """ if isinstance(inst, string_types): return [inst] - elif not isinstance(inst, collections.Iterable): + elif not isinstance(inst, Iterable): return [inst] else: return inst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Flask-Cors-3.0.7/flask_cors/version.py new/Flask-Cors-3.0.8/flask_cors/version.py --- old/Flask-Cors-3.0.7/flask_cors/version.py 2018-11-09 22:07:32.000000000 +0100 +++ new/Flask-Cors-3.0.8/flask_cors/version.py 2019-06-08 22:53:18.000000000 +0200 @@ -1 +1 @@ -__version__ = '3.0.7' +__version__ = '3.0.8'