From ac9e3412a4642f5cfdc6cf05677d9edfb6d9e354d21004b75dd49c77e2ef1e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 13 Feb 2019 14:58:11 +0000 Subject: [PATCH] - Update to 2.3.0: * Drop Python 3.4 support * Make text selectable on generated PDF files * Don't inherit dx and dy attributes * Fix support of alignment-baseline="hanging" * Fix backslashes in docstrings and comments * Fix local anchors with files with no given URL * Close VERSION's file descriptor * Fix T commands used with previous relative commands in paths * Use real functions for svg2* commands, improving IDE integration * Handle image-rendering property * Fix crash with some text samples * Fix position of embedded svg tags with a viewbox not at position (0, 0) * Add output-width and output-height options * Handle references to inner document tags defined after the anchor * Fix offsets for texts on paths - Run tests manualy reducing the test dependencies a bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CairoSVG?expand=0&rev=9 --- CairoSVG-2.1.3.tar.gz | 3 --- CairoSVG-2.3.0.tar.gz | 3 +++ python-CairoSVG.changes | 21 +++++++++++++++++++++ python-CairoSVG.spec | 28 +++++++++++++--------------- 4 files changed, 37 insertions(+), 18 deletions(-) delete mode 100644 CairoSVG-2.1.3.tar.gz create mode 100644 CairoSVG-2.3.0.tar.gz diff --git a/CairoSVG-2.1.3.tar.gz b/CairoSVG-2.1.3.tar.gz deleted file mode 100644 index 171708b..0000000 --- a/CairoSVG-2.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e512f555f576b6462b04b585c4ba4c09a43f3a8fec907b60ead21d7d00c550e9 -size 39836 diff --git a/CairoSVG-2.3.0.tar.gz b/CairoSVG-2.3.0.tar.gz new file mode 100644 index 0000000..5c8b55b --- /dev/null +++ b/CairoSVG-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66f333ef5dc79fdfbd3bbe98adc791b1f854e0461067d202fa7b15de66d517ec +size 38906 diff --git a/python-CairoSVG.changes b/python-CairoSVG.changes index 239d2db..035eb36 100644 --- a/python-CairoSVG.changes +++ b/python-CairoSVG.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Wed Feb 13 14:53:22 UTC 2019 - Tomáš Chvátal + +- Update to 2.3.0: + * Drop Python 3.4 support + * Make text selectable on generated PDF files + * Don't inherit dx and dy attributes + * Fix support of alignment-baseline="hanging" + * Fix backslashes in docstrings and comments + * Fix local anchors with files with no given URL + * Close VERSION's file descriptor + * Fix T commands used with previous relative commands in paths + * Use real functions for svg2* commands, improving IDE integration + * Handle image-rendering property + * Fix crash with some text samples + * Fix position of embedded svg tags with a viewbox not at position (0, 0) + * Add output-width and output-height options + * Handle references to inner document tags defined after the anchor + * Fix offsets for texts on paths +- Run tests manualy reducing the test dependencies a bit + ------------------------------------------------------------------- Wed Dec 5 01:22:00 UTC 2018 - Jan Engelhardt diff --git a/python-CairoSVG.spec b/python-CairoSVG.spec index ff942a4..4cc86d0 100644 --- a/python-CairoSVG.spec +++ b/python-CairoSVG.spec @@ -1,7 +1,7 @@ # # spec file for package python-CairoSVG # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,39 +17,32 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%define skip_python2 1 Name: python-CairoSVG -Version: 2.1.3 +Version: 2.3.0 Release: 0 Summary: A Python SVG converter based on Cairo License: LGPL-3.0-or-later Group: Development/Languages/Python -Url: http://www.cairosvg.org/ +URL: http://www.cairosvg.org/ Source: https://files.pythonhosted.org/packages/source/C/CairoSVG/CairoSVG-%{version}.tar.gz BuildRequires: %{python_module Pillow} BuildRequires: %{python_module cairocffi} BuildRequires: %{python_module cssselect2} BuildRequires: %{python_module defusedxml} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tinycss2} BuildRequires: fdupes BuildRequires: python-rpm-macros -# SECTION test requirements -BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module pytest-flake8} -BuildRequires: %{python_module pytest-isort} -BuildRequires: %{python_module pytest-runner} -BuildRequires: %{python_module pytest} -# /SECTION Requires: python-Pillow Requires: python-cairocffi Requires: python-cssselect2 Requires: python-defusedxml Requires: python-tinycss2 -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch - %python_subpackages %description @@ -60,6 +53,11 @@ For further information, please visit the CairoSVG website, http://www.cairosvg. %prep %setup -q -n CairoSVG-%{version} +# remove needless pytest dependencies +sed -i setup.cfg \ + -e '/pytest-runner/d' \ + -e '/--flake8/d' \ + -e '/--isort/d' %build %python_build @@ -70,7 +68,7 @@ For further information, please visit the CairoSVG website, http://www.cairosvg. %python_clone -a %{buildroot}/%{_bindir}/cairosvg %check -%python_exec setup.py test +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} %post %python_install_alternative cairosvg