Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-WeasyPrint for openSUSE:Factory checked in at 2021-05-01 00:47:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-WeasyPrint (Old)
and /work/SRC/openSUSE:Factory/.python-WeasyPrint.new.1947 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-WeasyPrint"
Sat May 1 00:47:01 2021 rev:9 rq:889561 version:52.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-WeasyPrint/python-WeasyPrint.changes 2020-09-25 16:35:47.940117482 +0200
+++ /work/SRC/openSUSE:Factory/.python-WeasyPrint.new.1947/python-WeasyPrint.changes 2021-05-01 00:47:06.527342395 +0200
@@ -1,0 +2,13 @@
+Fri Apr 30 12:20:47 UTC 2021 - Mark��ta Machov��
+
+- Update to 52.5
+ * Python 3.6+ is now needed, Python 3.5 is not supported anymore
+ * Implement counter-set
+ * Add support for concatenating var() functions in content declarations
+ * Add an option to optimize embedded images size, with financial support from Hashbang
+ * Add an image cache that can be shared between documents, with financial support from Hashbang
+ * Fix URL handling with tinycss2Fix URL handling with tinycss2
+ * Add support of line-clamp, with financial support from expert Germany
+- Add quotes.patch to support tinycss older than 1.1.0
+
+-------------------------------------------------------------------
Old:
----
WeasyPrint-51.tar.gz
New:
----
WeasyPrint-52.5.tar.gz
quotes.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-WeasyPrint.spec ++++++
--- /var/tmp/diff_new_pack.GERUCU/_old 2021-05-01 00:47:06.999340292 +0200
+++ /var/tmp/diff_new_pack.GERUCU/_new 2021-05-01 00:47:07.003340274 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-WeasyPrint
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-WeasyPrint
-Version: 51
+Version: 52.5
Release: 0
Summary: Python module to convert web documents to PDF
License: BSD-3-Clause
@@ -27,6 +27,8 @@
URL: https://github.com/Kozea/WeasyPrint
Source: https://files.pythonhosted.org/packages/source/W/WeasyPrint/WeasyPrint-%{version}.tar.gz
Source100: python-WeasyPrint-rpmlintrc
+# PATCH-FIX-OPENSUSE Fix tests with older tinycss2
+Patch0: quotes.patch
BuildRequires: %{python_module setuptools >= 39.2.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -42,7 +44,7 @@
Requires: python-setuptools >= 39.2.0
Requires: python-tinycss2 >= 1.0.0
Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
Requires: python-CairoSVG >= 2.4.0
BuildArch: noarch
# SECTION test requirements
@@ -73,6 +75,7 @@
%prep
%setup -q -n WeasyPrint-%{version}
+%autopatch -p1
sed -i '/\(addopts\|pytest-\(cov\|flake8\|isort\)\)/d' setup.cfg
%build
++++++ WeasyPrint-51.tar.gz -> WeasyPrint-52.5.tar.gz ++++++
++++ 10694 lines of diff (skipped)
++++++ quotes.patch ++++++
Index: WeasyPrint-52.5/weasyprint/tests/test_api.py
===================================================================
--- WeasyPrint-52.5.orig/weasyprint/tests/test_api.py
+++ WeasyPrint-52.5/weasyprint/tests/test_api.py
@@ -785,7 +785,7 @@ def test_links():
<div style="-weasy-link: url(../lipsum);
display: block; margin: 10px 5px">
''', [[]], [{}], [([], [])], base_url=None, warnings=[
- 'WARNING: Ignored `-weasy-link: url(../lipsum)` at 1:1, '
+ 'WARNING: Ignored `-weasy-link: url("../lipsum")` at 1:1, '
'Relative URI reference without a base URI'])
# Internal or absolute URI reference without a base URI: OK
Index: WeasyPrint-52.5/weasyprint/tests/test_pdf.py
===================================================================
--- WeasyPrint-52.5.orig/weasyprint/tests/test_pdf.py
+++ WeasyPrint-52.5/weasyprint/tests/test_pdf.py
@@ -528,7 +528,7 @@ def test_relative_links_missing_base():
with pytest.raises(AttributeError):
pdf_file.pages[0].get_indirect_dict_array('Annots', pdf_file)
assert len(logs) == 1
- assert 'WARNING: Ignored `-weasy-link: url(../lipsum)`' in logs[0]
+ assert 'WARNING: Ignored `-weasy-link: url("../lipsum")`' in logs[0]
assert 'Relative URI reference without a base URI' in logs[0]