From 7d21fcec297833589efe3898fa442cc16d37cf356e97dfa76d9891b41b1625c4 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 4 Aug 2022 21:07:45 +0000 Subject: [PATCH] Accepting request 993123 from home:bnavigator:branches:devel:languages:python:mailman - 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 OBS-URL: https://build.opensuse.org/request/show/993123 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-compressor?expand=0&rev=16 --- django_compressor-3.1.tar.gz | 3 --- django_compressor-4.1.tar.gz | 3 +++ python-django-compressor.changes | 19 +++++++++++++++++++ python-django-compressor.spec | 13 +++++++++---- 4 files changed, 31 insertions(+), 7 deletions(-) delete mode 100644 django_compressor-3.1.tar.gz create mode 100644 django_compressor-4.1.tar.gz diff --git a/django_compressor-3.1.tar.gz b/django_compressor-3.1.tar.gz deleted file mode 100644 index 648cebf..0000000 --- a/django_compressor-3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c4a87bf65f9a534cfaf1c321a000a229c24e50c6d62ba6ab089482db42e819d9 -size 123383 diff --git a/django_compressor-4.1.tar.gz b/django_compressor-4.1.tar.gz new file mode 100644 index 0000000..afad839 --- /dev/null +++ b/django_compressor-4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ece621d2a98f6c6635480cb8b3701db890a99f793f95ca20cb00abc194d331d +size 123694 diff --git a/python-django-compressor.changes b/python-django-compressor.changes index 6523609..de4c376 100644 --- a/python-django-compressor.changes +++ b/python-django-compressor.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Thu Aug 4 17:45:11 UTC 2022 - Ben Greiner + +- 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 diff --git a/python-django-compressor.spec b/python-django-compressor.spec index 5bdf602..f32ee57 100644 --- a/python-django-compressor.spec +++ b/python-django-compressor.spec @@ -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