From d75f5e030683f628fd6fe2ae15b0c9aa76072bbb 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 cfef4259b..51bd24823 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -183,7 +183,8 @@ } autodoc_mock_imports = ['onewire', 'gi', - 'gi.repository',] + 'gi.repository', + 'vxi11'] # -- Options for autosection ---------------------------------------------- autosectionlabel_prefix_document = True