Accepting request 790810 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/790810
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-breathe?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2020-04-02 15:43:58 +00:00 committed by Git OBS Bridge
commit 04154b9fe4
3 changed files with 40 additions and 3 deletions

View File

@ -0,0 +1,26 @@
From 1ac526b963e7e80f028b800cf2339cad5cd9daef Mon Sep 17 00:00:00 2001
From: Jakob Lykke Andersen <Jakob@caput.dk>
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

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Apr 2 08:06:45 UTC 2020 - Dan Čermák <dcermak@suse.com>
- 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

View File

@ -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