Markéta Machová
b6b083745a
- Add sphinx41.patch to fix build with Sphinx 4.1.0 OBS-URL: https://build.opensuse.org/request/show/906026 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx_rtd_theme?expand=0&rev=27
18 lines
660 B
Diff
18 lines
660 B
Diff
Index: sphinx_rtd_theme-0.5.2/tests/test_builders.py
|
|
===================================================================
|
|
--- sphinx_rtd_theme-0.5.2.orig/tests/test_builders.py
|
|
+++ sphinx_rtd_theme-0.5.2/tests/test_builders.py
|
|
@@ -3,7 +3,11 @@ import os
|
|
import pytest
|
|
import sphinx
|
|
from sphinx import addnodes
|
|
-from sphinx.builders.html import SingleFileHTMLBuilder, DirectoryHTMLBuilder
|
|
+try:
|
|
+ from sphinx.builders.html import SingleFileHTMLBuilder, DirectoryHTMLBuilder
|
|
+except ImportError:
|
|
+ from sphinx.builders.singlehtml import SingleFileHTMLBuilder
|
|
+ from sphinx.builders.dirhtml import DirectoryHTMLBuilder
|
|
|
|
from .util import build_all
|
|
|