Fix the build for f39 and rawhide
Remove -W from SPHINXOPTS since Python 3.10 we should use mkdir instead makedirs
This commit is contained in:
parent
00b7ecb082
commit
df448efc33
11
py_mkdir.patch
Normal file
11
py_mkdir.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- breathe-4.35.0/tests/test_renderer.py.orig 2024-01-11 18:51:06.375701278 +0000
|
||||
+++ breathe-4.35.0/tests/test_renderer.py 2024-01-11 18:51:11.394686093 +0000
|
||||
@@ -35,7 +35,7 @@ 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(exist_ok=True)
|
||||
(kwargs["srcdir"] / "conf.py").write_text("")
|
||||
app_ = make_app(*args, **kwargs)
|
||||
yield app_
|
@ -17,6 +17,7 @@ URL: https://github.com/%{owner}/%{srcname}
|
||||
Source0: %{URL}/archive/v%{version}.tar.gz
|
||||
Source1: %{URL}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.sig
|
||||
Source2: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8aed58021feacdd5f27ba0e6a72f627716ea9d96#./vermware.key
|
||||
Patch1: py_mkdir.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
@ -74,7 +75,8 @@ This package contains documentation for developer documentation for %{srcname}.
|
||||
%py3_build
|
||||
%if %{with doc}
|
||||
# Build the documentation
|
||||
%make_build DOXYGEN=$(which doxygen) PYTHONPATH=$(pwd) html
|
||||
# Remove -W (turn warnings into errors) from SPHINXOPTS to fix the build for f39
|
||||
%make_build SPHINXOPTS="-v -E" DOXYGEN=$(which doxygen) PYTHONPATH=$(pwd) html
|
||||
# Remove temporary build files
|
||||
rm documentation/build/html/.buildinfo
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user