Accepting request 993153 from devel:languages:python:django

OBS-URL: https://build.opensuse.org/request/show/993153
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-compressor?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2022-08-05 17:51:10 +00:00 committed by Git OBS Bridge
commit fec5cf1638
4 changed files with 31 additions and 7 deletions

View File

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

View File

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

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Thu Aug 4 17:45:11 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 4.1
* Add Django 4.1 compatibility
* New setting ``COMPRESS_OFFLINE_MANIFEST_STORAGE`` to customize
the offline manifest's file storage (#1112) With this change
the function
``compressor.cache.get_offline_manifest_filename()`` has been
removed. You can now use the new file storage
``compressor.storage.default_offline_manifest_storage`` to
access the location of the manifest.
- Release 4.0
* Fix intermittent No such file or directory errors by changing
strategy to deal with duplicate filenames in
CompressorFileStorage
* Deprecate SlimItFilter, stop testing it with Python 3.7 or
higher
-------------------------------------------------------------------
Wed Apr 27 01:58:15 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -16,11 +16,11 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?!python_module:%define python_module() python3-%{**}}
%define mod_name django_compressor
%define skip_python2 1
Name: python-django-compressor
Version: 3.1
Version: 4.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
@ -65,13 +65,17 @@ template tag.
%prep
%setup -q -n %{mod_name}-%{version}
sed -i '1{/env python/d}' compressor/tests/precompiler.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%{python_expand #
echo '/* empty file */' >> %{buildroot}%{$python_sitelib}/compressor/tests/static/CACHE/css/output.e3b0c44298fc.css
%fdupes %{buildroot}%{$python_sitelib}
}
%check
%python_expand $python -m django test --settings=compressor.test_settings compressor --pythonpath=`pwd` -v2
@ -79,6 +83,7 @@ template tag.
%files %{python_files}
%license LICENSE
%doc AUTHORS README.rst
%{python_sitelib}/*
%{python_sitelib}/compressor
%{python_sitelib}/django_compressor-%{version}*-info
%changelog