Hello community,
here is the log from the commit of package python-django_compressor for
openSUSE:Factory checked in at 2019-01-11 14:03:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django_compressor (Old)
and /work/SRC/openSUSE:Factory/.python-django_compressor.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django_compressor"
Fri Jan 11 14:03:54 2019 rev:13 rq:662872 version:2.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django_compressor/python-django_compressor.changes
2017-11-16 14:02:48.897710369 +0100
+++
/work/SRC/openSUSE:Factory/.python-django_compressor.new.28833/python-django_compressor.changes
2019-01-11 14:04:33.119856627 +0100
@@ -1,0 +2,21 @@
+Fri Jan 4 14:44:11 UTC 2019 - Jan Engelhardt <[email protected]>
+
+- Use noun phrase for summary.
+
+-------------------------------------------------------------------
+Thu Jan 3 11:41:08 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add patch to build with django 2.0:
+ * compressor-django2.patch
+
+-------------------------------------------------------------------
+Thu Jan 3 07:53:15 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add missing dependencies
+
+-------------------------------------------------------------------
+Tue Dec 11 09:47:19 UTC 2018 - Tomáš Chvátal <[email protected]>
+
+- Enable testsuite (currently failing)
+
+-------------------------------------------------------------------
New:
----
compressor-django2.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django_compressor.spec ++++++
--- /var/tmp/diff_new_pack.qfLMR6/_old 2019-01-11 14:04:33.659856084 +0100
+++ /var/tmp/diff_new_pack.qfLMR6/_new 2019-01-11 14:04:33.663856079 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-django_compressor
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,39 +12,42 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-
%define mod_name django_compressor
-
Name: python-%{mod_name}
Version: 2.2
Release: 0
-Summary: Compresses Linked and Inline JavaScript or CSS Into Single
Cached Files
-License: MIT and BSD-3-Clause and Apache-2.0
+Summary: Python module to compress linked/inline JavaScript/CSS to
cached files
+License: MIT AND BSD-3-Clause AND Apache-2.0
Group: Development/Languages/Python
-Url: http://django_compressor.readthedocs.org/
+URL: https://github.com/django-compressor/django-compressor
Source:
https://files.pythonhosted.org/packages/source/d/%{mod_name}/%{mod_name}-%{version}.tar.gz
-BuildRequires: %{python_module devel}
+Patch0: compressor-django2.patch
+BuildRequires: %{python_module Django}
+BuildRequires: %{python_module Jinja2}
+BuildRequires: %{python_module beautifulsoup4}
+BuildRequires: %{python_module csscompressor}
+BuildRequires: %{python_module django-appconf >= 1.0}
+BuildRequires: %{python_module django-sekizai >= 0.9.0}
+BuildRequires: %{python_module mock}
+BuildRequires: %{python_module rcssmin >= 1.0.6}
+BuildRequires: %{python_module rjsmin >= 1.0.12}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Django
+Requires: python-Jinja2
+Requires: python-beautifulsoup4
+Requires: python-csscompressor
Requires: python-django-appconf >= 1.0
Requires: python-rcssmin >= 1.0.6
Requires: python-rjsmin >= 1.0.12
-%if 0%{?suse_version}
-Suggests: python-beautifulsoup
-Suggests: python-html5lib
-Suggests: python-lxml
-Suggests: python-slimit
-%endif
+Suggests: python-django-sekizai >= 0.9.0
BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-
%python_subpackages
%description
@@ -54,6 +57,7 @@
%prep
%setup -q -n %{mod_name}-%{version}
+%patch0 -p1
%build
%python_build
@@ -62,9 +66,12 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%check
+%python_expand %{_bindir}/django-admin.py-%{$python_bin_suffix} test
--settings=compressor.test_settings compressor --pythonpath=`pwd`
+
%files %{python_files}
-%defattr(-,root,root,-)
-%doc AUTHORS LICENSE README.rst
+%license LICENSE
+%doc AUTHORS README.rst
%{python_sitelib}/*
%changelog
++++++ compressor-django2.patch ++++++
diff --git a/django_compressor-2.2.old/compressor/tests/test_offline.py
b/django_compressor-2.2/compressor/tests/test_offline.py
index 1001a95..02bed78 100644
--- django_compressor-2.2.old/compressor/tests/test_offline.py
+++ django_compressor-2.2/compressor/tests/test_offline.py
@@ -745,7 +745,6 @@ class TestCompressCommand(OfflineTestCaseMixin, TestCase):
opts = {
"force": True,
"verbosity": 0,
- "log": StringIO(),
}
call_command('compress', engines=["django"], **opts)