forked from pool/python-Pillow
Accepting request 1255622 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1255622 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pillow?expand=0&rev=71
This commit is contained in:
26
libwebp150.patch
Normal file
26
libwebp150.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
Index: pillow-11.1.0/Tests/test_file_webp_animated.py
|
||||
===================================================================
|
||||
--- pillow-11.1.0.orig/Tests/test_file_webp_animated.py
|
||||
+++ pillow-11.1.0/Tests/test_file_webp_animated.py
|
||||
@@ -52,8 +52,8 @@ def test_write_animation_L(tmp_path: Pat
|
||||
if is_big_endian():
|
||||
version = features.version_module("webp")
|
||||
assert version is not None
|
||||
- if parse_version(version) < parse_version("1.2.2"):
|
||||
- pytest.skip("Fails with libwebp earlier than 1.2.2")
|
||||
+ if parse_version(version) < parse_version("1.2.2") or parse_version(version) > parse_version("1.4.0"):
|
||||
+ pytest.skip("Fails with libwebp earlier than 1.2.2 and greater than 1.4.0")
|
||||
orig.seek(orig.n_frames - 1)
|
||||
im.seek(im.n_frames - 1)
|
||||
orig.load()
|
||||
@@ -79,8 +79,8 @@ def test_write_animation_RGB(tmp_path: P
|
||||
if is_big_endian():
|
||||
version = features.version_module("webp")
|
||||
assert version is not None
|
||||
- if parse_version(version) < parse_version("1.2.2"):
|
||||
- pytest.skip("Fails with libwebp earlier than 1.2.2")
|
||||
+ if parse_version(version) < parse_version("1.2.2") or parse_version(version) > parse_version("1.4.0"):
|
||||
+ pytest.skip("Fails with libwebp earlier than 1.2.2 and greater than 1.4.0")
|
||||
im.seek(1)
|
||||
im.load()
|
||||
assert_image_equal(im, frame2.convert("RGBA"))
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 24 12:38:24 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Add patch libwebp150.patch to skip tests failing on s390x
|
||||
* reported: https://github.com/python-pillow/Pillow/issues/8831
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 13 08:31:53 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ Summary: Python Imaging Library (Fork)
|
||||
License: HPND
|
||||
URL: https://python-pillow.org/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pillow/pillow-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM as per https://github.com/python-pillow/Pillow/issues/8831
|
||||
Patch: libwebp150.patch
|
||||
BuildRequires: %{python_module devel >= 3.8}
|
||||
BuildRequires: %{python_module olefile}
|
||||
BuildRequires: %{python_module pip}
|
||||
|
||||
Reference in New Issue
Block a user