Hello community,
here is the log from the commit of package python-Flask-HTMLmin for
openSUSE:Factory checked in at 2019-10-30 14:48:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Flask-HTMLmin (Old)
and /work/SRC/openSUSE:Factory/.python-Flask-HTMLmin.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Flask-HTMLmin"
Wed Oct 30 14:48:49 2019 rev:3 rq:744110 version:1.5.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-Flask-HTMLmin/python-Flask-HTMLmin.changes
2018-11-06 14:33:52.837088852 +0100
+++
/work/SRC/openSUSE:Factory/.python-Flask-HTMLmin.new.2990/python-Flask-HTMLmin.changes
2019-10-30 14:48:52.510249684 +0100
@@ -1,0 +2,10 @@
+Wed Oct 30 11:51:51 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.5.2:
+ * Fix setup.py issues
+ * Update setup.py categories
+ * Fix tests
+ * Change MINIFY_PAGE to MINIFY_HTML
+ * Add deprecation warning for old config
+
+-------------------------------------------------------------------
Old:
----
v1.5.0.tar.gz
New:
----
v1.5.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-Flask-HTMLmin.spec ++++++
--- /var/tmp/diff_new_pack.XBmZCS/_old 2019-10-30 14:48:53.498250734 +0100
+++ /var/tmp/diff_new_pack.XBmZCS/_new 2019-10-30 14:48:53.506250743 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-Flask-HTMLmin
#
-# 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,22 +18,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Flask-HTMLmin
-Version: 1.5.0
+Version: 1.5.2
Release: 0
Summary: Flask minifier for HTML responses
License: BSD-3-Clause
-Group: Development/Languages/Python
URL: https://github.com/hamidfzm/Flask-HTMLmin
Source:
https://github.com/hamidfzm/Flask-HTMLmin/archive/v%{version}.tar.gz
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module htmlmin}
-# Test requirements
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-# End of test requirements
Requires: python-Flask
Requires: python-htmlmin
BuildArch: noarch
@@ -53,7 +50,7 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%python_exec %{_bindir}/py.test
+%pytest
%files %{python_files}
%doc README.md
++++++ v1.5.0.tar.gz -> v1.5.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-HTMLmin-1.5.0/.travis.yml
new/Flask-HTMLmin-1.5.2/.travis.yml
--- old/Flask-HTMLmin-1.5.0/.travis.yml 2018-10-20 02:34:02.000000000 +0200
+++ new/Flask-HTMLmin-1.5.2/.travis.yml 2019-10-23 12:44:42.000000000 +0200
@@ -1,20 +1,23 @@
language: python
python:
- - "2.7"
- - "3.6"
-# Enable 3.7 without globally enabling sudo and dist: xenial for other build
jobs
-matrix:
- include:
- - python: 3.7
- dist: xenial
- sudo: true
-
-# command to install dependencies
+- '2.7'
+- '3.6'
+- '3.7'
+- '3.8'
install:
- - python setup.py install
- - pip install pytest-runner pytest pytest-cov python-coveralls
-# command to run tests
+- python setup.py install
+- pip install pytest-runner pytest pytest-cov python-coveralls
script:
- - python setup.py test
+- python setup.py test
after_success:
- - coveralls
+- coveralls
+
+deploy:
+ python: '3.7'
+ provider: pypi
+ user: __token__
+ distributions: 'sdist bdist_wheel'
+ skip_existing: true
+ cleanup: true
+ password:
+ secure:
Eh+KtTMmTzm/L4xIRg5TqpvWofZ2xXO4zNe4VSMgBE+zL1KnoZ2NuDwlEChSZPmA1NJGq7DhAx43la9FCfx7UotsPtq1MmrgnnkUiMgmY+3d5thKFlvjkooh9b4m/edkaOqbEeLCxOIftRbs8lkWsB/nE85DCX7p0hmxST8Qx88hQmODPD0L4eLUs388KrMOFxGNLyrJcR2ebTtQ/W+c9MIYpj6TKSDB8Iv6lVDiko6Wur2+fo7wKffo72VOETOaVJPw0B2IWz3fZ4gIDsoDe3AJvE54Y3VZOHsuovGX3AaQcAwaRAjAHV8evu4YmDnMgA9RfqLRtPH4yv1sRbkQSP2O2neUNlmOrhzFk+xm/mMsFUzZDpxBac7MLSJ3V3kmmJmDgmeaxi8Hkp576YGKUtC/OmUM0a5M5nuTS8f6fCQLjffKKXP8YRbmt0Na48HGYD33xA2C8TqJmZow00d1EwSCF9Zk9m+age+MZ1vGulXZP1wYoz7zdy4uh2yKwTZPEZYuTgdVk/dquK8jtND6BdqDXCqz6ElBqQZ3J4YEoA2O/Vz2OhK+t18WdTL4ixTEv45vfvHwjK0JRCBP0Zqqc/4i6soa/u2t0wJsrC+T/F1dYHmwOlSalRKrI+rbdHk6Ou57S8XPIIOFdsf7q5ik+1qoQn4CXxsB0JoEq1fx3do=
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-HTMLmin-1.5.0/Pipfile
new/Flask-HTMLmin-1.5.2/Pipfile
--- old/Flask-HTMLmin-1.5.0/Pipfile 1970-01-01 01:00:00.000000000 +0100
+++ new/Flask-HTMLmin-1.5.2/Pipfile 2019-10-23 12:44:42.000000000 +0200
@@ -0,0 +1,17 @@
+[[source]]
+name = "pypi"
+url = "https://pypi.org/simple"
+verify_ssl = true
+
+[dev-packages]
+pytest = "*"
+pytest-runner = "*"
+pytest-cov = "*"
+python-coveralls = "*"
+
+[packages]
+flask = "*"
+htmlmin = "*"
+
+[requires]
+python_version = "3.7"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-HTMLmin-1.5.0/Pipfile.lock
new/Flask-HTMLmin-1.5.2/Pipfile.lock
--- old/Flask-HTMLmin-1.5.0/Pipfile.lock 1970-01-01 01:00:00.000000000
+0100
+++ new/Flask-HTMLmin-1.5.2/Pipfile.lock 2019-10-23 12:44:42.000000000
+0200
@@ -0,0 +1,298 @@
+{
+ "_meta": {
+ "hash": {
+ "sha256":
"9f8cfebb82c21d7178382f0b6422abdc8440f0435aa247613249939e2a4e9f69"
+ },
+ "pipfile-spec": 6,
+ "requires": {
+ "python_version": "3.7"
+ },
+ "sources": [
+ {
+ "name": "pypi",
+ "url": "https://pypi.org/simple",
+ "verify_ssl": true
+ }
+ ]
+ },
+ "default": {
+ "click": {
+ "hashes": [
+
"sha256:2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13",
+
"sha256:5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7"
+ ],
+ "version": "==7.0"
+ },
+ "flask": {
+ "hashes": [
+
"sha256:13f9f196f330c7c2c5d7a5cf91af894110ca0215ac051b5844701f2bfd934d52",
+
"sha256:45eb5a6fd193d6cf7e0cf5d8a5b31f83d5faae0293695626f539a823e93b13f6"
+ ],
+ "index": "pypi",
+ "version": "==1.1.1"
+ },
+ "htmlmin": {
+ "hashes": [
+
"sha256:50c1ef4630374a5d723900096a961cff426dff46b48f34d194a81bbe14eca178"
+ ],
+ "index": "pypi",
+ "version": "==0.1.12"
+ },
+ "itsdangerous": {
+ "hashes": [
+
"sha256:321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19",
+
"sha256:b12271b2047cb23eeb98c8b5622e2e5c5e9abd9784a153e9d8ef9cb4dd09d749"
+ ],
+ "version": "==1.1.0"
+ },
+ "jinja2": {
+ "hashes": [
+
"sha256:74320bb91f31270f9551d46522e33af46a80c3d619f4a4bf42b3164d30b5911f",
+
"sha256:9fe95f19286cfefaa917656583d020be14e7859c6b0252588391e47db34527de"
+ ],
+ "version": "==2.10.3"
+ },
+ "markupsafe": {
+ "hashes": [
+
"sha256:00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473",
+
"sha256:09027a7803a62ca78792ad89403b1b7a73a01c8cb65909cd876f7fcebd79b161",
+
"sha256:09c4b7f37d6c648cb13f9230d847adf22f8171b1ccc4d5682398e77f40309235",
+
"sha256:1027c282dad077d0bae18be6794e6b6b8c91d58ed8a8d89a89d59693b9131db5",
+
"sha256:24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff",
+
"sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b",
+
"sha256:43a55c2930bbc139570ac2452adf3d70cdbb3cfe5912c71cdce1c2c6bbd9c5d1",
+
"sha256:46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e",
+
"sha256:500d4957e52ddc3351cabf489e79c91c17f6e0899158447047588650b5e69183",
+
"sha256:535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66",
+
"sha256:62fe6c95e3ec8a7fad637b7f3d372c15ec1caa01ab47926cfdf7a75b40e0eac1",
+
"sha256:6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1",
+
"sha256:717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e",
+
"sha256:79855e1c5b8da654cf486b830bd42c06e8780cea587384cf6545b7d9ac013a0b",
+
"sha256:7c1699dfe0cf8ff607dbdcc1e9b9af1755371f92a68f706051cc8c37d447c905",
+
"sha256:88e5fcfb52ee7b911e8bb6d6aa2fd21fbecc674eadd44118a9cc3863f938e735",
+
"sha256:8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d",
+
"sha256:98c7086708b163d425c67c7a91bad6e466bb99d797aa64f965e9d25c12111a5e",
+
"sha256:9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d",
+
"sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c",
+
"sha256:ade5e387d2ad0d7ebf59146cc00c8044acbd863725f887353a10df825fc8ae21",
+
"sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2",
+
"sha256:b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5",
+
"sha256:b2051432115498d3562c084a49bba65d97cf251f5a331c64a12ee7e04dacc51b",
+
"sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6",
+
"sha256:c8716a48d94b06bb3b2524c2b77e055fb313aeb4ea620c8dd03a105574ba704f",
+
"sha256:cd5df75523866410809ca100dc9681e301e3c27567cf498077e8551b6d20e42f",
+
"sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7"
+ ],
+ "version": "==1.1.1"
+ },
+ "werkzeug": {
+ "hashes": [
+
"sha256:7280924747b5733b246fe23972186c6b348f9ae29724135a6dfc1e53cea433e7",
+
"sha256:e5f4a1f98b52b18a93da705a7458e55afb26f32bff83ff5d19189f92462d65c4"
+ ],
+ "version": "==0.16.0"
+ }
+ },
+ "develop": {
+ "atomicwrites": {
+ "hashes": [
+
"sha256:03472c30eb2c5d1ba9227e4c2ca66ab8287fbfbbda3888aa93dc2e28fc6811b4",
+
"sha256:75a9445bac02d8d058d5e1fe689654ba5a6556a1dfd8ce6ec55a0ed79866cfa6"
+ ],
+ "version": "==1.3.0"
+ },
+ "attrs": {
+ "hashes": [
+
"sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c",
+
"sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72"
+ ],
+ "version": "==19.3.0"
+ },
+ "certifi": {
+ "hashes": [
+
"sha256:e4f3620cfea4f83eedc95b24abd9cd56f3c4b146dd0177e83a21b4eb49e21e50",
+
"sha256:fd7c7c74727ddcf00e9acd26bba8da604ffec95bf1c2144e67aff7a8b50e6cef"
+ ],
+ "version": "==2019.9.11"
+ },
+ "chardet": {
+ "hashes": [
+
"sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
+
"sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"
+ ],
+ "version": "==3.0.4"
+ },
+ "coverage": {
+ "hashes": [
+
"sha256:08907593569fe59baca0bf152c43f3863201efb6113ecb38ce7e97ce339805a6",
+
"sha256:0be0f1ed45fc0c185cfd4ecc19a1d6532d72f86a2bac9de7e24541febad72650",
+
"sha256:141f08ed3c4b1847015e2cd62ec06d35e67a3ac185c26f7635f4406b90afa9c5",
+
"sha256:19e4df788a0581238e9390c85a7a09af39c7b539b29f25c89209e6c3e371270d",
+
"sha256:23cc09ed395b03424d1ae30dcc292615c1372bfba7141eb85e11e50efaa6b351",
+
"sha256:245388cda02af78276b479f299bbf3783ef0a6a6273037d7c60dc73b8d8d7755",
+
"sha256:331cb5115673a20fb131dadd22f5bcaf7677ef758741312bee4937d71a14b2ef",
+
"sha256:386e2e4090f0bc5df274e720105c342263423e77ee8826002dcffe0c9533dbca",
+
"sha256:3a794ce50daee01c74a494919d5ebdc23d58873747fa0e288318728533a3e1ca",
+
"sha256:60851187677b24c6085248f0a0b9b98d49cba7ecc7ec60ba6b9d2e5574ac1ee9",
+
"sha256:63a9a5fc43b58735f65ed63d2cf43508f462dc49857da70b8980ad78d41d52fc",
+
"sha256:6b62544bb68106e3f00b21c8930e83e584fdca005d4fffd29bb39fb3ffa03cb5",
+
"sha256:6ba744056423ef8d450cf627289166da65903885272055fb4b5e113137cfa14f",
+
"sha256:7494b0b0274c5072bddbfd5b4a6c6f18fbbe1ab1d22a41e99cd2d00c8f96ecfe",
+
"sha256:826f32b9547c8091679ff292a82aca9c7b9650f9fda3e2ca6bf2ac905b7ce888",
+
"sha256:93715dffbcd0678057f947f496484e906bf9509f5c1c38fc9ba3922893cda5f5",
+
"sha256:9a334d6c83dfeadae576b4d633a71620d40d1c379129d587faa42ee3e2a85cce",
+
"sha256:af7ed8a8aa6957aac47b4268631fa1df984643f07ef00acd374e456364b373f5",
+
"sha256:bf0a7aed7f5521c7ca67febd57db473af4762b9622254291fbcbb8cd0ba5e33e",
+
"sha256:bf1ef9eb901113a9805287e090452c05547578eaab1b62e4ad456fcc049a9b7e",
+
"sha256:c0afd27bc0e307a1ffc04ca5ec010a290e49e3afbe841c5cafc5c5a80ecd81c9",
+
"sha256:dd579709a87092c6dbee09d1b7cfa81831040705ffa12a1b248935274aee0437",
+
"sha256:df6712284b2e44a065097846488f66840445eb987eb81b3cc6e4149e7b6982e1",
+
"sha256:e07d9f1a23e9e93ab5c62902833bf3e4b1f65502927379148b6622686223125c",
+
"sha256:e2ede7c1d45e65e209d6093b762e98e8318ddeff95317d07a27a2140b80cfd24",
+
"sha256:e4ef9c164eb55123c62411f5936b5c2e521b12356037b6e1c2617cef45523d47",
+
"sha256:eca2b7343524e7ba246cab8ff00cab47a2d6d54ada3b02772e908a45675722e2",
+
"sha256:eee64c616adeff7db37cc37da4180a3a5b6177f5c46b187894e633f088fb5b28",
+
"sha256:ef824cad1f980d27f26166f86856efe11eff9912c4fed97d3804820d43fa550c",
+
"sha256:efc89291bd5a08855829a3c522df16d856455297cf35ae827a37edac45f466a7",
+
"sha256:fa964bae817babece5aa2e8c1af841bebb6d0b9add8e637548809d040443fee0",
+
"sha256:ff37757e068ae606659c28c3bd0d923f9d29a85de79bf25b2b34b148473b5025"
+ ],
+ "version": "==4.5.4"
+ },
+ "idna": {
+ "hashes": [
+
"sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407",
+
"sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c"
+ ],
+ "version": "==2.8"
+ },
+ "importlib-metadata": {
+ "hashes": [
+
"sha256:aa18d7378b00b40847790e7c27e11673d7fed219354109d0e7b9e5b25dc3ad26",
+
"sha256:d5f18a79777f3aa179c145737780282e27b508fc8fd688cb17c7a813e8bd39af"
+ ],
+ "markers": "python_version < '3.8'",
+ "version": "==0.23"
+ },
+ "more-itertools": {
+ "hashes": [
+
"sha256:409cd48d4db7052af495b09dec721011634af3753ae1ef92d2b32f73a745f832",
+
"sha256:92b8c4b06dac4f0611c0729b2f2ede52b2e1bac1ab48f089c7ddc12e26bb60c4"
+ ],
+ "version": "==7.2.0"
+ },
+ "packaging": {
+ "hashes": [
+
"sha256:28b924174df7a2fa32c1953825ff29c61e2f5e082343165438812f00d3a7fc47",
+
"sha256:d9551545c6d761f3def1677baf08ab2a3ca17c56879e70fecba2fc4dde4ed108"
+ ],
+ "version": "==19.2"
+ },
+ "pluggy": {
+ "hashes": [
+
"sha256:0db4b7601aae1d35b4a033282da476845aa19185c1e6964b25cf324b5e4ec3e6",
+
"sha256:fa5fa1622fa6dd5c030e9cad086fa19ef6a0cf6d7a2d12318e10cb49d6d68f34"
+ ],
+ "version": "==0.13.0"
+ },
+ "py": {
+ "hashes": [
+
"sha256:64f65755aee5b381cea27766a3a147c3f15b9b6b9ac88676de66ba2ae36793fa",
+
"sha256:dc639b046a6e2cff5bbe40194ad65936d6ba360b52b3c3fe1d08a82dd50b5e53"
+ ],
+ "version": "==1.8.0"
+ },
+ "pyparsing": {
+ "hashes": [
+
"sha256:6f98a7b9397e206d78cc01df10131398f1c8b8510a2f4d97d9abd82e1aacdd80",
+
"sha256:d9338df12903bbf5d65a0e4e87c2161968b10d2e489652bb47001d82a9b028b4"
+ ],
+ "version": "==2.4.2"
+ },
+ "pytest": {
+ "hashes": [
+
"sha256:7e4800063ccfc306a53c461442526c5571e1462f61583506ce97e4da6a1d88c8",
+
"sha256:ca563435f4941d0cb34767301c27bc65c510cb82e90b9ecf9cb52dc2c63caaa0"
+ ],
+ "index": "pypi",
+ "version": "==5.2.1"
+ },
+ "pytest-cov": {
+ "hashes": [
+
"sha256:cc6742d8bac45070217169f5f72ceee1e0e55b0221f54bcf24845972d3a47f2b",
+
"sha256:cdbdef4f870408ebdbfeb44e63e07eb18bb4619fae852f6e760645fa36172626"
+ ],
+ "index": "pypi",
+ "version": "==2.8.1"
+ },
+ "pytest-runner": {
+ "hashes": [
+
"sha256:25a013c8d84f0ca60bb01bd11913a3bcab420f601f0f236de4423074af656e7a",
+
"sha256:d04243fbf29a3b574f18f1bcff2a07f505db5daede82f706f2e32728f77d3f4d"
+ ],
+ "index": "pypi",
+ "version": "==5.1"
+ },
+ "python-coveralls": {
+ "hashes": [
+
"sha256:bfaf7811e7dc5628e83b6b162962a4e2485dbff184b30e49f380374ed1bcee55",
+
"sha256:fb0ff49bb1551dac10b06bd55e9790287d898a0f1e2c959802235cae08dd0bff"
+ ],
+ "index": "pypi",
+ "version": "==2.9.3"
+ },
+ "pyyaml": {
+ "hashes": [
+
"sha256:0113bc0ec2ad727182326b61326afa3d1d8280ae1122493553fd6f4397f33df9",
+
"sha256:01adf0b6c6f61bd11af6e10ca52b7d4057dd0be0343eb9283c878cf3af56aee4",
+
"sha256:5124373960b0b3f4aa7df1707e63e9f109b5263eca5976c66e08b1c552d4eaf8",
+
"sha256:5ca4f10adbddae56d824b2c09668e91219bb178a1eee1faa56af6f99f11bf696",
+
"sha256:7907be34ffa3c5a32b60b95f4d95ea25361c951383a894fec31be7252b2b6f34",
+
"sha256:7ec9b2a4ed5cad025c2278a1e6a19c011c80a3caaac804fd2d329e9cc2c287c9",
+
"sha256:87ae4c829bb25b9fe99cf71fbb2140c448f534e24c998cc60f39ae4f94396a73",
+
"sha256:9de9919becc9cc2ff03637872a440195ac4241c80536632fffeb6a1e25a74299",
+
"sha256:a5a85b10e450c66b49f98846937e8cfca1db3127a9d5d1e31ca45c3d0bef4c5b",
+
"sha256:b0997827b4f6a7c286c01c5f60384d218dca4ed7d9efa945c3e1aa623d5709ae",
+
"sha256:b631ef96d3222e62861443cc89d6563ba3eeb816eeb96b2629345ab795e53681",
+
"sha256:bf47c0607522fdbca6c9e817a6e81b08491de50f3766a7a0e6a5be7905961b41",
+
"sha256:f81025eddd0327c7d4cfe9b62cf33190e1e736cc6e97502b3ec425f574b3e7a8"
+ ],
+ "version": "==5.1.2"
+ },
+ "requests": {
+ "hashes": [
+
"sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4",
+
"sha256:9cf5292fcd0f598c671cfc1e0d7d1a7f13bb8085e9a590f48c010551dc6c4b31"
+ ],
+ "version": "==2.22.0"
+ },
+ "six": {
+ "hashes": [
+
"sha256:3350809f0555b11f552448330d0b52d5f24c91a322ea4a15ef22629740f3761c",
+
"sha256:d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73"
+ ],
+ "version": "==1.12.0"
+ },
+ "urllib3": {
+ "hashes": [
+
"sha256:3de946ffbed6e6746608990594d08faac602528ac7015ac28d33cee6a45b7398",
+
"sha256:9a107b99a5393caf59c7aa3c1249c16e6879447533d0887f4336dde834c7be86"
+ ],
+ "version": "==1.25.6"
+ },
+ "wcwidth": {
+ "hashes": [
+
"sha256:3df37372226d6e63e1b1e1eda15c594bca98a22d33a23832a90998faa96bc65e",
+
"sha256:f4ebe71925af7b40a864553f761ed559b43544f8f71746c2d756c7fe788ade7c"
+ ],
+ "version": "==0.1.7"
+ },
+ "zipp": {
+ "hashes": [
+
"sha256:3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e",
+
"sha256:f06903e9f1f43b12d371004b4ac7b06ab39a44adc747266928ae6debfa7b3335"
+ ],
+ "version": "==0.6.0"
+ }
+ }
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-HTMLmin-1.5.0/README.md
new/Flask-HTMLmin-1.5.2/README.md
--- old/Flask-HTMLmin-1.5.0/README.md 2018-10-20 02:34:02.000000000 +0200
+++ new/Flask-HTMLmin-1.5.2/README.md 2019-10-23 12:44:42.000000000 +0200
@@ -1,13 +1,14 @@
Flask-HTMLmin
=============
-
+[](https://pypi.org/project/Flask-HTMLmin/)
+
[](LICENSE)
[](https://travis-ci.org/hamidfzm/Flask-HTMLmin)
[](https://coveralls.io/github/hamidfzm/Flask-HTMLmin?branch=master)
-Minify flask `text/html` mime types responses.
-Just add `MINIFY_PAGE = True` to your deployment config to minify html and
text responses of your flask application.
+Minify flask `text/html` mime type responses.
+Just add `MINIFY_HTML = True` to your deployment config to minify HTML and
text responses of your flask application.
Installation
@@ -16,6 +17,10 @@
pip install Flask-HTMLmin
+Or use pipenv (recommended):
+
+ pipenv install Flask-HTMLmin
+
Or alternatively, you can download the repository and install manually by
doing:
git clone [email protected]:hamidfzm/Flask-HTMLmin.git
@@ -30,7 +35,7 @@
from flask_htmlmin import HTMLMIN
app = Flask(__name__)
-app.config['MINIFY_PAGE'] = True
+app.config['MINIFY_HTML'] = True
htmlmin = HTMLMIN(app)
# or you can use HTMLMIN.init_app(app)
@@ -58,6 +63,6 @@
----
- [x] Test cases
- [x] Route (or URL rule) exemption
-- [ ] Caching
+- [x] Caching (in progress)
- [ ] Minify inline CSS
- [ ] Minify inline Javascript
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-HTMLmin-1.5.0/flask_htmlmin/__init__.py
new/Flask-HTMLmin-1.5.2/flask_htmlmin/__init__.py
--- old/Flask-HTMLmin-1.5.0/flask_htmlmin/__init__.py 2018-10-20
02:34:02.000000000 +0200
+++ new/Flask-HTMLmin-1.5.2/flask_htmlmin/__init__.py 2019-10-23
12:44:42.000000000 +0200
@@ -1,6 +1,7 @@
from functools import wraps
from htmlmin import Minifier
from flask import request, current_app
+import warnings
class HTMLMIN(object):
@@ -21,9 +22,13 @@
**default_options)
def init_app(self, app):
- app.config.setdefault('MINIFY_PAGE', False)
+ app.config.setdefault('MINIFY_HTML', False)
- if app.config['MINIFY_PAGE']:
+ if 'MINIFY_PAGE' in app.config:
+ app.config['MINIFY_HTML'] = app.config['MINIFY_PAGE']
+ warnings.warn('MINIFY_PAGE is deprecated, use MINIFY_HTML
instead', DeprecationWarning, stacklevel=2)
+
+ if app.config['MINIFY_HTML']:
app.after_request(self.response_minify)
def response_minify(self, response):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-HTMLmin-1.5.0/setup.py
new/Flask-HTMLmin-1.5.2/setup.py
--- old/Flask-HTMLmin-1.5.0/setup.py 2018-10-20 02:34:02.000000000 +0200
+++ new/Flask-HTMLmin-1.5.2/setup.py 2019-10-23 12:44:42.000000000 +0200
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
"""
Flask-HTMLmin
@@ -6,11 +7,14 @@
minimize your flask rendered html
"""
-from setuptools import setup
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
setup(
name='Flask-HTMLmin',
- version='1.5.0',
+ version='1.5.2',
url='https://github.com/hamidfzm/Flask-HTMLmin',
license='BSD-3-Clause',
author='Hamid FzM',
@@ -32,12 +36,17 @@
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3.2',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.4',
+ 'Programming Language :: Python :: 3.5',
+ 'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Markup :: HTML',
],
setup_requires=['pytest-runner'],
- test_requires=['pytest']
+ tests_require=['pytest']
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-HTMLmin-1.5.0/test.py
new/Flask-HTMLmin-1.5.2/test.py
--- old/Flask-HTMLmin-1.5.0/test.py 2018-10-20 02:34:02.000000000 +0200
+++ new/Flask-HTMLmin-1.5.2/test.py 2019-10-23 12:44:42.000000000 +0200
@@ -62,3 +62,5 @@
resp = client.get('/exempt').data
assert resp == html_resp.encode()
+
+