From 63cf80aae58a943eaf59c7b468b0ffcfe43c98f3 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 9 May 2024 11:46:26 +0200 Subject: [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 --- utils/lib_sxng_test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'utils/lib_sxng_test.sh') 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 } -- cgit v1.2.3-54-g00ecf