diff --git a/python-breathe.changes b/python-breathe.changes index 427a089..38e5e4a 100644 --- a/python-breathe.changes +++ b/python-breathe.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 4 13:47:35 UTC 2023 - Markéta Machová + +- 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 diff --git a/support-sphinx-7.2.patch b/support-sphinx-7.2.patch index 8c8e6a8..8159a75 100644 --- a/support-sphinx-7.2.patch +++ b/support-sphinx-7.2.patch @@ -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_