Hello community, here is the log from the commit of package python-pilkit for openSUSE:Leap:15.2 checked in at 2020-03-09 18:10:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-pilkit (Old) and /work/SRC/openSUSE:Leap:15.2/.python-pilkit.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pilkit" Mon Mar 9 18:10:23 2020 rev:11 rq:776917 version:2.0 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-pilkit/python-pilkit.changes 2020-01-15 15:51:34.203533479 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-pilkit.new.26092/python-pilkit.changes 2020-03-09 18:10:25.133115148 +0100 @@ -1,0 +2,13 @@ +Fri Jan 18 10:15:40 UTC 2019 - Tomáš Chvátal <[email protected]> + +- 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 + +------------------------------------------------------------------- +Tue Dec 4 12:51:33 UTC 2018 - Matej Cepl <[email protected]> + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- New: ---- pil-fix-test.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pilkit.spec ++++++ --- /var/tmp/diff_new_pack.DOYfOx/_old 2020-03-09 18:10:25.433115578 +0100 +++ /var/tmp/diff_new_pack.DOYfOx/_new 2020-03-09 18:10:25.437115584 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pilkit # -# 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,7 +12,8 @@ # 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-%{**}} @@ -20,27 +21,24 @@ Name: python-pilkit Version: 2.0 Release: 0 -License: BSD-3-Clause Summary: A collection of utilities and processors for the Python Imaging Libary -Url: http://github.com/matthewwithanm/pilkit/ +License: BSD-3-Clause Group: Development/Languages/Python +URL: http://github.com/matthewwithanm/pilkit/ Source: https://files.pythonhosted.org/packages/source/p/pilkit/pilkit-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} +Patch0: pil-fix-test.patch BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch # SECTION test requirements %if %{with test} -BuildRequires: %{python_module mock >= 1.0.1} -BuildRequires: %{python_module nose-progressive >= 1.5.1} - +BuildRequires: %{python_module Pillow} BuildRequires: %{python_module mock >= 1.0.1} BuildRequires: %{python_module nose >= 1.3.6} -BuildRequires: %{python_module Pillow} +BuildRequires: %{python_module nose-progressive >= 1.5.1} %endif # /SECTION -BuildRequires: fdupes -BuildArch: noarch - %python_subpackages %description @@ -52,6 +50,7 @@ %prep %setup -q -n pilkit-%{version} +%patch0 -p1 %build %python_build @@ -66,8 +65,8 @@ %endif %files %{python_files} -%defattr(-,root,root,-) -%doc AUTHORS LICENSE README.rst +%license LICENSE +%doc AUTHORS README.rst %{python_sitelib}/* %changelog ++++++ 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')
