From bf9bf13c951941d56651f957267c64eaa0a2543c Mon Sep 17 00:00:00 2001 From: Bastian Krause Date: Mon, 30 Sep 2024 13:46:42 +0200 Subject: [PATCH] doc: mock vxi11 module On Python 3.13, the vxi11 module import fails: autodoc: failed to import module 'siglent' from module 'labgrid.driver.power'; the following exception was raised: No module named 'xdrlib' It uses xdrlib which was dropped from Python's standard library with Python 3.13. See https://github.com/labgrid-project/labgrid/issues/1507 for more details. For the time being, mock the vxi11 module to make the doc builds work on Python 3.13. Signed-off-by: Bastian Krause --- doc/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 2fcea3267..1196c76bb 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -180,7 +180,8 @@ } autodoc_mock_imports = ['onewire', 'gi', - 'gi.repository',] + 'gi.repository', + 'vxi11'] # -- Options for autosection ---------------------------------------------- autosectionlabel_prefix_document = True