[Python-modules-commits] [flask-compress] 01/04: Import flask-compress_1.4.0.orig.tar.gz

Dominik George natureshadow-guest at moszumanska.debian.org
Fri Jan 6 14:30:38 UTC 2017


This is an automated email from the git hooks/post-receive script.

natureshadow-guest pushed a commit to tag debian/1.4.0-1
in repository flask-compress.

commit 042e6f9d74c5f36c401a194eb8db2fd90ab04a2b
Author: Dominik George <nik at naturalnet.de>
Date:   Fri Jan 6 15:25:07 2017 +0100

    Import flask-compress_1.4.0.orig.tar.gz
---
 Flask_Compress.egg-info/PKG-INFO | 3 ++-
 PKG-INFO                         | 3 ++-
 README.md                        | 3 +++
 flask_compress.py                | 4 +++-
 setup.py                         | 3 ++-
 5 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/Flask_Compress.egg-info/PKG-INFO b/Flask_Compress.egg-info/PKG-INFO
index 5dfe8ae..5e2d220 100644
--- a/Flask_Compress.egg-info/PKG-INFO
+++ b/Flask_Compress.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: Flask-Compress
-Version: 1.3.2
+Version: 1.4.0
 Summary: Compress responses in your Flask app with gzip.
 Home-page: https://libwilliam.github.io/flask-compress/
 Author: William Fagan
@@ -19,5 +19,6 @@ 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: Topic :: Internet :: WWW/HTTP :: Dynamic Content
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
diff --git a/PKG-INFO b/PKG-INFO
index 5dfe8ae..5e2d220 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: Flask-Compress
-Version: 1.3.2
+Version: 1.4.0
 Summary: Compress responses in your Flask app with gzip.
 Home-page: https://libwilliam.github.io/flask-compress/
 Author: William Fagan
@@ -19,5 +19,6 @@ 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: Topic :: Internet :: WWW/HTTP :: Dynamic Content
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
diff --git a/README.md b/README.md
index 0396c57..cf542d7 100644
--- a/README.md
+++ b/README.md
@@ -76,3 +76,6 @@ Within your Flask application's settings you can provide the following settings
 | `COMPRESS_MIMETYPES` | Set the list of mimetypes to compress here. | `[`<br>`'text/html',`<br>`'text/css',`<br>`'text/xml',`<br>`'application/json',`<br>`'application/javascript'`<br>`]` |
 | `COMPRESS_LEVEL` | Specifies the gzip compression level. | `6` |
 | `COMPRESS_MIN_SIZE` | Specifies the minimum file size threshold for compressing files. | `500` |
+| `COMPRESS_CACHE_KEY` | Specifies the cache key method for lookup/storage of response data. | `None` |
+| `COMPRESS_CACHE_BACKEND` | Specified the backend for storing the cached response data. | `None` |
+| `COMPRESS_REGISTER` | Specifies if compression should be automatically registered. | `True` |
diff --git a/flask_compress.py b/flask_compress.py
index 3f2d922..a8319b6 100644
--- a/flask_compress.py
+++ b/flask_compress.py
@@ -61,6 +61,7 @@ class Compress(object):
             ('COMPRESS_MIN_SIZE', 500),
             ('COMPRESS_CACHE_KEY', None),
             ('COMPRESS_CACHE_BACKEND', None),
+            ('COMPRESS_REGISTER', True),
         ]
 
         for k, v in defaults:
@@ -70,7 +71,8 @@ class Compress(object):
         self.cache = backend() if backend else None
         self.cache_key = app.config['COMPRESS_CACHE_KEY']
 
-        if app.config['COMPRESS_MIMETYPES']:
+        if (app.config['COMPRESS_REGISTER'] and
+                app.config['COMPRESS_MIMETYPES']):
             app.after_request(self.after_request)
 
     def after_request(self, response):
diff --git a/setup.py b/setup.py
index b186cba..c124372 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ import setuptools
 
 setuptools.setup(
     name='Flask-Compress',
-    version='1.3.2',
+    version='1.4.0',
     url='https://libwilliam.github.io/flask-compress/',
     license='MIT',
     author='William Fagan',
@@ -29,6 +29,7 @@ setuptools.setup(
         'Programming Language :: Python :: 3.3',
         'Programming Language :: Python :: 3.4',
         'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
         'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
         'Topic :: Software Development :: Libraries :: Python Modules'
     ]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/flask-compress.git



More information about the Python-modules-commits mailing list