Accepting request 1108040 from devel:languages:python

Forwarded request #1107345 from mcalabkova

- Add patch sphinx72.patch

OBS-URL: https://build.opensuse.org/request/show/1108040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-autodocsumm?expand=0&rev=13
This commit is contained in:
Ana Guerrero 2023-09-04 20:52:26 +00:00 committed by Git OBS Bridge
commit 3108cded74
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 28 12:45:01 UTC 2023 - Markéta Machová <mmachova@suse.com>
- Add patch sphinx72.patch
-------------------------------------------------------------------
Fri May 19 09:03:48 UTC 2023 - Jiri Srain <jsrain@suse.com>

View File

@ -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}

13
sphinx72.patch Normal file
View File

@ -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()