Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-breathe for openSUSE:Factory 
checked in at 2022-10-28 19:28:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-breathe (Old)
 and      /work/SRC/openSUSE:Factory/.python-breathe.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-breathe"

Fri Oct 28 19:28:36 2022 rev:18 rq:1031837 version:4.34.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-breathe/python-breathe.changes    
2022-10-27 13:54:43.236735308 +0200
+++ /work/SRC/openSUSE:Factory/.python-breathe.new.2275/python-breathe.changes  
2022-10-28 19:28:39.942371173 +0200
@@ -1,0 +2,6 @@
+Fri Oct 28 06:53:44 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add Fix-tests-for-Sphinx-5.3.0.patch to make the package compatible with
+  Sphinx 5.3.0
+
+-------------------------------------------------------------------

New:
----
  Fix-tests-for-Sphinx-5.3.0.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-breathe.spec ++++++
--- /var/tmp/diff_new_pack.9SY43O/_old  2022-10-28 19:28:40.526374102 +0200
+++ /var/tmp/diff_new_pack.9SY43O/_new  2022-10-28 19:28:40.538374162 +0200
@@ -25,6 +25,8 @@
 License:        BSD-3-Clause
 URL:            https://github.com/michaeljones/breathe
 Source:         
https://github.com/michaeljones/%{modname}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM Fix-tests-for-Sphinx-5.3.0.patch 
gh#breathe-doc/breathe#865
+Patch0:         Fix-tests-for-Sphinx-5.3.0.patch
 BuildRequires:  %{python_module Sphinx >= 4.0}
 BuildRequires:  %{python_module docutils >= 0.12}
 BuildRequires:  %{python_module pytest}

++++++ Fix-tests-for-Sphinx-5.3.0.patch ++++++
>From de3504c81c7cefc87c8229743f93232ca00a685d Mon Sep 17 00:00:00 2001
From: Daniel Garcia Moreno <daniel.gar...@suse.com>
Date: Fri, 28 Oct 2022 08:45:33 +0200
Subject: [PATCH] Fix tests for Sphinx 5.3.0

Fix https://github.com/breathe-doc/breathe/issues/863
---
 tests/test_renderer.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/tests/test_renderer.py b/tests/test_renderer.py
index 1688981..a858c65 100644
--- a/tests/test_renderer.py
+++ b/tests/test_renderer.py
@@ -109,6 +109,12 @@ class WrappedCompoundDef(compounddefTypeSub, 
WrappedDoxygenNode):
         WrappedDoxygenNode.__init__(self, compounddefTypeSub, **kwargs)
 
 
+class MockMemo:
+    def __init__(self):
+        self.title_styles = ""
+        self.section_level = ""
+
+
 class MockState:
     def __init__(self, app):
         from breathe.project import ProjectInfoFactory
@@ -123,7 +129,11 @@ class MockState:
         settings.env = env
         self.document = utils.new_document("", settings)
 
-    def nested_parse(self, content, content_offset, contentnode):
+        # In sphinx 5.3.0 the method state.nested_parse is not called directly
+        # so this memo object should exists here
+        self.memo = MockMemo()
+
+    def nested_parse(self, content, content_offset, contentnode, 
match_titles=1):
         pass
 
 
-- 
2.38.0

Reply via email to