forked from pool/python-graphviz
Accepting request 998029 from home:bnavigator:branches:devel:languages:python
- Update to v0.20.1
* Fix documentation building: upgrade to Sphinx 5.0.
* Fix broken user guide links in API documentation.
- Version 0.20
* Add keyword-only neato_no_op argument to .render(), .pipe(),
and stand-alone graphviz.render() and graphviz.pipe().
* When building a Graph or Digraph, warn about an expected DOT
syntax error in rendering when passing a string that ends with
an odd number of backslashes (e.g. invalid dot.node('spam',
label='\\') instead of correct ..., label=r'\\' for a node
labled as a backslash).
* Increase visibility of graphviz.escape() in the documentation.
- Version 0.19.2
* Drop Python 3.6 support (end of life 23 Dec 2021).
* Fix ExecutableNotFound and CalledProcessError in
graphviz.__all__.
* Better document 0.18 change of behaviour for the body
argument/attribute (lines need to include their final newline).
- drop python-graphviz-pytest.patch
OBS-URL: https://build.opensuse.org/request/show/998029
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-graphviz?expand=0&rev=27
This commit is contained in:
@@ -16,18 +16,16 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-graphviz
|
||||
Version: 0.19.1
|
||||
Version: 0.20.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 base >= 3.7}
|
||||
BuildRequires: %{python_module pytest >= 6}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest-mock >= 3}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: dos2unix
|
||||
@@ -58,6 +56,8 @@ displayed within IPython notebooks.
|
||||
|
||||
%prep
|
||||
%autosetup -n graphviz-%{version}
|
||||
sed -i '/--cov/d' setup.cfg
|
||||
sed -i '/^mock_use_standalone_module/d' setup.cfg
|
||||
|
||||
# Fix wrong-file-end-of-line-encoding
|
||||
dos2unix LICENSE.txt README.rst docs/*.rst
|
||||
@@ -70,14 +70,12 @@ dos2unix LICENSE.txt README.rst docs/*.rst
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
sed -i '/^mock/d' */requires.txt
|
||||
sed -i '/^mock_use_standalone_module/d' setup.cfg
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
%{python_sitelib}/graphviz
|
||||
%{python_sitelib}/graphviz-%{version}-py*.egg-info
|
||||
%{python_sitelib}/graphviz-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user