14
0

- Update to 1.3.1:

* NEW: easy stylesheet embedding: Drawing.embed_stylesheet(content), see example using_fonts.py
  * NEW: embedded local fonts: Drawing.embed_font(fontname, filename), see example using_fonts.py
  * NEW: embedded web fonts: Drawing.embed_google_web_font(fontname, uri), see example using_fonts.py
  * NEW: shapes extension by Christof Hanke
  * NEW: for write(), save() and saveas(), indentation for pretty print is configurable by Mitar
  * BUGFIX: converted regex strings in tests to raw strings by tirkarthi

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-svgwrite?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal
2019-07-22 12:46:18 +00:00
committed by Git OBS Bridge
parent d16bebb0e1
commit 993f55775e
4 changed files with 20 additions and 9 deletions

View File

@@ -18,24 +18,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-svgwrite
Version: 1.2.1
Version: 1.3.1
Release: 0
Summary: Python module for creating SVG drawings
License: MIT
Group: Development/Languages/Python
Url: http://github.com/mozman/svgwrite
URL: https://github.com/mozman/svgwrite
Source: https://files.pythonhosted.org/packages/source/s/svgwrite/svgwrite-%{version}.zip
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: python-pyparsing >= 2.0.1
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pyparsing >= 2.0.1}
BuildRequires: %{python_module pytest}
# /SECTION
Requires: python-pyparsing >= 2.0.1
BuildArch: noarch
%python_subpackages
%description
@@ -54,7 +53,8 @@ sed -i 's/\r$//' LICENSE.TXT NEWS.rst README.rst
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
# test_embed_google_web_font - asks google for data
%pytest -k 'not test_embed_google_web_font'
%files %{python_files}
%doc NEWS.rst README.rst