1
0

Accepting request 674604 from devel:languages:python

- 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/request/show/674604
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-CairoSVG?expand=0&rev=3
This commit is contained in:
Stephan Kulow 2019-02-28 20:39:23 +00:00 committed by Git OBS Bridge
commit af1e5a797e
4 changed files with 39 additions and 20 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e512f555f576b6462b04b585c4ba4c09a43f3a8fec907b60ead21d7d00c550e9
size 39836

3
CairoSVG-2.3.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:66f333ef5dc79fdfbd3bbe98adc791b1f854e0461067d202fa7b15de66d517ec
size 38906

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Wed Feb 13 14:53:22 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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 <jengelh@inai.de>

View File

@ -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
@ -79,8 +77,8 @@ For further information, please visit the CairoSVG website, http://www.cairosvg.
%python_uninstall_alternative cairosvg
%files %{python_files}
%doc NEWS.rst README.rst
%license COPYING
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/cairosvg
%{python_sitelib}/*