Skip to content

Commit

Permalink
doc: mock vxi11 module
Browse files Browse the repository at this point in the history
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 labgrid-project#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 <[email protected]>
  • Loading branch information
Bastian-Krause committed Sep 30, 2024
1 parent 8d6c37c commit d75f5e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
}
autodoc_mock_imports = ['onewire',
'gi',
'gi.repository',]
'gi.repository',
'vxi11']

# -- Options for autosection ----------------------------------------------
autosectionlabel_prefix_document = True
Expand Down

0 comments on commit d75f5e0

Please sign in to comment.