15
0
forked from pool/python-Pillow

- Update to 12.1.0

* Deprecations
    * Deprecate getdata(), in favour of new get_flattened_data() #9292 [@radarhere]
  * Documentation
    * Specify APNG duration type when opening #9368 [@radarhere]
    * Added release notes for #9350 #9366 [@radarhere]
    * Update ImageMorph documentation #9349 [@radarhere]
    * Docs: update major bump cadence #9334 [@hugovk]
    * Add release notes for #9070 #9320 [@radarhere]
    * Updated Ubuntu version #9306 [@radarhere]
    * Update macOS tested Pillow versions #9265 [@radarhere]
  * Dependencies
    * Update harfbuzz to 12.3.0 #9355 [@radarhere]
    * Update xz to 5.8.2 #9343 [@radarhere]
    * Updated libjpeg-turbo to 3.1.3 #9333 [@radarhere]
    * Updated zlib-ng to 2.3.2 #9324 [@radarhere]
    * Updated libpng to 1.6.53 #9325 [@radarhere]
    * Update actions/checkout action to v6 #9323 [@renovate[bot]]
    * Update dependency mypy to v1.19.0 #9322 [@renovate[bot]]
    * Updated libpng to 1.6.51 #9305 [@radarhere]
    * Updated brotli to 1.2.0 #9284 [@radarhere]
    * Update libimagequant to 4.4.1 #9301 [@radarhere]
    * Update zlib-ng to 2.3.1, except on manylinux2014 aarch64 #9312 [@radarhere]
    * Updated harfbuzz to 12.2.0 #9289 [@radarhere]
    * Update github-actions #9277 [@renovate[bot]]
  * Testing
    * Replace pre-commit with prek #9360 [@hugovk]
    * Test PyQt6 on Python 3.14 on Windows #9353 [@radarhere]
    * Test 32-bit Windows on Windows Server 2022 #9345 [@radarhere]
    * Correct variable type #9335 [@radarhere]

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=172
This commit is contained in:
2026-01-20 07:02:37 +00:00
committed by Git OBS Bridge
commit 5a0313ddea
8 changed files with 3519 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

26
libwebp150.patch Normal file
View 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"))

BIN
pillow-11.3.0.tar.gz LFS Normal file

Binary file not shown.

3
pillow-12.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:87d4f8125c9988bfbed67af47dd7a953e2fc7b0cc1e7800ec6d2080d490bb353
size 47008828

3
pillow-12.1.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5c5ae0a06e9ea030ab786b0251b32c7e4ce10e58d983c0d5c56029455180b5b9
size 46977283

3354
python-Pillow.changes Normal file

File diff suppressed because it is too large Load Diff

106
python-Pillow.spec Normal file
View File

@@ -0,0 +1,106 @@
#
# spec file for package python-Pillow
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-Pillow
Version: 12.1.0
Release: 0
Summary: Python Imaging Library (Fork)
License: HPND
URL: https://python-pillow.github.io
Source: https://files.pythonhosted.org/packages/source/p/pillow/pillow-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module olefile}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pybind11}
BuildRequires: %{python_module pytest >= 4.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tk}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: libimagequant-devel
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: tix
BuildRequires: unzip
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libavif)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(libturbojpeg)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(tk)
BuildRequires: pkgconfig(zlib)
Requires: python-olefile
Obsoletes: python-imaging < %{version}
Provides: python-imaging = %{version}
Obsoletes: python-PIL < %{version}
Provides: python-PIL = %{version}
%if 0%{?suse_version} >= 1500
BuildRequires: pkgconfig(libopenjp2)
%endif
%python_subpackages
%description
Pillow is the "friendly" PIL fork by Alex Clark and Contributors. PIL is the
Python Imaging Library by Fredrik Lundh and Contributors.
%package tk
Summary: Python Imaging Library (Fork) - Tcl/Tk Module
Requires: %{name} = %{version}
Requires: python-tk
%description tk
Pillow is the "friendly" PIL fork by Alex Clark and Contributors. PIL is the
Python Imaging Library by Fredrik Lundh and Contributors.
%prep
%autosetup -p1 -n pillow-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
# add missing path
%{python_expand echo "PIL" > %{buildroot}%{$python_sitearch}/PIL.pth}
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} PYTHONDONTWRITEBYTECODE=1
$python selftest.py --installed
pytest-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.pypy3 -v -k 'not (test_stroke or test_stroke_multiline)'
}
%files %{python_files}
%license LICENSE
%doc CHANGES.rst README.md
%{python_sitearch}/PIL
%{python_sitearch}/PIL.pth
%{python_sitearch}/pillow-%{version}.dist-info
%exclude %{python_sitearch}/PIL/ImageTk*
%exclude %{python_sitearch}/PIL/_imagingtk*
%pycache_only %exclude %{python_sitearch}/PIL/__pycache__/ImageTk.*
%files %{python_files tk}
%{python_sitearch}/PIL/ImageTk*
%{python_sitearch}/PIL/_imagingtk*
%pycache_only %{python_sitearch}/PIL/__pycache__/ImageTk.*
%changelog