Hello community,

here is the log from the commit of package python-Flask-Cors for 
openSUSE:Factory checked in at 2018-11-13 17:00:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Flask-Cors (Old)
 and      /work/SRC/openSUSE:Factory/.python-Flask-Cors.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Flask-Cors"

Tue Nov 13 17:00:09 2018 rev:2 rq:648443 version:3.0.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Flask-Cors/python-Flask-Cors.changes      
2018-07-19 22:57:19.069522680 +0200
+++ /work/SRC/openSUSE:Factory/.python-Flask-Cors.new/python-Flask-Cors.changes 
2018-11-13 17:36:30.792713211 +0100
@@ -1,0 +2,9 @@
+Mon Nov 12 05:59:16 UTC 2018 - Arun Persaud <[email protected]>
+
+- specfile:
+  * be more specific in %files section
+
+- update to version 3.0.7:
+  * Updated logging.warn to logging.warning (#234) Thanks Vaibhav
+
+-------------------------------------------------------------------

Old:
----
  Flask-Cors-3.0.6.tar.gz

New:
----
  Flask-Cors-3.0.7.tar.gz

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

Other differences:
------------------
++++++ python-Flask-Cors.spec ++++++
--- /var/tmp/diff_new_pack.4BbBCV/_old  2018-11-13 17:36:31.312712493 +0100
+++ /var/tmp/diff_new_pack.4BbBCV/_new  2018-11-13 17:36:31.316712487 +0100
@@ -12,13 +12,13 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-Flask-Cors
-Version:        3.0.6
+Version:        3.0.7
 Release:        0
 Summary:        A Flask extension adding a decorator for CORS support
 License:        MIT
@@ -30,12 +30,12 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-Flask >= 0.9
+BuildArch:      noarch
 %if 0%{?suse_version} < 1500
 BuildRequires:  %{python_module six}
 Requires:       python-six
 %endif
-Requires:       python-Flask >= 0.9
-BuildArch:      noarch
 %python_subpackages
 
 %description
@@ -57,6 +57,9 @@
 
 %files %{python_files}
 %license LICENSE
-%{python_sitelib}/*
+%dir %{python_sitelib}/flask_cors
+%{python_sitelib}/flask_cors/*
+%dir %{python_sitelib}/Flask_Cors-%{version}-py*.egg-info
+%{python_sitelib}/Flask_Cors-%{version}-py*.egg-info/*
 
 %changelog

++++++ Flask-Cors-3.0.6.tar.gz -> Flask-Cors-3.0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/Flask_Cors.egg-info/PKG-INFO 
new/Flask-Cors-3.0.7/Flask_Cors.egg-info/PKG-INFO
--- old/Flask-Cors-3.0.6/Flask_Cors.egg-info/PKG-INFO   2018-06-12 
08:25:01.000000000 +0200
+++ new/Flask-Cors-3.0.7/Flask_Cors.egg-info/PKG-INFO   2018-11-09 
22:08:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: Flask-Cors
-Version: 3.0.6
+Version: 3.0.7
 Summary: A Flask extension adding a decorator for CORS support
 Home-page: https://github.com/corydolphin/flask-cors
 Author: Cory Dolphin
@@ -145,9 +145,13 @@
 Classifier: License :: OSI Approved :: MIT License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/PKG-INFO 
new/Flask-Cors-3.0.7/PKG-INFO
--- old/Flask-Cors-3.0.6/PKG-INFO       2018-06-12 08:25:01.000000000 +0200
+++ new/Flask-Cors-3.0.7/PKG-INFO       2018-11-09 22:08:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: Flask-Cors
-Version: 3.0.6
+Version: 3.0.7
 Summary: A Flask extension adding a decorator for CORS support
 Home-page: https://github.com/corydolphin/flask-cors
 Author: Cory Dolphin
@@ -145,9 +145,13 @@
 Classifier: License :: OSI Approved :: MIT License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/examples/app_based_example.py 
new/Flask-Cors-3.0.7/examples/app_based_example.py
--- old/Flask-Cors-3.0.6/examples/app_based_example.py  2018-06-12 
08:24:29.000000000 +0200
+++ new/Flask-Cors-3.0.7/examples/app_based_example.py  2018-11-09 
22:07:32.000000000 +0100
@@ -34,10 +34,10 @@
 
 @app.route("/")
 def helloWorld():
-    '''
+    """
         Since the path '/' does not match the regular expression r'/api/*',
         this route does not have CORS headers set.
-    '''
+    """
     return '''
 <html>
     <h1>Hello CORS!</h1>
@@ -50,7 +50,7 @@
 
 @app.route("/api/v1/users/")
 def list_users():
-    '''
+    """
         Since the path matches the regular expression r'/api/*', this resource
         automatically has CORS headers set. The expected result is as follows:
 
@@ -68,13 +68,13 @@
             "success": true
         }
 
-    '''
+    """
     return jsonify(user="joe")
 
 
 @app.route("/api/v1/users/create", methods=['POST'])
 def create_user():
-    '''
+    """
         Since the path matches the regular expression r'/api/*', this resource
         automatically has CORS headers set.
 
@@ -112,12 +112,12 @@
           "success": true
         }
 
-    '''
+    """
     return jsonify(success=True)
 
 @app.route("/api/exception")
 def get_exception():
-    '''
+    """
         Since the path matches the regular expression r'/api/*', this resource
         automatically has CORS headers set.
 
@@ -137,7 +137,7 @@
         Content-Length: 0
         Server: Werkzeug/0.9.6 Python/2.7.9
         Date: Sat, 31 Jan 2015 22:25:22 GMT
-    '''
+    """
     raise Exception("example")
 
 @app.errorhandler(500)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/flask_cors/__init__.py 
new/Flask-Cors-3.0.7/flask_cors/__init__.py
--- old/Flask-Cors-3.0.6/flask_cors/__init__.py 2018-06-12 08:24:29.000000000 
+0200
+++ new/Flask-Cors-3.0.7/flask_cors/__init__.py 2018-11-09 22:07:32.000000000 
+0100
@@ -16,12 +16,7 @@
 
 # Set default logging handler to avoid "No handler found" warnings.
 import logging
-try:  # Python 2.7+
-    from logging import NullHandler
-except ImportError:
-    class NullHandler(logging.Handler):
-        def emit(self, record):
-            pass
+from logging import NullHandler
 
 # Set initial level to WARN. Users must manually enable logging for
 # flask_cors to see our logging.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/flask_cors/core.py 
new/Flask-Cors-3.0.7/flask_cors/core.py
--- old/Flask-Cors-3.0.6/flask_cors/core.py     2018-06-12 08:24:29.000000000 
+0200
+++ new/Flask-Cors-3.0.7/flask_cors/core.py     2018-11-09 22:07:32.000000000 
+0100
@@ -302,11 +302,11 @@
     # In order to support blueprints which do not have a config attribute
     app_config = getattr(app, 'config', {})
 
-    return dict(
-        (k.lower().replace('cors_', ''), app_config.get(k))
+    return {
+        k.lower().replace('cors_', ''): app_config.get(k)
         for k in CONFIG_OPTIONS
         if app_config.get(k) is not None
-    )
+    }
 
 
 def flexible_str(obj):
@@ -354,7 +354,7 @@
 
     for key in opts.keys():
         if key not in DEFAULT_OPTIONS:
-             LOG.warn("Unknown option passed to Flask-CORS: %s", key)
+             LOG.warning("Unknown option passed to Flask-CORS: %s", key)
 
     # Ensure origins is a list of allowed origins with at least one entry.
     options['origins'] = sanitize_regex_param(options.get('origins'))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/flask_cors/extension.py 
new/Flask-Cors-3.0.7/flask_cors/extension.py
--- old/Flask-Cors-3.0.6/flask_cors/extension.py        2018-06-12 
08:24:29.000000000 +0200
+++ new/Flask-Cors-3.0.7/flask_cors/extension.py        2018-11-09 
22:07:32.000000000 +0100
@@ -147,7 +147,7 @@
 
         # Create a human readable form of these resources by converting the 
compiled
         # regular expressions into strings.
-        resources_human = dict([(get_regexp_pattern(pattern), opts) for 
(pattern,opts) in resources])
+        resources_human = {get_regexp_pattern(pattern): opts for 
(pattern,opts) in resources}
         LOG.debug("Configuring CORS with resources: %s", resources_human)
 
         cors_after_request = make_after_request_function(resources)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/flask_cors/version.py 
new/Flask-Cors-3.0.7/flask_cors/version.py
--- old/Flask-Cors-3.0.6/flask_cors/version.py  2018-06-12 08:24:29.000000000 
+0200
+++ new/Flask-Cors-3.0.7/flask_cors/version.py  2018-11-09 22:07:32.000000000 
+0100
@@ -1 +1 @@
-__version__ = '3.0.6'
+__version__ = '3.0.7'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/setup.py 
new/Flask-Cors-3.0.7/setup.py
--- old/Flask-Cors-3.0.6/setup.py       2018-06-12 08:24:29.000000000 +0200
+++ new/Flask-Cors-3.0.7/setup.py       2018-11-09 22:07:32.000000000 +0100
@@ -42,9 +42,13 @@
         'License :: OSI Approved :: MIT License',
         'Operating System :: OS Independent',
         'Programming Language :: Python',
-        'Programming Language :: Python :: 2.6',
+        'Programming Language :: Python :: 2',
         'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
+        'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: PyPy',
         'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/tests/base_test.py 
new/Flask-Cors-3.0.7/tests/base_test.py
--- old/Flask-Cors-3.0.6/tests/base_test.py     2018-06-12 08:24:29.000000000 
+0200
+++ new/Flask-Cors-3.0.7/tests/base_test.py     2018-11-09 22:07:32.000000000 
+0100
@@ -9,10 +9,7 @@
     :license: MIT, see LICENSE for more details.
 """
 from flask import Flask
-try:
-    import unittest2 as unittest
-except ImportError:
-    import unittest
+import unittest
 
 from flask_cors import *
 from flask_cors.core import *
@@ -26,7 +23,7 @@
         http://erikzaadi.com/2012/09/13/inheritance-within-python-unit-tests/
         """
         doc = self.id()[self.id().rfind('.')+1:]
-        return "%s.%s" % (self.__class__.__name__, doc)
+        return "{}.{}".format(self.__class__.__name__, doc)
 
     def iter_verbs(self, c):
         ''' A simple helper method to iterate through a range of
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/tests/core/helper_tests.py 
new/Flask-Cors-3.0.7/tests/core/helper_tests.py
--- old/Flask-Cors-3.0.6/tests/core/helper_tests.py     2018-06-12 
08:24:29.000000000 +0200
+++ new/Flask-Cors-3.0.7/tests/core/helper_tests.py     2018-11-09 
22:07:32.000000000 +0100
@@ -11,10 +11,7 @@
     :license: MIT, see LICENSE for more details.
 """
 
-try:
-    import unittest2 as unittest
-except ImportError:
-    import unittest
+import unittest
 
 from flask_cors.core import *
 
@@ -28,7 +25,7 @@
         self.assertEquals(flexible_str('Bar, Foo, Qux'), 'Bar, Foo, Qux')
 
     def test_flexible_str_set(self):
-        self.assertEquals(flexible_str(set(['Foo', 'Bar', 'Qux'])),
+        self.assertEquals(flexible_str({'Foo', 'Bar', 'Qux'}),
                           'Bar, Foo, Qux')
 
     def test_serialize_options(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/tests/decorator/test_max_age.py 
new/Flask-Cors-3.0.7/tests/decorator/test_max_age.py
--- old/Flask-Cors-3.0.6/tests/decorator/test_max_age.py        2018-06-12 
08:24:29.000000000 +0200
+++ new/Flask-Cors-3.0.7/tests/decorator/test_max_age.py        2018-11-09 
22:07:32.000000000 +0100
@@ -9,7 +9,6 @@
     :license: MIT, see LICENSE for more details.
 """
 from datetime import timedelta
-import sys
 from ..base_test import FlaskCorsTestCase
 from flask import Flask
 
@@ -53,10 +52,6 @@
         ''' If the methods parameter is defined, always return the allowed
             methods defined by the user.
         '''
-        # timedelta.total_seconds is not available in older versions of Python
-        if sys.version_info < (2, 7):
-            return
-
         resp = self.preflight('/test_time_delta', origin='www.example.com')
         self.assertEqual(resp.headers.get(ACL_MAX_AGE), '600')
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/tests/decorator/test_origins.py 
new/Flask-Cors-3.0.7/tests/decorator/test_origins.py
--- old/Flask-Cors-3.0.6/tests/decorator/test_origins.py        2018-06-12 
08:24:29.000000000 +0200
+++ new/Flask-Cors-3.0.7/tests/decorator/test_origins.py        2018-11-09 
22:07:32.000000000 +0100
@@ -52,7 +52,7 @@
             return 'Welcome!'
 
         @self.app.route('/test_set')
-        @cross_origin(origins=set(["http://foo.com";, "http://bar.com";]))
+        @cross_origin(origins={"http://foo.com";, "http://bar.com"})
         def test_set():
             return 'Welcome!'
 
@@ -164,7 +164,7 @@
     def test_regex_list(self):
         for parent in 'example.com', 'otherexample.com':
             for sub in letters:
-                domain = "http://%s.%s.com"; % (sub, parent)
+                domain = "http://{}.{}.com".format(sub, parent)
                 for resp in self.iter_responses('/test_regex_list',
                                                 headers={'origin': domain}):
                     self.assertEqual(domain, resp.headers.get(ACL_ORIGIN))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Cors-3.0.6/tests/decorator/test_vary_header.py 
new/Flask-Cors-3.0.7/tests/decorator/test_vary_header.py
--- old/Flask-Cors-3.0.6/tests/decorator/test_vary_header.py    2018-06-12 
08:24:29.000000000 +0200
+++ new/Flask-Cors-3.0.7/tests/decorator/test_vary_header.py    2018-11-09 
22:07:32.000000000 +0100
@@ -81,7 +81,7 @@
 
         resp = self.get('/test_existing_vary_headers', origin="http://foo.com";)
         self.assertEqual(set(resp.headers.getlist('Vary')),
-                         set(['Origin', 'Accept-Encoding']))
+                         {'Origin', 'Accept-Encoding'})
 
 if __name__ == "__main__":
     unittest.main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Flask-Cors-3.0.6/tests/extension/test_app_extension.py 
new/Flask-Cors-3.0.7/tests/extension/test_app_extension.py
--- old/Flask-Cors-3.0.6/tests/extension/test_app_extension.py  2018-06-12 
08:24:29.000000000 +0200
+++ new/Flask-Cors-3.0.7/tests/extension/test_app_extension.py  2018-11-09 
22:07:32.000000000 +0100
@@ -25,7 +25,7 @@
             r'/test_list': {'origins': ["http://foo.com";, "http://bar.com"]},
             r'/test_string': {'origins': 'http://foo.com'},
             r'/test_set': {
-                'origins': set(["http://foo.com";, "http://bar.com";])
+                'origins': {"http://foo.com";, "http://bar.com"}
             },
             r'/test_subdomain_regex': {
                 'origins': r"http?://\w*\.?example\.com:?\d*/?.*"
@@ -136,7 +136,7 @@
     def test_regex_list(self):
         for parent in 'example.com', 'otherexample.com':
             for sub in letters:
-                domain = "http://%s.%s.com"; % (sub, parent)
+                domain = "http://{}.{}.com".format(sub, parent)
                 for resp in self.iter_responses('/test_regex_list',
                                                 headers={'origin': domain}):
                     self.assertEqual(domain, resp.headers.get(ACL_ORIGIN))


Reply via email to