Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pilkit for openSUSE:Factory 
checked in at 2022-04-06 21:52:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pilkit (Old)
 and      /work/SRC/openSUSE:Factory/.python-pilkit.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pilkit"

Wed Apr  6 21:52:18 2022 rev:6 rq:967353 version:2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pilkit/python-pilkit.changes      
2021-09-06 15:58:20.629290860 +0200
+++ /work/SRC/openSUSE:Factory/.python-pilkit.new.1900/python-pilkit.changes    
2022-04-06 21:52:52.578618926 +0200
@@ -1,0 +2,8 @@
+Wed Apr  6 10:37:26 UTC 2022 - pgaj...@suse.com
+
+- do not require python-mock for build
+- added patches
+  fix https://github.com/matthewwithanm/pilkit/issues/54
+  + python-pilkit-no-mock.patch
+
+-------------------------------------------------------------------

New:
----
  python-pilkit-no-mock.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pilkit.spec ++++++
--- /var/tmp/diff_new_pack.evFIgi/_old  2022-04-06 21:52:52.998614133 +0200
+++ /var/tmp/diff_new_pack.evFIgi/_new  2022-04-06 21:52:53.002614087 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pilkit
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,13 +26,14 @@
 Source:         
https://files.pythonhosted.org/packages/source/p/pilkit/pilkit-%{version}.tar.gz
 Patch0:         pil-fix-test.patch
 Patch1:         switch-to-pytest.patch
+# https://github.com/matthewwithanm/pilkit/issues/54
+Patch2:         python-pilkit-no-mock.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module Pillow}
-BuildRequires:  %{python_module mock >= 1.0.1}
 BuildRequires:  %{python_module pytest}
 # /SECTION
 %python_subpackages

++++++ python-pilkit-no-mock.patch ++++++
Index: pilkit-2.0/tests/test_processors.py
===================================================================
--- pilkit-2.0.orig/tests/test_processors.py
+++ pilkit-2.0/tests/test_processors.py
@@ -4,7 +4,7 @@ from pilkit.processors import (Resize, R
 import os
 from pilkit.processors.resize import Thumbnail
 from .utils import create_image, eq_, assert_true
-import mock
+import unittest.mock as mock
 
 
 def test_smartcrop():
Index: pilkit-2.0/tests/test_utils.py
===================================================================
--- pilkit-2.0.orig/tests/test_utils.py
+++ pilkit-2.0/tests/test_utils.py
@@ -5,7 +5,7 @@ from pilkit.lib import Image
 from pilkit.utils import (extension_to_format, format_to_extension, 
FileWrapper,
                           save_image, prepare_image, quiet)
 from pytest import raises
-from mock import Mock, patch
+from unittest.mock import Mock, patch
 from tempfile import NamedTemporaryFile
 from .utils import create_image, eq_, assert_true
 

Reply via email to