Accepting request 942814 from devel:languages:python:django

OBS-URL: https://build.opensuse.org/request/show/942814
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-compressor?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2021-12-28 11:26:17 +00:00 committed by Git OBS Bridge
commit 63bc553648
4 changed files with 31 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3358077605c146fdcca5f9eaffb50aa5dbe15f238f8854679115ebf31c0415e0
size 123800

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c4a87bf65f9a534cfaf1c321a000a229c24e50c6d62ba6ab089482db42e819d9
size 123383

View File

@ -1,3 +1,27 @@
-------------------------------------------------------------------
Sun Dec 26 09:03:25 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
- Re-activate test suite
- Update to v3.1
* Fix error with verbose offline compression when
COMPRESS_OFFLINE_CONTEXT is a generator
- from v3.0
* Officially support for Python 3.9 and 3.10 as well as
Django 3.1, 3.2 and 4.0
* Drop support for Django 1.11, 2.1 and 3.0
* Drop support for Python 2.x and 3.4
* Fix compatibility with Jinja 3.x
* Require django-sekizai 2.0 for django-sekizai extension
* Make template compression in compress command threaded to
improve performance
* Correctly handle relative paths in ``extends`` tags
* Enable ``rCSSMinFilter`` by default
* Fix various deprecation warnings
* Add ability to pass a logger to various classes & methods
* Removed deprecated ``COMPRESS_JS_FILTERS`` and
``COMPRESS_CSS_FILTERS`` settings
* Fix offline compression race condition, which could result in incomplete manifest
-------------------------------------------------------------------
Tue May 25 11:07:13 UTC 2021 - Markéta Machová <mmachova@suse.com>

View File

@ -20,7 +20,7 @@
%define mod_name django_compressor
%define skip_python2 1
Name: python-django-compressor
Version: 2.4.1
Version: 3.1
Release: 0
Summary: Python module to compress linked/inline JavaScript/CSS to cached files
License: Apache-2.0 AND BSD-3-Clause AND MIT
@ -33,7 +33,7 @@ BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module calmjs}
BuildRequires: %{python_module csscompressor}
BuildRequires: %{python_module django-appconf >= 1.0}
BuildRequires: %{python_module django-sekizai >= 0.9.0}
BuildRequires: %{python_module django-sekizai >= 2.0.0}
BuildRequires: %{python_module html5lib}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module mock}
@ -53,7 +53,7 @@ Requires: python-rjsmin >= 1.1.0
Requires: python-slimit
Recommends: python-Brotli >= 1.0.6
Recommends: python-calmjs
Suggests: python-django-sekizai >= 0.9.0
Suggests: python-django-sekizai >= 2.0.0
Provides: python-django_compressor = %{version}
Obsoletes: python-django_compressor < %{version}
BuildArch: noarch
@ -75,9 +75,7 @@ template tag.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# https://github.com/django-compressor/django-compressor/issues/998
# Upstream needs to fix the tests to work with new python stack
#%%python_expand %{_bindir}/django-admin.py-%{$python_bin_suffix} test --settings=compressor.test_settings compressor --pythonpath=`pwd` -v2
%python_expand $python -m django test --settings=compressor.test_settings compressor --pythonpath=`pwd` -v2
%files %{python_files}
%license LICENSE