Compare commits

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

68 commits

Author SHA1 Message Date
Fedora Release Engineering
9c933057a5 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:44:20 +00:00
b1ddfc7a67 update to 69.0 2026-06-11 08:44:31 +02:00
Python Maint
cf76714eba Rebuilt for Python 3.15 2026-06-05 15:03:44 +02:00
c53d97d231 update to 68.1 2026-02-07 22:07:04 +01:00
f5ef1f00bc update to 68.0 2026-01-20 15:24:17 +01:00
Fedora Release Engineering
5d312000eb Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 20:10:01 +00:00
a81b0ff2a5 update to 67.0 2025-12-03 20:16:12 +01:00
Python Maint
b80060c09b Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 15:03:18 +02:00
Python Maint
92594aaf1f Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:22:49 +02:00
381e53f562 update to 66.0 2025-07-28 09:50:30 +02:00
Fedora Release Engineering
37cfa23b75 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 20:20:25 +00:00
Python Maint
cb095e65e8 Rebuilt for Python 3.14 2025-06-03 16:43:46 +02:00
d5e7b20af5 update to 65.1 2025-04-14 14:23:36 +02:00
43736eea94 update to 65.0 2025-03-23 19:59:23 +01:00
2abf0e9719 update to 64.1 2025-03-05 20:51:12 +01:00
6c6b9f4fdb update to 64.0 2025-01-30 17:54:29 +01:00
Fedora Release Engineering
347ae0818f Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:51:17 +00:00
6a4d29d9b9 update to 63.1 2025-01-12 17:30:36 +01:00
Fedora Release Engineering
21e6514d49 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 09:12:25 +00:00
21ced46f40 update to 62.3 2024-06-24 08:37:01 +02:00
Python Maint
d4a86ce346 Rebuilt for Python 3.13 2024-06-08 20:32:01 +02:00
577206b1f1 update to 62.2 2024-06-04 17:05:52 +02:00
02ea6e0f80 update to 62.1 2024-05-06 17:14:31 +02:00
59d62d5272 update to 62.0 2024-05-02 06:40:47 +02:00
44343664a8 update to 61.2 2024-03-09 09:49:10 +01:00
512f563c36 update to 61.1 2024-02-26 15:06:02 +01:00
2150d8fe9e update to 61.0 2024-02-12 22:07:34 +01:00
7b09dad3de use just flit-core as build dependency 2024-01-25 21:52:47 +01:00
4b6acaca0e update to 60.2 2023-12-12 13:53:47 +01:00
5c6be48647 parallelize test execution
On a 6 core AMD Ryzen 2600 (12 virtual cores) I was able to reduce the time to
run the complete test suite from 110s -> 20s
2023-10-06 14:29:23 +02:00
904cc25614 update to 60.1 2023-10-05 16:34:39 +02:00
Fedora Release Engineering
0365836691 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 18:04:06 +00:00
e1713b0943 add missing sources 2023-07-09 08:45:34 +02:00
825d643da0 add patch so the test suite passes for Python 3.12 2023-07-09 07:50:31 +02:00
9e63eb3cb1 update to 59.0 2023-05-11 11:44:49 +02:00
20c9238945 make tests pass with pydyf 0.6 2023-04-15 09:52:51 +02:00
e7fa44c9d1 SPDX migration 2023-04-15 09:47:05 +02:00
66d7328fb2 update to 58.1 2023-03-07 15:14:55 +01:00
7b0a32ba25 update to 58.0 2023-02-17 18:05:31 +01:00
Fedora Release Engineering
8bc5369d8d Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 06:41:38 +00:00
b1b5cc6f52 update to 57.2 2022-12-27 22:00:33 +01:00
48fdf71c14 update to 57.1 2022-11-05 21:45:04 +01:00
811a1140a7 update to 56.1 2022-07-25 08:22:13 +02:00
Fedora Release Engineering
3d709d6c97 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 12:17:36 +00:00
dcd5d6e5e6 update to 56.0 2022-07-13 22:52:02 +02:00
Python Maint
c58cab5896 Rebuilt for Python 3.11 2022-06-20 15:58:47 +02:00
e96113750e update 55.0 2022-05-13 08:49:11 +02:00
eff0bc915d update to 54.3 2022-04-04 17:14:29 +02:00
7b94de73c8 update to 54.2 2022-03-01 21:57:36 +01:00
ddf1f4d2ca update to 54.1 2022-01-31 21:40:43 +01:00
Fedora Release Engineering
3faf8305f9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 04:21:09 +00:00
c71f4219d4 update to 54.0 2022-01-08 23:03:12 +01:00
822f0a1532 update to 53.4 2021-11-14 21:31:58 +01:00
c06d458c92 update to 53.3 2021-09-10 17:48:22 +02:00
7cad70bd24 update to 53.2 2021-08-27 15:00:43 +02:00
fba816be26 update to 53.1 2021-08-22 19:29:36 +02:00
830725b702 update to 53 2021-08-07 20:54:34 +02:00
Fedora Release Engineering
29f5801a1c - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 20:49:55 +00:00
Python Maint
9da0b0a9a5 Rebuilt for Python 3.10 2021-06-04 21:19:51 +02:00
faedadaaa1 add missing sources 2021-04-18 10:32:33 +02:00
dca677b226 update to 52.5 2021-04-18 10:17:47 +02:00
6f57ab83f4 add patch for pango 1.48.3 2021-03-23 23:38:13 +01:00
e4165a5c6e update to 52.4 2021-03-12 22:41:29 +01:00
50c5196964 update to 52.3 2021-03-02 22:48:20 +01:00
Fedora Release Engineering
9ba4fd0aaa - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 23:23:28 +00:00
bc55265ba3 update to 52.2 2020-12-06 21:27:06 +01:00
9d2bc42f24 update to 52.1 2020-11-08 22:31:15 +01:00
e3e39d89b8 remove manual requirement on python3-xcffib as bug 1698217 was resolved a long time ago 2020-11-08 22:23:53 +01:00
4 changed files with 223 additions and 86 deletions

10
.gitignore vendored
View file

@ -1,7 +1,9 @@
/v0.19.2.tar.gz
/v0.21.tar.gz
/v0.22.tar.gz
/weasyprint-0.22.tar.gz
/weasyprint-0.39.tar.gz
/WeasyPrint-50.tar.gz
/WeasyPrint-51.tar.gz
/WeasyPrint-*
/WeasyPrint-*.tar.gz
/weasyprint-*.tar.gz
/*.src.rpm
/results_weasyprint
/weasyprint-??.?

View file

@ -1 +1 @@
SHA512 (WeasyPrint-51.tar.gz) = 631038bece7ac0c15c6a668a7d06137e4bccc049eb80484a153ca9c4a996256de8647428b21ed1d0c1607af3893c747a1956a3d3f012b30105ba4f8613a96fcd
SHA512 (weasyprint-69.0.tar.gz) = fb56d7f6173f8a67f8ef4c31408c03625b0a774d0efde003f779e3da054737c88afe9f44ee40b6dda5fc92cfacfa5709d4d96bf1a112862d309eaf2d93881ef6

View file

@ -1,30 +0,0 @@
diff --git a/setup.cfg b/setup.cfg
index 1e88b56..62725f6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -52,8 +52,6 @@ install_requires =
tests_require =
pytest-runner
pytest-cov
- pytest-flake8
- pytest-isort
python_requires = >= 3.5
[options.entry_points]
@@ -71,8 +69,6 @@ doc =
test =
pytest-runner
pytest-cov
- pytest-flake8
- pytest-isort
[bdist_wheel]
python-tag = py3
@@ -85,7 +81,6 @@ build-dir = docs/_build
test = pytest
[tool:pytest]
-addopts = --flake8 --isort
norecursedirs = build dist .cache .eggs .git
[coverage:run]

View file

@ -1,51 +1,30 @@
%global modname weasyprint
%global srcname WeasyPrint
%global srcname weasyprint
Name: weasyprint
Version: 51
Release: 5%{?dist}
Version: 69.0
Release: 2%{?dist}
Summary: Utility to render HTML and CSS to PDF
License: BSD
URL: https://weasyprint.org/
Source0: %pypi_source
Patch0: %{name}-disable-flake8-isort-for-pytest.patch
License: BSD-3-Clause
URL: https://weasyprint.org
Source0: %{pypi_source weasyprint}
BuildArch: noarch
BuildRequires: python3-devel
# upstream installation docs say:
# "setuptools ≥ 30.3.0 is required to install WeasyPrint from wheel,
# but 39.2.0 is required to build the package or install from source."
BuildRequires: python3-setuptools >= 39.2.0
BuildRequires: python3-pytest
BuildRequires: python3-pytest-cov
BuildRequires: python3-pytest-runner
# upstream installation docs say:
# "setuptools ≥ 30.3.0 is required to install WeasyPrint from wheel,
# but 39.2.0 is required to build the package or install from source."
BuildRequires: python3-setuptools >= 39.2.0
BuildRequires: /usr/bin/pathfix.py
BuildRequires: pyproject-rpm-macros
# used as "build-backend" in pyproject.toml but not detected by Fedora's
# macros to generate build requirements
BuildRequires: python3dist(flit-core)
# requirements for testing
BuildRequires: cairo >= 1.15.4
BuildRequires: dejavu-sans-fonts
BuildRequires: gdk-pixbuf2 >= 2.25.0
BuildRequires: gdk-pixbuf2-modules
# gdk-pixbuf2 does not require libjpeg directly but tests try to load jpg
# images via gdk-pixbuf2
BuildRequires: libjpeg-turbo
BuildRequires: pango >= 1.38.0
BuildRequires: python3-cairosvg >= 2.4.0
BuildRequires: python3-cssselect2 >= 0.1
BuildRequires: python3-cairocffi >= 0.9.0
BuildRequires: python3-html5lib >= 0.999999999
# upstream requires > 0.9.1 (actually >= 0.8, != 0.9.1), see
# https://github.com/Kozea/WeasyPrint/pull/989#issuecomment-551845041
# We need pyhen's hyphenation dicts (instead of system-wide dicts) otherwise
# there will be test failures.
BuildRequires: python3-pyphen > 0.9.1
BuildRequires: python3-tinycss2 >= 1.0
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
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pytest-xdist)
Requires: python3-weasyprint = %{version}-%{release}
@ -56,13 +35,7 @@ for printing.
%package -n python3-weasyprint
Summary: Python library to render HTML and CSS to PDF
Requires: cairo >= 1.15.4
Requires: pango >= 1.38.0
Requires: gdk-pixbuf2 >= 2.25.0
# workaround for bug 1685654
# actually python3-cairocffi should have that dependency (see bug 1698217) but
# for now just add the requirement here.
Requires: python3-xcffib
Requires: pango >= 1.44.0
# other Python dependencies will be picked up automatically
# Weasyprint will fail if no fonts are installed. There's no way to know
# what fonts the user would actually want, but require a few common ones
@ -76,17 +49,19 @@ The WeasyPrint Python library is a rendering engine for HTML and CSS that
can export to PDF. It aims to support web standards for printing.
%prep
%autosetup -p1 -n WeasyPrint-%{version}
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" .
%autosetup -p1 -n %{srcname}-%{version}
%generate_buildrequires
%pyproject_buildrequires -r
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
%check
%{__python3} setup.py test
%pytest -n auto
# do not ship tests
rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests
@ -98,10 +73,200 @@ rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests
%files -n python3-weasyprint
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname}-%{version}-*/
%{python3_sitelib}/%{modname}-%{version}.dist-info/
%{python3_sitelib}/%{modname}/
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 69.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Thu Jun 11 2026 Felix Schwarz <fschwarz@fedoraproject.org> - 69.0-1
- update to 69.0
* Fri Jun 05 2026 Python Maint <python-maint@redhat.com> - 68.1-2
- Rebuilt for Python 3.15
* 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
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 67.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Wed Dec 03 2025 Felix Schwarz <fschwarz@fedoraproject.org> - 67.0-1
- update to 67.0
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 66.0-3
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 66.0-2
- Rebuilt for Python 3.14.0rc2 bytecode
* Mon Jul 28 2025 Felix Schwarz <fschwarz@fedoraproject.org> - 66.0-1
- update to 66.0
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 65.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 65.1-2
- Rebuilt for Python 3.14
* Mon Apr 14 2025 Felix Schwarz <fschwarz@fedoraproject.org> - 65.1-1
- update to 65.1
* Sun Mar 23 2025 Felix Schwarz <fschwarz@fedoraproject.org> - 65.0-1
- update to 65.0
* Wed Mar 05 2025 Felix Schwarz <fschwarz@fedoraproject.org> - 64.1-1
- update to 64.1
* Thu Jan 30 2025 Felix Schwarz <fschwarz@fedoraproject.org> - 64.0-1
- update to 64.0
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 63.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sat Jan 11 2025 Felix Schwarz <fschwarz@fedoraproject.org> - 63.1-1
- update to 63.1
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 62.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Jun 24 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 62.3-1
- update to 62.3
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 62.2-2
- Rebuilt for Python 3.13
* Tue Jun 04 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 62.2-1
- update to 62.2
* Mon May 06 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 62.1-1
- update to 62.1
* Thu May 02 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 62.0-1
- update to 62.0
* Sat Mar 09 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 61.2-1
- update to 61.2
* Mon Feb 26 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 61.1-1
- update to 61.1
* Mon Feb 12 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 61.0-1
- update to 61.0
* Thu Jan 25 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 60.2-2
- use just flit-core as build dependency
* Tue Dec 12 2023 Felix Schwarz <fschwarz@fedoraproject.org> - 60.2-1
- update to 60.2
* Thu Oct 05 2023 Felix Schwarz <fschwarz@fedoraproject.org> - 60.1-1
- update to 60.1
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 59.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sun Jul 09 2023 Felix Schwarz <fschwarz@fedoraproject.org> - 59.0-2
- add patch so the test suite passes for Python 3.12
* Thu May 11 2023 Felix Schwarz <fschwarz@fedoraproject.org> - 59.0-1
- update to 59.0
* Sat Apr 15 2023 Felix Schwarz <fschwarz@fedoraproject.org> - 58.1-2
- SPDX migration
- make tests pass with pydyf 0.6
* Tue Mar 07 2023 Felix Schwarz <fschwarz@fedoraproject.org> - 58.1-1
- update to 58.1
* Fri Feb 17 2023 Felix Schwarz <fschwarz@fedoraproject.org> - 58.0-1
- update to 58.0
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 57.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Dec 27 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 57.2-1
- update to 57.2
* Sat Nov 05 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 57.1-1
- update to 57.1
* Mon Jul 25 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 56.1-1
- update to 56.1
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 56.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jul 07 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 56.0-1
- update to 56.0
* Mon Jun 20 2022 Python Maint <python-maint@redhat.com> - 55.0-2
- Rebuilt for Python 3.11
* Thu May 12 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 55.0-1
- update to 55.0
* Mon Apr 04 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 54.3-1
- update to 54.3
* Tue Mar 01 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 54.2-1
- update to 54.2
* Mon Jan 31 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 54.1-1
- update to 54.1
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 54.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sat Jan 08 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 54.0-1
- update to 54.0
* Sun Nov 14 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 53.4-1
- update to 53.4
* Fri Sep 10 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 53.3-1
- update to 53.3
* Fri Aug 27 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 53.2-1
- update to 53.2
* Sun Aug 22 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 53.1-1
- update to 53.1
* Sun Aug 01 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 53.0-1
- update to 53.0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 52.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 52.5-2
- Rebuilt for Python 3.10
* Sun Apr 18 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 52.5-1
- update to 52.5
* Tue Mar 23 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 52.4-2
- add patch for pango 1.48.3
* Fri Mar 12 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 52.4-1
- update to 52.4
* Tue Mar 02 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 52.3-1
- update to 52.3
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 52.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sun Dec 6 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 52.2-1
- update to 52.2
* Sun Nov 08 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 52.1-1
- update to 52.1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 51-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild