Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Flask-Compress for 
openSUSE:Factory checked in at 2022-03-06 18:15:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Flask-Compress (Old)
 and      /work/SRC/openSUSE:Factory/.python-Flask-Compress.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Flask-Compress"

Sun Mar  6 18:15:40 2022 rev:8 rq:959664 version:1.11

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-Flask-Compress/python-Flask-Compress.changes  
    2021-10-13 18:10:49.403720088 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-Flask-Compress.new.1958/python-Flask-Compress.changes
    2022-03-06 18:15:53.431826937 +0100
@@ -1,0 +2,10 @@
+Sat Mar  5 18:00:09 UTC 2022 - Arun Persaud <a...@gmx.de>
+
+- specfile:
+  * update copyright year
+
+- update to version 1.11:
+  * When compression is enabled, accept-encoding is always added to
+    the Vary header, fixes #28
+
+-------------------------------------------------------------------

Old:
----
  Flask-Compress-1.10.1.tar.gz

New:
----
  Flask-Compress-1.11.tar.gz

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

Other differences:
------------------
++++++ python-Flask-Compress.spec ++++++
--- /var/tmp/diff_new_pack.cKEl2k/_old  2022-03-06 18:15:54.043827020 +0100
+++ /var/tmp/diff_new_pack.cKEl2k/_new  2022-03-06 18:15:54.047827020 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Flask-Compress
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 # Copyright (c) 2016, Martin Hauke <mar...@gmx.de>
 #
 # All modifications and additions to the file contributed by third parties
@@ -19,7 +19,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-Flask-Compress
-Version:        1.10.1
+Version:        1.11
 Release:        0
 Summary:        Compress responses in Flask apps with gzip
 License:        MIT

++++++ Flask-Compress-1.10.1.tar.gz -> Flask-Compress-1.11.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Compress-1.10.1/CHANGELOG.md 
new/Flask-Compress-1.11/CHANGELOG.md
--- old/Flask-Compress-1.10.1/CHANGELOG.md      2021-06-16 10:22:32.000000000 
+0200
+++ new/Flask-Compress-1.11/CHANGELOG.md        2022-03-01 10:48:46.000000000 
+0100
@@ -2,6 +2,10 @@
 
 All notable changes to `flask-compress` will be documented in this file.
 
+## 1.11 (2022-03-01)
+
+- When compression is enabled, *accept-encoding* is always added to the `Vary` 
header, fixes [#28](https://github.com/colour-science/flask-compress/issues/28)
+
 ## 1.10.0 (2021-06-15)
 
 - Automate the release process with GitHub Actions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Flask-Compress-1.10.1/Flask_Compress.egg-info/PKG-INFO 
new/Flask-Compress-1.11/Flask_Compress.egg-info/PKG-INFO
--- old/Flask-Compress-1.10.1/Flask_Compress.egg-info/PKG-INFO  2021-06-16 
10:22:44.000000000 +0200
+++ new/Flask-Compress-1.11/Flask_Compress.egg-info/PKG-INFO    2022-03-01 
10:49:02.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: Flask-Compress
-Version: 1.10.1
+Version: 1.11
 Summary: Compress responses in your Flask app with gzip, deflate or brotli.
 Home-page: https://github.com/colour-science/flask-compress
 Author: Thomas Mansencal
@@ -15,10 +15,10 @@
 Classifier: Programming Language :: Python :: 2.6
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.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 :: 3.8
+Classifier: Programming Language :: Python :: 3.9
 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Description-Content-Type: text/markdown
@@ -28,7 +28,7 @@
 
 
[![Build](https://github.com/colour-science/flask-compress/actions/workflows/ci.yaml/badge.svg)](https://github.com/colour-science/flask-compress/actions/workflows/ci.yaml)
 
[![Version](https://img.shields.io/pypi/v/flask-compress.svg)](https://pypi.python.org/pypi/Flask-Compress)
-[![Downloads](https://pypip.in/d/Flask-Compress/badge.png)](https://pypi.python.org/pypi/Flask-Compress)
+[![Downloads](https://static.pepy.tech/badge/flask-compress)](https://pypi.python.org/pypi/Flask-Compress)
 
 Flask-Compress allows you to easily compress your 
[Flask](http://flask.pocoo.org/) application's responses with gzip, deflate or 
brotli. It originally started as a fork of 
[Flask-gzip](https://github.com/closeio/Flask-gzip).
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Compress-1.10.1/PKG-INFO 
new/Flask-Compress-1.11/PKG-INFO
--- old/Flask-Compress-1.10.1/PKG-INFO  2021-06-16 10:22:44.950378200 +0200
+++ new/Flask-Compress-1.11/PKG-INFO    2022-03-01 10:49:02.689063300 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: Flask-Compress
-Version: 1.10.1
+Version: 1.11
 Summary: Compress responses in your Flask app with gzip, deflate or brotli.
 Home-page: https://github.com/colour-science/flask-compress
 Author: Thomas Mansencal
@@ -15,10 +15,10 @@
 Classifier: Programming Language :: Python :: 2.6
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.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 :: 3.8
+Classifier: Programming Language :: Python :: 3.9
 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Description-Content-Type: text/markdown
@@ -28,7 +28,7 @@
 
 
[![Build](https://github.com/colour-science/flask-compress/actions/workflows/ci.yaml/badge.svg)](https://github.com/colour-science/flask-compress/actions/workflows/ci.yaml)
 
[![Version](https://img.shields.io/pypi/v/flask-compress.svg)](https://pypi.python.org/pypi/Flask-Compress)
-[![Downloads](https://pypip.in/d/Flask-Compress/badge.png)](https://pypi.python.org/pypi/Flask-Compress)
+[![Downloads](https://static.pepy.tech/badge/flask-compress)](https://pypi.python.org/pypi/Flask-Compress)
 
 Flask-Compress allows you to easily compress your 
[Flask](http://flask.pocoo.org/) application's responses with gzip, deflate or 
brotli. It originally started as a fork of 
[Flask-gzip](https://github.com/closeio/Flask-gzip).
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Compress-1.10.1/README.md 
new/Flask-Compress-1.11/README.md
--- old/Flask-Compress-1.10.1/README.md 2021-06-16 10:22:32.000000000 +0200
+++ new/Flask-Compress-1.11/README.md   2022-03-01 10:48:46.000000000 +0100
@@ -2,7 +2,7 @@
 
 
[![Build](https://github.com/colour-science/flask-compress/actions/workflows/ci.yaml/badge.svg)](https://github.com/colour-science/flask-compress/actions/workflows/ci.yaml)
 
[![Version](https://img.shields.io/pypi/v/flask-compress.svg)](https://pypi.python.org/pypi/Flask-Compress)
-[![Downloads](https://pypip.in/d/Flask-Compress/badge.png)](https://pypi.python.org/pypi/Flask-Compress)
+[![Downloads](https://static.pepy.tech/badge/flask-compress)](https://pypi.python.org/pypi/Flask-Compress)
 
 Flask-Compress allows you to easily compress your 
[Flask](http://flask.pocoo.org/) application's responses with gzip, deflate or 
brotli. It originally started as a fork of 
[Flask-gzip](https://github.com/closeio/Flask-gzip).
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Compress-1.10.1/flask_compress/_version.py 
new/Flask-Compress-1.11/flask_compress/_version.py
--- old/Flask-Compress-1.10.1/flask_compress/_version.py        2021-06-16 
10:22:44.000000000 +0200
+++ new/Flask-Compress-1.11/flask_compress/_version.py  2022-03-01 
10:49:01.000000000 +0100
@@ -1 +1 @@
-__version__ = "1.10.1"
+__version__ = "1.11"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Flask-Compress-1.10.1/flask_compress/flask_compress.py 
new/Flask-Compress-1.11/flask_compress/flask_compress.py
--- old/Flask-Compress-1.10.1/flask_compress/flask_compress.py  2021-06-16 
10:22:32.000000000 +0200
+++ new/Flask-Compress-1.11/flask_compress/flask_compress.py    2022-03-01 
10:48:46.000000000 +0100
@@ -165,6 +165,12 @@
     def after_request(self, response):
         app = self.app or current_app
 
+        vary = response.headers.get('Vary')
+        if not vary:
+            response.headers['Vary'] = 'Accept-Encoding'
+        elif 'accept-encoding' not in vary.lower():
+            response.headers['Vary'] = '{}, Accept-Encoding'.format(vary)
+
         accept_encoding = request.headers.get('Accept-Encoding', '')
         chosen_algorithm = self._choose_compress_algorithm(accept_encoding)
 
@@ -199,12 +205,6 @@
         if etag:
             response.headers['ETag'] = '{0}:{1}"'.format(etag[:-1], 
chosen_algorithm)
 
-        vary = response.headers.get('Vary')
-        if not vary:
-            response.headers['Vary'] = 'Accept-Encoding'
-        elif 'accept-encoding' not in vary.lower():
-            response.headers['Vary'] = '{}, Accept-Encoding'.format(vary)
-
         return response
 
     def compressed(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Flask-Compress-1.10.1/setup.py 
new/Flask-Compress-1.11/setup.py
--- old/Flask-Compress-1.10.1/setup.py  2021-06-16 10:22:32.000000000 +0200
+++ new/Flask-Compress-1.11/setup.py    2022-03-01 10:48:46.000000000 +0100
@@ -21,6 +21,9 @@
         'flask',
         'brotli'
     ],
+    setup_requires=[
+        'setuptools_scm',
+    ],
     classifiers=[
         'Environment :: Web Environment',
         'Intended Audience :: Developers',
@@ -30,10 +33,10 @@
         'Programming Language :: Python :: 2.6',
         'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.3',
-        'Programming Language :: Python :: 3.4',
-        'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.7',
+        'Programming Language :: Python :: 3.8',
+        'Programming Language :: Python :: 3.9',
         'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
         'Topic :: Software Development :: Libraries :: Python Modules'
     ]

Reply via email to