From a81b0ff2a5336249fa9f5cfee3b51edb9d122a2c Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Wed, 3 Dec 2025 20:16:12 +0100 Subject: [PATCH 01/11] update to 67.0 --- sources | 2 +- weasyprint.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index bf47f17..3cabcc1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (weasyprint-66.0.tar.gz) = 850996c6934156f4d4fca12cc052a8346b85aeadf1a3d99763e20a6ddabd2b93a39983615990e0e680a942c63c09563effa9b66abc5bf0c368963737ddf66264 +SHA512 (weasyprint-67.0.tar.gz) = e0241507e57aaee18e0f6ae469de12df4ae4930a5e9f7e9ef428fbd6eb59efe40598423e6ce6de5c12d088439d30ec562cc28f342c7720e742ab16d8110380f1 diff --git a/weasyprint.spec b/weasyprint.spec index d7b1654..c56e0a3 100644 --- a/weasyprint.spec +++ b/weasyprint.spec @@ -2,8 +2,8 @@ %global srcname weasyprint Name: weasyprint -Version: 66.0 -Release: 3%{?dist} +Version: 67.0 +Release: 1%{?dist} Summary: Utility to render HTML and CSS to PDF License: BSD-3-Clause @@ -76,6 +76,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests %{python3_sitelib}/%{modname}/ %changelog +* Wed Dec 03 2025 Felix Schwarz - 67.0-1 +- update to 67.0 + * Fri Sep 19 2025 Python Maint - 66.0-3 - Rebuilt for Python 3.14.0rc3 bytecode From 5d312000ebe512f91f6356d0b6218edb4bb99c05 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 17 Jan 2026 20:10:01 +0000 Subject: [PATCH 02/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- weasyprint.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weasyprint.spec b/weasyprint.spec index c56e0a3..09dc98f 100644 --- a/weasyprint.spec +++ b/weasyprint.spec @@ -3,7 +3,7 @@ Name: weasyprint Version: 67.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Utility to render HTML and CSS to PDF License: BSD-3-Clause @@ -76,6 +76,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests %{python3_sitelib}/%{modname}/ %changelog +* Sat Jan 17 2026 Fedora Release Engineering - 67.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Wed Dec 03 2025 Felix Schwarz - 67.0-1 - update to 67.0 From f5ef1f00bc980bd2830d8e4a7224515d6c77483f Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Tue, 20 Jan 2026 15:24:17 +0100 Subject: [PATCH 03/11] update to 68.0 --- sources | 2 +- weasyprint.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 3cabcc1..7169770 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (weasyprint-67.0.tar.gz) = e0241507e57aaee18e0f6ae469de12df4ae4930a5e9f7e9ef428fbd6eb59efe40598423e6ce6de5c12d088439d30ec562cc28f342c7720e742ab16d8110380f1 +SHA512 (weasyprint-68.0.tar.gz) = f2a8e74df2c01e2f52dbeb4ffc94f41feeea03dce70f83aa482c2d63bac4d0be16f2ac4f6e203edd5eb5395a7aae38659b8ec8b12c946e685554b500695d2c7b diff --git a/weasyprint.spec b/weasyprint.spec index 09dc98f..be54a64 100644 --- a/weasyprint.spec +++ b/weasyprint.spec @@ -2,8 +2,8 @@ %global srcname weasyprint Name: weasyprint -Version: 67.0 -Release: 2%{?dist} +Version: 68.0 +Release: 1%{?dist} Summary: Utility to render HTML and CSS to PDF License: BSD-3-Clause @@ -76,6 +76,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests %{python3_sitelib}/%{modname}/ %changelog +* Tue Jan 20 2026 Felix Schwarz - 68.0-1 +- update to 68.0 + * Sat Jan 17 2026 Fedora Release Engineering - 67.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild From 0b00509bbfc982894e6ef88d1410882728783a69 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Tue, 20 Jan 2026 15:24:17 +0100 Subject: [PATCH 04/11] update to 68.0 --- sources | 2 +- weasyprint-remove-pillow-12-requirement.patch | 57 +++++++++++++++++++ weasyprint.spec | 8 ++- 3 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 weasyprint-remove-pillow-12-requirement.patch diff --git a/sources b/sources index bf47f17..7169770 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (weasyprint-66.0.tar.gz) = 850996c6934156f4d4fca12cc052a8346b85aeadf1a3d99763e20a6ddabd2b93a39983615990e0e680a942c63c09563effa9b66abc5bf0c368963737ddf66264 +SHA512 (weasyprint-68.0.tar.gz) = f2a8e74df2c01e2f52dbeb4ffc94f41feeea03dce70f83aa482c2d63bac4d0be16f2ac4f6e203edd5eb5395a7aae38659b8ec8b12c946e685554b500695d2c7b diff --git a/weasyprint-remove-pillow-12-requirement.patch b/weasyprint-remove-pillow-12-requirement.patch new file mode 100644 index 0000000..ef21cb9 --- /dev/null +++ b/weasyprint-remove-pillow-12-requirement.patch @@ -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 diff --git a/weasyprint.spec b/weasyprint.spec index d7b1654..13d72dd 100644 --- a/weasyprint.spec +++ b/weasyprint.spec @@ -2,13 +2,14 @@ %global srcname weasyprint Name: weasyprint -Version: 66.0 -Release: 3%{?dist} +Version: 68.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 @@ -76,6 +77,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests %{python3_sitelib}/%{modname}/ %changelog +* Tue Jan 20 2026 Felix Schwarz - 68.0-1 +- update to 68.0 + * Fri Sep 19 2025 Python Maint - 66.0-3 - Rebuilt for Python 3.14.0rc3 bytecode From c53d97d231b8bdf80b5ba7d6f4ac0d5334bcca3d Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Sat, 7 Feb 2026 22:07:04 +0100 Subject: [PATCH 05/11] update to 68.1 --- sources | 2 +- weasyprint.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index 7169770..081ecd4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (weasyprint-68.0.tar.gz) = f2a8e74df2c01e2f52dbeb4ffc94f41feeea03dce70f83aa482c2d63bac4d0be16f2ac4f6e203edd5eb5395a7aae38659b8ec8b12c946e685554b500695d2c7b +SHA512 (weasyprint-68.1.tar.gz) = b080a40882d0b56dc3696aa4edc403a85c20a7b69a14c0bf179f0897af173945f327bc42f9be354d6734822af54413c56a1fec84b8ecd37e51bb5b752c3c676a diff --git a/weasyprint.spec b/weasyprint.spec index be54a64..8e4285d 100644 --- a/weasyprint.spec +++ b/weasyprint.spec @@ -2,7 +2,7 @@ %global srcname weasyprint Name: weasyprint -Version: 68.0 +Version: 68.1 Release: 1%{?dist} Summary: Utility to render HTML and CSS to PDF @@ -76,6 +76,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests %{python3_sitelib}/%{modname}/ %changelog +* Sat Feb 07 2026 Felix Schwarz - 68.1-1 +- update to 68.1 + * Tue Jan 20 2026 Felix Schwarz - 68.0-1 - update to 68.0 From a9b6db9ee6f3e93f9ce99669748615643ef6f892 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Sat, 7 Feb 2026 22:07:04 +0100 Subject: [PATCH 06/11] update to 68.1 --- sources | 2 +- weasyprint.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index 7169770..081ecd4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (weasyprint-68.0.tar.gz) = f2a8e74df2c01e2f52dbeb4ffc94f41feeea03dce70f83aa482c2d63bac4d0be16f2ac4f6e203edd5eb5395a7aae38659b8ec8b12c946e685554b500695d2c7b +SHA512 (weasyprint-68.1.tar.gz) = b080a40882d0b56dc3696aa4edc403a85c20a7b69a14c0bf179f0897af173945f327bc42f9be354d6734822af54413c56a1fec84b8ecd37e51bb5b752c3c676a diff --git a/weasyprint.spec b/weasyprint.spec index 13d72dd..da6e890 100644 --- a/weasyprint.spec +++ b/weasyprint.spec @@ -2,7 +2,7 @@ %global srcname weasyprint Name: weasyprint -Version: 68.0 +Version: 68.1 Release: 1%{?dist} Summary: Utility to render HTML and CSS to PDF @@ -77,6 +77,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests %{python3_sitelib}/%{modname}/ %changelog +* Sat Feb 07 2026 Felix Schwarz - 68.1-1 +- update to 68.1 + * Tue Jan 20 2026 Felix Schwarz - 68.0-1 - update to 68.0 From 5b178e954f4337a9879811607b7cbe4c1d957ca9 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Thu, 4 Jun 2026 08:20:00 +0200 Subject: [PATCH 07/11] update to 69.0 --- weasyprint.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/weasyprint.spec b/weasyprint.spec index da6e890..e83722c 100644 --- a/weasyprint.spec +++ b/weasyprint.spec @@ -2,7 +2,7 @@ %global srcname weasyprint Name: weasyprint -Version: 68.1 +Version: 69.0 Release: 1%{?dist} Summary: Utility to render HTML and CSS to PDF @@ -20,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 @@ -77,6 +78,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests %{python3_sitelib}/%{modname}/ %changelog +* Thu Jun 04 2026 Felix Schwarz - 69.0-1 +- update to 69.0 + * Sat Feb 07 2026 Felix Schwarz - 68.1-1 - update to 68.1 From 2e49ad49a0b8d740111c37a36cc73d14342bbb8a Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Thu, 4 Jun 2026 08:25:45 +0200 Subject: [PATCH 08/11] add missing sources --- sources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources b/sources index 081ecd4..4008ca2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (weasyprint-68.1.tar.gz) = b080a40882d0b56dc3696aa4edc403a85c20a7b69a14c0bf179f0897af173945f327bc42f9be354d6734822af54413c56a1fec84b8ecd37e51bb5b752c3c676a +SHA512 (weasyprint-69.0.tar.gz) = fb56d7f6173f8a67f8ef4c31408c03625b0a774d0efde003f779e3da054737c88afe9f44ee40b6dda5fc92cfacfa5709d4d96bf1a112862d309eaf2d93881ef6 From cf76714eba676d63ea926eb2be01df01dc88bdf0 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 5 Jun 2026 15:03:44 +0200 Subject: [PATCH 09/11] Rebuilt for Python 3.15 --- weasyprint.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weasyprint.spec b/weasyprint.spec index 8e4285d..b09557b 100644 --- a/weasyprint.spec +++ b/weasyprint.spec @@ -3,7 +3,7 @@ Name: weasyprint Version: 68.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Utility to render HTML and CSS to PDF License: BSD-3-Clause @@ -76,6 +76,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests %{python3_sitelib}/%{modname}/ %changelog +* Fri Jun 05 2026 Python Maint - 68.1-2 +- Rebuilt for Python 3.15 + * Sat Feb 07 2026 Felix Schwarz - 68.1-1 - update to 68.1 From b1ddfc7a671ec267c78fb33f4f3863e73bbae816 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Thu, 4 Jun 2026 08:20:00 +0200 Subject: [PATCH 10/11] update to 69.0 --- sources | 2 +- weasyprint.spec | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 081ecd4..4008ca2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (weasyprint-68.1.tar.gz) = b080a40882d0b56dc3696aa4edc403a85c20a7b69a14c0bf179f0897af173945f327bc42f9be354d6734822af54413c56a1fec84b8ecd37e51bb5b752c3c676a +SHA512 (weasyprint-69.0.tar.gz) = fb56d7f6173f8a67f8ef4c31408c03625b0a774d0efde003f779e3da054737c88afe9f44ee40b6dda5fc92cfacfa5709d4d96bf1a112862d309eaf2d93881ef6 diff --git a/weasyprint.spec b/weasyprint.spec index b09557b..484c534 100644 --- a/weasyprint.spec +++ b/weasyprint.spec @@ -2,8 +2,8 @@ %global srcname weasyprint Name: weasyprint -Version: 68.1 -Release: 2%{?dist} +Version: 69.0 +Release: 1%{?dist} Summary: Utility to render HTML and CSS to PDF License: BSD-3-Clause @@ -19,6 +19,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 +77,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests %{python3_sitelib}/%{modname}/ %changelog +* Thu Jun 11 2026 Felix Schwarz - 69.0-1 +- update to 69.0 + * Fri Jun 05 2026 Python Maint - 68.1-2 - Rebuilt for Python 3.15 From 9c933057a51e39cc4f2f0eebe69fc96898279979 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jul 2026 08:44:20 +0000 Subject: [PATCH 11/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild --- weasyprint.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weasyprint.spec b/weasyprint.spec index 484c534..d5a01df 100644 --- a/weasyprint.spec +++ b/weasyprint.spec @@ -3,7 +3,7 @@ Name: weasyprint Version: 69.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Utility to render HTML and CSS to PDF License: BSD-3-Clause @@ -77,6 +77,9 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests %{python3_sitelib}/%{modname}/ %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 69.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + * Thu Jun 11 2026 Felix Schwarz - 69.0-1 - update to 69.0