diff --git a/graphviz-0.19.1.zip b/graphviz-0.19.1.zip deleted file mode 100644 index 3b51d8b..0000000 --- a/graphviz-0.19.1.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:09ed0cde452d015fe77c4845a210eb642f28d245f5bc250d4b97808cb8f49078 -size 247779 diff --git a/graphviz-0.20.1.zip b/graphviz-0.20.1.zip new file mode 100644 index 0000000..c5c2101 --- /dev/null +++ b/graphviz-0.20.1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c58f14adaa3b947daf26c19bc1e98c4e0702cdc31cf99153e6f06904d492bf8 +size 255182 diff --git a/python-graphviz-pytest.patch b/python-graphviz-pytest.patch deleted file mode 100644 index 254ae35..0000000 --- a/python-graphviz-pytest.patch +++ /dev/null @@ -1,75 +0,0 @@ -From 961dbdd607399e264a752a73df874f686538d949 Mon Sep 17 00:00:00 2001 -From: Sebastian Bank -Date: Mon, 13 Dec 2021 10:53:45 +0100 -Subject: [PATCH] move doctest +NO_EXE definition/setup to conftest.py - -- see #152 ---- - conftest.py | 16 +++++++++++++++- - run-tests.py | 17 ++--------------- - 2 files changed, 17 insertions(+), 16 deletions(-) - -Index: graphviz-0.19.1/conftest.py -=================================================================== ---- graphviz-0.19.1.orig/conftest.py -+++ graphviz-0.19.1/conftest.py -@@ -1,6 +1,21 @@ - """pytest command line options and doctest namespace.""" - - import pytest -+import doctest -+import unittest.mock -+ -+NO_EXE = doctest.register_optionflag('NO_EXE') -+ -+class NoExeChecker(doctest.OutputChecker): # noqa: E302 -+ -+ def check_output(self, want, got, optionflags, *args, **kwargs) -> bool: -+ if optionflags & NO_EXE: -+ return True -+ return super().check_output(want, got, optionflags, *args, **kwargs) -+ -+unittest.mock.patch.object(doctest, 'OutputChecker', new=NoExeChecker).start() # noqa: E305 -+ -+import pytest # noqa: E402 - - SKIP_EXE = '--skip-exe' - -Index: graphviz-0.19.1/run-tests.py -=================================================================== ---- graphviz-0.19.1.orig/run-tests.py -+++ graphviz-0.19.1/run-tests.py -@@ -7,11 +7,11 @@ import doctest - import pathlib - import platform - import sys --from unittest import mock - --SELF = pathlib.Path(__file__) -+import pytest - - NO_EXE = doctest.register_optionflag('NO_EXE') -+SELF = pathlib.Path(__file__) - - ARGS = [#'--skip-exe', - #'--only-exe', -@@ -26,19 +26,6 @@ ARGS = [#'--skip-exe', - if platform.system() == 'Windows' and 'idlelib' in sys.modules: - ARGS += ['--capture=sys', '--color=no'] - -- --class NoExeChecker(doctest.OutputChecker): -- -- def check_output(self, want, got, optionflags, *args, **kwargs) -> bool: -- if optionflags & NO_EXE: -- return True -- return super().check_output(want, got, optionflags, *args, **kwargs) -- -- --mock.patch.object(doctest, 'OutputChecker', new=NoExeChecker).start() --import pytest # noqa: E402 -- -- - print('run', [SELF.name] + sys.argv[1:]) - args = ARGS + sys.argv[1:] - diff --git a/python-graphviz.changes b/python-graphviz.changes index 5134126..7484dad 100644 --- a/python-graphviz.changes +++ b/python-graphviz.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Thu Aug 18 18:39:25 UTC 2022 - Ben Greiner + +- 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 + ------------------------------------------------------------------- Wed Mar 23 10:36:42 UTC 2022 - pgajdos@suse.com diff --git a/python-graphviz.spec b/python-graphviz.spec index db31568..9282470 100644 --- a/python-graphviz.spec +++ b/python-graphviz.spec @@ -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