diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-05-09 11:46:26 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-05-09 17:15:21 +0200 |
commit | 63cf80aae58a943eaf59c7b468b0ffcfe43c98f3 (patch) | |
tree | 9d6913fa38ed57feceed7578ab47df7fa9641107 /utils | |
parent | 58320222e2725c5e370226a1df78f9e951202e05 (diff) | |
download | searxng-63cf80aae58a943eaf59c7b468b0ffcfe43c98f3.tar.gz searxng-63cf80aae58a943eaf59c7b468b0ffcfe43c98f3.zip |
[fix] docutils dependencies (docutils>=0.21.2)
Another trip into the hell of dependencies: docutils tends to put major changes
in minor patches: the executables have been renamed / e.g.
rst2html.py --> rts2html
so we have to use docutils at least from version 0.21.2, but this version of
docutils is only supported by myst-parser from version 3.0.1 on.
Additionally, docutils decided to drop python 3.8 in version 0.21 [1]
Further, linuxdoc needed an update to cope with docutils 0.21 [2]
[1] https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-21-2024-04-09
[2] https://github.com/return42/linuxdoc/pull/36
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/lib_sxng_test.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/lib_sxng_test.sh b/utils/lib_sxng_test.sh index e0a4fe6f0..5e4c94f36 100755 --- a/utils/lib_sxng_test.sh +++ b/utils/lib_sxng_test.sh @@ -89,10 +89,17 @@ test.robot() { dump_return $? } + test.rst() { build_msg TEST "[reST markup] ${RST_FILES[*]}" + + local rst2html=rst2html + if [ "3.8" == "$(python -c 'import sys; print(".".join([str(x) for x in sys.version_info[:2]]))')" ]; then + rst2html=rst2html.py + fi + for rst in "${RST_FILES[@]}"; do - pyenv.cmd rst2html.py --halt error "$rst" > /dev/null || die 42 "fix issue in $rst" + pyenv.cmd "${rst2html}" --halt error "$rst" > /dev/null || die 42 "fix issue in $rst" done } |