Hello community,
here is the log from the commit of package python-pilkit for openSUSE:Factory checked in at 2019-01-21 10:59:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pilkit (Old)
and /work/SRC/openSUSE:Factory/.python-pilkit.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pilkit"
Mon Jan 21 10:59:49 2019 rev:3 rq:666942 version:2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pilkit/python-pilkit.changes 2018-12-24 11:41:14.621460021 +0100
+++ /work/SRC/openSUSE:Factory/.python-pilkit.new.28833/python-pilkit.changes 2019-01-21 11:01:51.847158000 +0100
@@ -1,0 +2,8 @@
+Fri Jan 18 10:15:40 UTC 2019 - Tomáš Chvátal
+
+- Add patch to fix tests with new PIL (due to ordering there were
+ 2 png returns and randomly on py2 it could return apng instead
+ of just png:
+ * pil-fix-test.patch
+
+-------------------------------------------------------------------
New:
----
pil-fix-test.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pilkit.spec ++++++
--- /var/tmp/diff_new_pack.EZ5Cpg/_old 2019-01-21 11:01:52.279157443 +0100
+++ /var/tmp/diff_new_pack.EZ5Cpg/_new 2019-01-21 11:01:52.283157437 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pilkit
#
-# Copyright (c) 2018 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
@@ -26,6 +26,7 @@
Group: Development/Languages/Python
URL: http://github.com/matthewwithanm/pilkit/
Source: https://files.pythonhosted.org/packages/source/p/pilkit/pilkit-%{version}.tar.gz
+Patch0: pil-fix-test.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -49,6 +50,7 @@
%prep
%setup -q -n pilkit-%{version}
+%patch0 -p1
%build
%python_build
++++++ pil-fix-test.patch ++++++
Index: pilkit-2.0/tests/test_utils.py
===================================================================
--- pilkit-2.0.orig/tests/test_utils.py
+++ pilkit-2.0/tests/test_utils.py
@@ -16,7 +16,7 @@ def test_extension_to_format():
def test_format_to_extension_no_init():
- eq_(format_to_extension('PNG'), '.png')
+ eq_(format_to_extension('GIF'), '.gif')
eq_(format_to_extension('ICO'), '.ico')