forked from pool/python-graphviz
Accepting request 940278 from home:dimstar:Factory
- Add noto-sans-fonts: in order to have a reliable test suite with
pango 1.50, we need to have some fonts available.
- Add python-graphviz-pytest.patch: Allow to run pytest directly,
instead of run-tests.py. Allows us to further use %%pytest
without workarounds. Patch will be part of the next version.
- Update to version 0.19.1:
+ Fix undecoded CalledProcessError.stdout and .stderr when
.pipe() call with an encoding different from self.encoding
fails.
+ Fix missing project root conftest.py in source distribution.
+ Extend examples/graphviz-escapes.ipynb.
+ Improve test coverage.
+ Increase build scripts verbosity.
- Update to version 0.19:
+ Add PendingDeprecationWarning to calls using positional
arguments that will be deprecated in a later version.
+ Add keyword-only outfile argument to .render() and stand-alone
graphviz.render().
+ Add graphviz.set_jupyter_format() to set the output format used
by the Jupyter visualization of graphviz.Graph,
graphviz.Digraph, and graphviz.Source.
+ Add keyword-only raise_if_result_exists argument to .render()
and stand-alone graphviz.render().
- For all intermediate releases between 0.14.1 and 0.19, please see
the packaged CHANGES.txt.
OBS-URL: https://build.opensuse.org/request/show/940278
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphviz?expand=0&rev=24
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-graphviz
|
||||
#
|
||||
# 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
|
||||
@@ -18,15 +18,16 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-graphviz
|
||||
Version: 0.14.1
|
||||
Version: 0.19.1
|
||||
Release: 0
|
||||
Summary: Python interface for Graphviz
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/xflr6/graphviz
|
||||
Source: https://files.pythonhosted.org/packages/source/g/graphviz/graphviz-%{version}.zip
|
||||
Patch0: python-graphviz-pytest.patch
|
||||
BuildRequires: %{python_module mock >= 2}
|
||||
BuildRequires: %{python_module pytest >= 3.4}
|
||||
BuildRequires: %{python_module pytest >= 6}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest-mock >= 1.8}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -34,6 +35,7 @@ BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: graphviz
|
||||
BuildRequires: graphviz-gnome
|
||||
BuildRequires: noto-sans-fonts
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
BuildRequires: w3m
|
||||
@@ -56,13 +58,10 @@ inspected with its default application. Graphs can also be rendered and
|
||||
displayed within IPython notebooks.
|
||||
|
||||
%prep
|
||||
%setup -q -n graphviz-%{version}
|
||||
%autosetup -n graphviz-%{version}
|
||||
|
||||
# Fix wrong-file-end-of-line-encoding
|
||||
dos2unix CHANGES.txt LICENSE.txt README.rst docs/*.rst
|
||||
|
||||
# Remove hardcoded pytest version
|
||||
sed -i -e '/minversion/d' setup.cfg
|
||||
dos2unix LICENSE.txt README.rst docs/*.rst
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -76,7 +75,7 @@ sed -i -e '/minversion/d' setup.cfg
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc CHANGES.txt README.rst
|
||||
%doc README.rst
|
||||
%{python_sitelib}/graphviz
|
||||
%{python_sitelib}/graphviz-%{version}-py*.egg-info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user