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 #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 authored and Emantor committed Oct 21, 2024
1 parent dc5a9f7 commit bf9bf13
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 @@ -180,7 +180,8 @@
}
autodoc_mock_imports = ['onewire',
'gi',
'gi.repository',]
'gi.repository',
'vxi11']

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

0 comments on commit bf9bf13

Please sign in to comment.