From 6abfd8ac90c02062ccfb1b49171f751a80a8aabffc49d6c29c37cdad5baae92e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 16 May 2022 11:43:15 +0000 Subject: [PATCH 1/3] Accepting request 977510 from home:darix:apps - Update to 55.0 OBS-URL: https://build.opensuse.org/request/show/977510 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weasyprint?expand=0&rev=11 --- python-weasyprint.changes | 45 +++++++++++++++++++++++++++++++++++++++ python-weasyprint.spec | 8 ++++--- weasyprint-54.0.tar.gz | 3 --- weasyprint-55.0.tar.gz | 3 +++ 4 files changed, 53 insertions(+), 6 deletions(-) delete mode 100644 weasyprint-54.0.tar.gz create mode 100644 weasyprint-55.0.tar.gz diff --git a/python-weasyprint.changes b/python-weasyprint.changes index 4208522..c4e85c4 100644 --- a/python-weasyprint.changes +++ b/python-weasyprint.changes @@ -1,3 +1,48 @@ +------------------------------------------------------------------- +Mon May 16 11:21:00 UTC 2022 - Marcus Rueckert + +- Update to 55.0 + Python 3.7 is now the minimum requirement + - Features + - #1534: Support word-break: break-all + - #489, #1619: Support column breaks + - #1553: Allow reproducible PDF generation + - #1547: Handle break-inside: avoid on tr tags + - Bugfixes + - #1626, 3802f88: Fix the vertical position and available height of absolute boxes + - 9641098, e5e6b88: Minor fixes for multi-column layout + - 0fcc7de: Don’t stop rendering SVG when CSS parsing fails + - #1636: Fix sequential footnotes that could disappear when overflowing + - #1637: Fix position of absolute boxes with right-to-left direction + - #1641: Fix relative paths for SVG files stored as data URLs + - #1007, #1524: Handle inherit in shorthand properties + - #1539, #1541: Space out no-repeat patterns + - #1554: Avoid invalid PDF operators when drawing SVG text + - #1564, #1566, #1570: Don’t output footnotes before their call sites + - #1020, #1597: Prevent infinite loops in multi-column layout + - #1512, #1613: Fix position of absolute boxes in right-to-left contexts + - #1093: Draw borders around absolute replaced boxes + - #984, #1604: Fix skip stacks for columns + - #1621: Better support of nested text-decoration properties + - fe1f3d9: Fix absolute blocks in lines + - 4650b70: Clear adjoining margins when a container’s child doesn’t fit + - #1588 Support position: absolute in footnotes + - #1586 Fix discarded text-align values + - #1575: Always store parent blocks children as lists + - #1574, #1559: Fix float rounding errors + - #1571: Ignore unknown glyphs + - #1561, #1562: Fix line break when breaks occur between a nbsp and an inline block + - #1560: Always set the child index + - #1558: Fix patterns with use tags + - #1540, #1239: Handle absolute children in running elements + - #1538: Handle invalid values in text-align + - #1536: Handle absolute flex boxes + - Performance + - #1548: Improve tests speed + - 3b0ae92, #1457: Improve fonts management + - #1597: Improve column layout speed + - #1587, #1607, #1608: Cache ch and ex units calculations + ------------------------------------------------------------------- Mon Jan 10 20:04:52 UTC 2022 - Matej Cepl diff --git a/python-weasyprint.spec b/python-weasyprint.spec index 0c0d960..a03f690 100644 --- a/python-weasyprint.spec +++ b/python-weasyprint.spec @@ -21,7 +21,7 @@ %define skip_python36 1 Name: python-weasyprint -Version: 54.0 +Version: 55.0 Release: 0 Summary: Python module to convert web documents to PDF License: BSD-3-Clause @@ -29,6 +29,7 @@ Group: Development/Languages/Python URL: https://github.com/Kozea/WeasyPrint Source: https://files.pythonhosted.org/packages/source/w/weasyprint/weasyprint-%{version}.tar.gz Source100: python-weasyprint-rpmlintrc +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module flit-core} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 39.2.0} @@ -38,11 +39,12 @@ Requires(post): update-alternatives Requires(postun):update-alternatives Requires: libgobject-2_0-0 Requires: pango +Requires: python >= 3.7 Requires: python-Pillow >= 4.0.0 Requires: python-Pyphen >= 0.9.1 Requires: python-cffi >= 0.6 Requires: python-cssselect2 >= 0.1 -Requires: python-html5lib >= 1.0.1 +Requires: python-html5lib >= 1.1 Requires: python-pydyf >= 0.0.3 Requires: python-tinycss2 >= 1.0.0 # SECTION fonttools[woff] @@ -58,7 +60,7 @@ BuildRequires: %{python_module Pillow} BuildRequires: %{python_module Pyphen >= 0.9.1} BuildRequires: %{python_module cffi >= 0.6} BuildRequires: %{python_module cssselect2 >= 0.1} -BuildRequires: %{python_module html5lib >= 1.0.1} +BuildRequires: %{python_module html5lib >= 1.1} BuildRequires: %{python_module pydyf >= 0.0.3} BuildRequires: %{python_module pytest} BuildRequires: %{python_module tinycss2 >= 1.0.0} diff --git a/weasyprint-54.0.tar.gz b/weasyprint-54.0.tar.gz deleted file mode 100644 index 5127bfc..0000000 --- a/weasyprint-54.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0aeda9a045c7881289420cac917cc57115b1243e476187338e66d593dd000853 -size 402453 diff --git a/weasyprint-55.0.tar.gz b/weasyprint-55.0.tar.gz new file mode 100644 index 0000000..755a76b --- /dev/null +++ b/weasyprint-55.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea5d5f2f159262e38b6e85939d8510e9735a47751a9647c9eaa93c22ced86230 +size 410970 From 1a13bd0fb74b62304b12fd1973a1a2c49b73967d0942a19e365eda2a6ff98a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 16 May 2022 11:46:54 +0000 Subject: [PATCH 2/3] we don't multibuild python36 anymore, now it is made unresolvable by python-base >= 3.7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weasyprint?expand=0&rev=12 --- python-weasyprint.spec | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python-weasyprint.spec b/python-weasyprint.spec index a03f690..5b7a833 100644 --- a/python-weasyprint.spec +++ b/python-weasyprint.spec @@ -17,9 +17,6 @@ %{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 -%define skip_python36 1 - Name: python-weasyprint Version: 55.0 Release: 0 @@ -39,7 +36,7 @@ Requires(post): update-alternatives Requires(postun):update-alternatives Requires: libgobject-2_0-0 Requires: pango -Requires: python >= 3.7 +Requires: python-base >= 3.7 Requires: python-Pillow >= 4.0.0 Requires: python-Pyphen >= 0.9.1 Requires: python-cffi >= 0.6 From 11b6b37c254ae45b2b745a24e4fd1fe3335ed56720c658482736254bc9ced93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 16 May 2022 11:58:42 +0000 Subject: [PATCH 3/3] gh#Kozea/WeasyPrint#1502 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weasyprint?expand=0&rev=13 --- python-weasyprint.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python-weasyprint.spec b/python-weasyprint.spec index 5b7a833..7e506c1 100644 --- a/python-weasyprint.spec +++ b/python-weasyprint.spec @@ -43,7 +43,7 @@ Requires: python-cffi >= 0.6 Requires: python-cssselect2 >= 0.1 Requires: python-html5lib >= 1.1 Requires: python-pydyf >= 0.0.3 -Requires: python-tinycss2 >= 1.0.0 +Requires: python-tinycss2 >= 1.1.0 # SECTION fonttools[woff] Requires: python-FontTools Requires: python-Brotli >= 1.0.1 @@ -60,7 +60,7 @@ BuildRequires: %{python_module cssselect2 >= 0.1} BuildRequires: %{python_module html5lib >= 1.1} BuildRequires: %{python_module pydyf >= 0.0.3} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module tinycss2 >= 1.0.0} +BuildRequires: %{python_module tinycss2 >= 1.1.0} BuildRequires: %{python_module zopfli >= 0.1.4} BuildRequires: dejavu-fonts BuildRequires: gs @@ -94,8 +94,7 @@ export PYTHONPATH=$PWD %python_clone -a %{buildroot}%{_bindir}/weasyprint %check -# gh#Kozea/WeasyPrint#1503 -%pytest -k 'not (test_relative_links_missing_base_link or test_links)' tests +%pytest tests %post %python_install_alternative weasyprint