Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-django-compressor for
openSUSE:Factory checked in at 2023-07-19 19:11:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-compressor (Old)
and /work/SRC/openSUSE:Factory/.python-django-compressor.new.5570 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-compressor"
Wed Jul 19 19:11:40 2023 rev:12 rq:1099493 version:4.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django-compressor/python-django-compressor.changes
2023-06-26 18:15:59.810444499 +0200
+++
/work/SRC/openSUSE:Factory/.python-django-compressor.new.5570/python-django-compressor.changes
2023-07-19 19:11:58.433036353 +0200
@@ -1,0 +2,8 @@
+Tue Jul 18 08:25:44 UTC 2023 - Markéta Machová <[email protected]>
+
+- Update to 4.4
+ * Full list of changes from v4.3.1
<https://github.com/django-compressor/django-compressor/compare/4.3.1...4.4>
+ * Officially support Django 4.2
+- Add upstream patch lstrip.patch
+
+-------------------------------------------------------------------
Old:
----
django_compressor-4.3.1.tar.gz
New:
----
django_compressor-4.4.tar.gz
lstrip.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-compressor.spec ++++++
--- /var/tmp/diff_new_pack.SpaoEO/_old 2023-07-19 19:11:59.813044425 +0200
+++ /var/tmp/diff_new_pack.SpaoEO/_new 2023-07-19 19:11:59.821044471 +0200
@@ -19,12 +19,14 @@
%{?sle15_python_module_pythons}
%define mod_name django_compressor
Name: python-django-compressor
-Version: 4.3.1
+Version: 4.4
Release: 0
Summary: Python module to compress linked/inline JavaScript/CSS to
cached files
License: Apache-2.0 AND BSD-3-Clause AND MIT
URL: https://github.com/django-compressor/django-compressor
Source:
https://files.pythonhosted.org/packages/source/d/%{mod_name}/%{mod_name}-%{version}.tar.gz
+#PATCH-FIX-UPSTREAM
https://github.com/django-compressor/django-compressor/pull/1196 Add
LazyScriptNamePrefixedUrl.lstrip to fix tests
+Patch: lstrip.patch
BuildRequires: %{python_module Brotli >= 1.0.6}
BuildRequires: %{python_module Django >= 2.2}
BuildRequires: %{python_module Jinja2}
@@ -64,11 +66,8 @@
%prep
%setup -q -n %{mod_name}-%{version}
+%autopatch -p1
sed -i '1{/env python/d}' compressor/tests/precompiler.py
-# Fix broken tests related to jijna2
-# gh#django-compressor/django-compressor#1139
-# gh#django-compressor/django-compressor@bcdd21956a84
-sed -i '/jinja2.ext.with_/d' compressor/tests/test_offline.py
%build
%python_build
++++++ django_compressor-4.3.1.tar.gz -> django_compressor-4.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django_compressor-4.3.1/PKG-INFO
new/django_compressor-4.4/PKG-INFO
--- old/django_compressor-4.3.1/PKG-INFO 2023-01-22 13:43:34.202607000
+0100
+++ new/django_compressor-4.4/PKG-INFO 2023-06-28 00:12:17.650319300 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: django_compressor
-Version: 4.3.1
+Version: 4.4
Summary: ('Compresses linked and inline JavaScript or CSS into single cached
files.',)
Home-page: https://django-compressor.readthedocs.io/en/latest/
Maintainer: Mathieu Pillard
@@ -11,6 +11,7 @@
Classifier: Framework :: Django :: 3.2
Classifier: Framework :: Django :: 4.0
Classifier: Framework :: Django :: 4.1
+Classifier: Framework :: Django :: 4.2
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django_compressor-4.3.1/compressor/__init__.py
new/django_compressor-4.4/compressor/__init__.py
--- old/django_compressor-4.3.1/compressor/__init__.py 2023-01-22
13:40:08.000000000 +0100
+++ new/django_compressor-4.4/compressor/__init__.py 2023-06-28
00:11:30.000000000 +0200
@@ -1,2 +1,2 @@
# following PEP 386
-__version__ = "4.3.1"
+__version__ = "4.4"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/django_compressor-4.3.1/compressor/tests/test_utils.py
new/django_compressor-4.4/compressor/tests/test_utils.py
--- old/django_compressor-4.3.1/compressor/tests/test_utils.py 2023-01-06
18:29:41.000000000 +0100
+++ new/django_compressor-4.4/compressor/tests/test_utils.py 2023-06-28
00:11:30.000000000 +0200
@@ -8,7 +8,7 @@
from compressor.exceptions import FilterError
from compressor.utils import get_class
-from imp import reload
+from importlib import reload
def get_apps_without_staticfiles(apps):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/django_compressor-4.3.1/django_compressor.egg-info/PKG-INFO
new/django_compressor-4.4/django_compressor.egg-info/PKG-INFO
--- old/django_compressor-4.3.1/django_compressor.egg-info/PKG-INFO
2023-01-22 13:43:34.000000000 +0100
+++ new/django_compressor-4.4/django_compressor.egg-info/PKG-INFO
2023-06-28 00:12:17.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: django-compressor
-Version: 4.3.1
+Version: 4.4
Summary: ('Compresses linked and inline JavaScript or CSS into single cached
files.',)
Home-page: https://django-compressor.readthedocs.io/en/latest/
Maintainer: Mathieu Pillard
@@ -11,6 +11,7 @@
Classifier: Framework :: Django :: 3.2
Classifier: Framework :: Django :: 4.0
Classifier: Framework :: Django :: 4.1
+Classifier: Framework :: Django :: 4.2
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django_compressor-4.3.1/docs/behind-the-scenes.txt
new/django_compressor-4.4/docs/behind-the-scenes.txt
--- old/django_compressor-4.3.1/docs/behind-the-scenes.txt 2023-01-22
13:40:08.000000000 +0100
+++ new/django_compressor-4.4/docs/behind-the-scenes.txt 2023-06-28
00:11:30.000000000 +0200
@@ -34,7 +34,7 @@
A compressor instance is created, which in turns instantiates the HTML parser.
The parser is used to determine a file or code hunk list. Each file mtime is
checked, first in cache and then on disk/storage, and this is used to
-determine an unique cache key.
+determine a unique cache key.
Second step: Checking the "main" cache
--------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django_compressor-4.3.1/docs/changelog.txt
new/django_compressor-4.4/docs/changelog.txt
--- old/django_compressor-4.3.1/docs/changelog.txt 2023-01-22
13:40:08.000000000 +0100
+++ new/django_compressor-4.4/docs/changelog.txt 2023-06-28
00:11:30.000000000 +0200
@@ -1,6 +1,14 @@
Changelog
=========
+v4.4 (2023-06-28)
+-------------------
+
+`Full list of changes from v4.3.1
<https://github.com/django-compressor/django-compressor/compare/4.3.1...4.4>`_
+
+- Officially support Django 4.2
+
+
v4.3.1 (2023-01-22)
-------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django_compressor-4.3.1/setup.py
new/django_compressor-4.4/setup.py
--- old/django_compressor-4.3.1/setup.py 2023-01-22 13:40:08.000000000
+0100
+++ new/django_compressor-4.4/setup.py 2023-06-28 00:11:30.000000000 +0200
@@ -149,6 +149,7 @@
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
+ "Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/django_compressor-4.3.1/tox.ini
new/django_compressor-4.4/tox.ini
--- old/django_compressor-4.3.1/tox.ini 2023-01-21 00:59:53.000000000 +0100
+++ new/django_compressor-4.4/tox.ini 2023-06-28 00:11:30.000000000 +0200
@@ -3,6 +3,7 @@
{py38,py39,py310}-3.2.X
{py38,py39,py310}-4.0.X
{py38,py39,py310,py311}-4.1.X
+ {py38,py39,py310,py311}-4.2.X
[testenv]
basepython =
py38: python3.8
@@ -20,4 +21,5 @@
3.2.X: Django>=3.2,<4.0
4.0.X: Django>=4.0,<4.1
4.1.X: Django>=4.1,<4.2
+ 4.2.X: Django>=4.2,<5.0
-r{toxinidir}/requirements/tests.txt
++++++ lstrip.patch ++++++
>From 1afd937f6a49b10013c1df71b53d054170efdce4 Mon Sep 17 00:00:00 2001
From: bcail <[email protected]>
Date: Mon, 3 Jul 2023 17:24:39 +0000
Subject: [PATCH] Add `LazyScriptNamePrefixedUrl.lstrip` to fix tests (#1196)
Needed because of cpython PR
https://github.com/python/cpython/pull/104575
---
compressor/tests/test_offline.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/compressor/tests/test_offline.py b/compressor/tests/test_offline.py
index c208048e..c49d1277 100644
--- a/compressor/tests/test_offline.py
+++ b/compressor/tests/test_offline.py
@@ -58,6 +58,12 @@ def __unicode__(self):
def __hash__(self):
return str.__hash__(str(self))
+ def lstrip(self, *args, **kwargs):
+ """
+ Override ``.lstrip()`` method to make it work with ``{% static %}``.
+ """
+ return str(self).lstrip(*args, **kwargs)
+
def split(self, *args, **kwargs):
"""
Override ``.split()`` method to make it work with ``{% static %}``.