Sync from SUSE:SLFO:Main python-breathe revision 88eddb896f92a1f2f553d4593fa16c5f
This commit is contained in:
parent
b2882c64f2
commit
40795da6ad
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 20 01:45:43 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Skip test suite because of gh#breathe-doc/breathe#987
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 4 13:47:35 UTC 2023 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Make support-sphinx-7.2.patch backwards-compatible
|
||||||
|
* and sent upstream: https://github.com/breathe-doc/breathe/pull/956
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Aug 29 02:48:53 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
Tue Aug 29 02:48:53 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-breathe
|
# spec file for package python-breathe
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -37,7 +37,7 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: python-Sphinx >= 4.0
|
Requires: python-Sphinx >= 4.0
|
||||||
Requires: python-docutils >= 0.12
|
Requires: python-docutils >= 0.12
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
Provides: python-sphinxcontrib-breathe = %{version}
|
Provides: python-sphinxcontrib-breathe = %{version}
|
||||||
Obsoletes: python-sphinxcontrib-breathe < %{version}
|
Obsoletes: python-sphinxcontrib-breathe < %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -54,7 +54,8 @@ able to read and render Doxygen xml output.
|
|||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
# Tests fail because of gh#breathe-doc/breathe#987
|
||||||
|
# %%pytest
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
|
@ -2,12 +2,16 @@ Index: breathe-4.35.0/tests/test_renderer.py
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- breathe-4.35.0.orig/tests/test_renderer.py
|
--- breathe-4.35.0.orig/tests/test_renderer.py
|
||||||
+++ breathe-4.35.0/tests/test_renderer.py
|
+++ breathe-4.35.0/tests/test_renderer.py
|
||||||
@@ -35,7 +35,7 @@ def app(test_params, app_params, make_ap
|
@@ -35,7 +35,11 @@ def app(test_params, app_params, make_ap
|
||||||
"""
|
"""
|
||||||
args, kwargs = app_params
|
args, kwargs = app_params
|
||||||
assert "srcdir" in kwargs
|
assert "srcdir" in kwargs
|
||||||
- kwargs["srcdir"].makedirs(exist_ok=True)
|
- kwargs["srcdir"].makedirs(exist_ok=True)
|
||||||
|
+ try:
|
||||||
+ kwargs["srcdir"].mkdir(parents=True, exist_ok=True)
|
+ kwargs["srcdir"].mkdir(parents=True, exist_ok=True)
|
||||||
|
+ except AttributeError:
|
||||||
|
+ # old version of Sphinx
|
||||||
|
+ kwargs["srcdir"].makedirs(exist_ok=True)
|
||||||
(kwargs["srcdir"] / "conf.py").write_text("")
|
(kwargs["srcdir"] / "conf.py").write_text("")
|
||||||
app_ = make_app(*args, **kwargs)
|
app_ = make_app(*args, **kwargs)
|
||||||
yield app_
|
yield app_
|
||||||
|
Loading…
Reference in New Issue
Block a user