diff --git a/0001-Add-MockApp.emit.patch b/0001-Add-MockApp.emit.patch new file mode 100644 index 0000000..cbd672a --- /dev/null +++ b/0001-Add-MockApp.emit.patch @@ -0,0 +1,26 @@ +From 1ac526b963e7e80f028b800cf2339cad5cd9daef Mon Sep 17 00:00:00 2001 +From: Jakob Lykke Andersen +Date: Wed, 18 Mar 2020 11:23:25 +0100 +Subject: [PATCH] Add MockApp.emit + +--- + tests/test_renderer.py | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/tests/test_renderer.py b/tests/test_renderer.py +index 0c8df08..95ea3f7 100644 +--- a/tests/test_renderer.py ++++ b/tests/test_renderer.py +@@ -83,6 +83,9 @@ class MockApp(object): + if not docutils.is_node_registered(node): + docutils.register_node(node) + ++ def emit(self, name, *args): ++ print('[MockApp] was supposed to emit event: %r%s' % (name, repr(args)[:100])) ++ + + class MockState: + def __init__(self): +-- +2.26.0 + diff --git a/python-breathe.changes b/python-breathe.changes index 7c6dcbe..3ea0a3e 100644 --- a/python-breathe.changes +++ b/python-breathe.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Apr 2 08:06:45 UTC 2020 - Dan Čermák + +- Fix FTBFS due to test failure + + Add patch: 0001-Add-MockApp.emit.patch + This is cherry picked from https://github.com/michaeljones/breathe/pull/486 + and fixes test failures with sphinx 2.4.4 + ------------------------------------------------------------------- Sun Feb 2 16:00:02 UTC 2020 - aloisio@gmx.com diff --git a/python-breathe.spec b/python-breathe.spec index 7cddfd6..899eb61 100644 --- a/python-breathe.spec +++ b/python-breathe.spec @@ -24,7 +24,9 @@ Summary: Sphinx Doxygen renderer License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/michaeljones/breathe -Source: https://github.com/michaeljones/breathe/archive/v%{version}.tar.gz#/breathe-%{version}.tar.gz +Source: %{URL}/archive/v%{version}.tar.gz#/breathe-%{version}.tar.gz +# https://github.com/michaeljones/breathe/pull/486 +Patch0: 0001-Add-MockApp.emit.patch BuildRequires: %{python_module Sphinx >= 2.0} BuildRequires: %{python_module docutils >= 0.12} BuildRequires: %{python_module mock} @@ -47,7 +49,7 @@ Breathe is an extension to reStructuredText and Sphinx to be able to read and render Doxygen xml output. %prep -%setup -q -n breathe-%{version} +%autosetup -p1 -n breathe-%{version} %build %python_build @@ -57,7 +59,7 @@ able to read and render Doxygen xml output. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v tests/ +%make_build dev-test %files %{python_files} %doc README.rst