Hello community,
here is the log from the commit of package python-django_compressor for
openSUSE:Factory checked in at 2019-09-18 13:11:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django_compressor (Old)
and /work/SRC/openSUSE:Factory/.python-django_compressor.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django_compressor"
Wed Sep 18 13:11:08 2019 rev:15 rq:731171 version:2.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django_compressor/python-django_compressor.changes
2019-06-03 18:57:41.200377305 +0200
+++
/work/SRC/openSUSE:Factory/.python-django_compressor.new.7948/python-django_compressor.changes
2019-09-18 13:11:08.948693568 +0200
@@ -1,0 +2,5 @@
+Sat Sep 14 10:51:15 UTC 2019 - John Vandenberg <[email protected]>
+
+- Add pr_956.patch to fix tests to use sys.executable
+
+-------------------------------------------------------------------
New:
----
pr_956.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django_compressor.spec ++++++
--- /var/tmp/diff_new_pack.qJPsTB/_old 2019-09-18 13:11:09.612693429 +0200
+++ /var/tmp/diff_new_pack.qJPsTB/_new 2019-09-18 13:11:09.612693429 +0200
@@ -26,6 +26,7 @@
Group: Development/Languages/Python
URL: https://github.com/django-compressor/django-compressor
Source:
https://files.pythonhosted.org/packages/source/d/%{mod_name}/%{mod_name}-%{version}.tar.gz
+Patch0: pr_956.patch
BuildRequires: %{python_module Brotli >= 1.0.6}
BuildRequires: %{python_module Django >= 1.11}
BuildRequires: %{python_module Jinja2}
@@ -58,6 +59,7 @@
%prep
%setup -q -n %{mod_name}-%{version}
+%patch0 -p1
%build
%python_build
++++++ pr_956.patch ++++++
>From 87c00d0cd0a19196e2ceae45d850fa053121067a Mon Sep 17 00:00:00 2001
From: John Vandenberg <[email protected]>
Date: Sat, 14 Sep 2019 17:48:14 +0700
Subject: [PATCH] test_base: Use sys.executable
---
compressor/tests/test_base.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compressor/tests/test_base.py b/compressor/tests/test_base.py
index 7418047a..fcbcf13b 100644
--- a/compressor/tests/test_base.py
+++ b/compressor/tests/test_base.py
@@ -1,6 +1,7 @@
from __future__ import with_statement, unicode_literals
import os
import re
+import sys
from tempfile import mkdtemp
from shutil import rmtree, copytree
@@ -317,7 +318,7 @@ def test_avoid_reordering_css(self):
self.assertEqual(media, [l.get('media', None) for l in links])
@override_settings(COMPRESS_PRECOMPILERS=(
- ('text/foobar', 'python %s {infile} {outfile}' %
os.path.join(test_dir, 'precompiler.py')),
+ ('text/foobar', '%s %s {infile} {outfile}' % (sys.executable,
os.path.join(test_dir, 'precompiler.py'))),
), COMPRESS_ENABLED=False)
def test_passthough_when_compress_disabled(self):
css = """\