Accepting request 1115629 from home:mcalabkova:branches:devel:languages:python

- Make support-sphinx-7.2.patch backwards-compatible
  * and sent upstream: https://github.com/breathe-doc/breathe/pull/956

OBS-URL: https://build.opensuse.org/request/show/1115629
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-breathe?expand=0&rev=52
This commit is contained in:
Matej Cepl 2023-10-05 15:45:19 +00:00 committed by Git OBS Bridge
parent 0e41328d90
commit cd4abf858e
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
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>

View File

@ -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/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
assert "srcdir" in kwargs
- kwargs["srcdir"].makedirs(exist_ok=True)
+ kwargs["srcdir"].mkdir(parents=True, exist_ok=True)
+ try:
+ 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("")
app_ = make_app(*args, **kwargs)
yield app_