From c22da9591c2b068ff1497c0b414ab8564af661a1362a1cf48a69180dcc7dd1b0 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 30 Aug 2023 07:22:49 +0000 Subject: [PATCH] Accepting request 1107345 from home:mcalabkova:branches:devel:languages:python - Add patch sphinx72.patch OBS-URL: https://build.opensuse.org/request/show/1107345 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autodocsumm?expand=0&rev=25 --- python-autodocsumm.changes | 5 +++++ python-autodocsumm.spec | 2 ++ sphinx72.patch | 13 +++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 sphinx72.patch diff --git a/python-autodocsumm.changes b/python-autodocsumm.changes index 9887bfa..96c920e 100644 --- a/python-autodocsumm.changes +++ b/python-autodocsumm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 28 12:45:01 UTC 2023 - Markéta Machová + +- Add patch sphinx72.patch + ------------------------------------------------------------------- Fri May 19 09:03:48 UTC 2023 - Jiri Srain diff --git a/python-autodocsumm.spec b/python-autodocsumm.spec index 16eb5a5..7b31a0a 100644 --- a/python-autodocsumm.spec +++ b/python-autodocsumm.spec @@ -25,6 +25,8 @@ Summary: Extended sphinx autodoc including automatic autosummaries License: Apache-2.0 URL: https://github.com/Chilipp/autodocsumm Source: https://github.com/Chilipp/autodocsumm/archive/v%{version}.tar.gz#/autodocsumm-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/Chilipp/autodocsumm/pull/88 fix build with Sphinx 7.2 +Patch: sphinx72.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module versioneer} BuildRequires: %{python_module wheel} diff --git a/sphinx72.patch b/sphinx72.patch new file mode 100644 index 0000000..ff8958f --- /dev/null +++ b/sphinx72.patch @@ -0,0 +1,13 @@ +Index: autodocsumm-0.2.11/tests/test_autodocsumm.py +=================================================================== +--- autodocsumm-0.2.11.orig/tests/test_autodocsumm.py ++++ autodocsumm-0.2.11/tests/test_autodocsumm.py +@@ -36,7 +36,7 @@ def in_between(full, sub, s0, *others): + + + def get_html(app, fname): +- with open(app.outdir + '/' + fname) as f: ++ with open(str(app.outdir) + '/' + fname) as f: + return f.read() + +