Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
2e49ad49a0 add missing sources 2026-06-04 08:25:45 +02:00
5b178e954f update to 69.0 2026-06-04 08:20:42 +02:00
a9b6db9ee6 update to 68.1 2026-02-07 22:09:29 +01:00
0b00509bbf update to 68.0 2026-01-20 15:55:50 +01:00
3 changed files with 71 additions and 3 deletions

View file

@ -1 +1 @@
SHA512 (weasyprint-66.0.tar.gz) = 850996c6934156f4d4fca12cc052a8346b85aeadf1a3d99763e20a6ddabd2b93a39983615990e0e680a942c63c09563effa9b66abc5bf0c368963737ddf66264
SHA512 (weasyprint-69.0.tar.gz) = fb56d7f6173f8a67f8ef4c31408c03625b0a774d0efde003f779e3da054737c88afe9f44ee40b6dda5fc92cfacfa5709d4d96bf1a112862d309eaf2d93881ef6

View file

@ -0,0 +1,57 @@
revert upstream commit 9a3ef379 to support pillow < 12.1 again
diff --git a/pyproject.toml b/pyproject.toml
index fdacf37..8c55cc0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -52,7 +52,7 @@ Donation = 'https://opencollective.com/courtbouillon'
[project.optional-dependencies]
doc = ['sphinx', 'furo']
-test = ['pytest', 'ruff', 'Pillow >=12.1.0']
+test = ['pytest', 'ruff']
[project.scripts]
weasyprint = 'weasyprint.__main__:main'
diff --git a/tests/draw/__init__.py b/tests/draw/__init__.py
index 9464910..7b10948 100644
--- a/tests/draw/__init__.py
+++ b/tests/draw/__init__.py
@@ -134,4 +134,4 @@ def html_to_pixels(html):
def document_to_pixels(document):
"""Render an HTML document to PNG, check its size and return pixel data."""
image = Image.open(io.BytesIO(document.write_png()))
- return image.width, image.height, image.get_flattened_data()
+ return image.width, image.height, image.getdata()
diff --git a/tests/test_acid2.py b/tests/test_acid2.py
index 14234c7..d182cab 100644
--- a/tests/test_acid2.py
+++ b/tests/test_acid2.py
@@ -23,12 +23,12 @@ def test_acid2(assert_pixels_equal):
intro_page, test_page = document.pages
# Ignore the intro page: it is not in the reference
test_png = document.copy([test_page]).write_png()
- test_pixels = Image.open(io.BytesIO(test_png)).get_flattened_data()
+ test_pixels = Image.open(io.BytesIO(test_png)).getdata()
# This is a copy of https://www.webstandards.org/files/acid2/reference.html
ref_png = render('acid2-reference.html').write_png()
ref_image = Image.open(io.BytesIO(ref_png))
- ref_pixels = ref_image.get_flattened_data()
+ ref_pixels = ref_image.getdata()
width, height = ref_image.size
assert_pixels_equal(width, height, test_pixels, ref_pixels, tolerance=2)
diff --git a/tests/test_api.py b/tests/test_api.py
index 57871a1..65dd0de 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -301,7 +301,7 @@ def check_png_pattern(assert_pixels_equal, png_bytes, x2=False, blank=False,
'''
image = Image.open(io.BytesIO(png_bytes))
width, height, pixels = parse_pixels(expected_pixels)
- assert_pixels_equal(width, height, image.get_flattened_data(), pixels)
+ assert_pixels_equal(width, height, image.getdata(), pixels)
@assert_no_logs

View file

@ -2,13 +2,14 @@
%global srcname weasyprint
Name: weasyprint
Version: 66.0
Release: 3%{?dist}
Version: 69.0
Release: 1%{?dist}
Summary: Utility to render HTML and CSS to PDF
License: BSD-3-Clause
URL: https://weasyprint.org
Source0: %{pypi_source weasyprint}
Patch1: weasyprint-remove-pillow-12-requirement.patch
BuildArch: noarch
@ -19,6 +20,7 @@ BuildRequires: pyproject-rpm-macros
BuildRequires: python3dist(flit-core)
# requirements for testing
BuildRequires: dejavu-fonts-all
BuildRequires: google-noto-emoji-fonts
BuildRequires: ghostscript
# https://doc.courtbouillon.org/weasyprint/latest/first_steps.html
BuildRequires: pango >= 1.44.0
@ -76,6 +78,15 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests
%{python3_sitelib}/%{modname}/
%changelog
* Thu Jun 04 2026 Felix Schwarz <fschwarz@fedoraproject.org> - 69.0-1
- update to 69.0
* Sat Feb 07 2026 Felix Schwarz <fschwarz@fedoraproject.org> - 68.1-1
- update to 68.1
* Tue Jan 20 2026 Felix Schwarz <fschwarz@fedoraproject.org> - 68.0-1
- update to 68.0
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 66.0-3
- Rebuilt for Python 3.14.0rc3 bytecode