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 <bst@pengutronix.de>
  • Loading branch information
Bastian-Krause committed Oct 10, 2024
1 parent 9a47d72 commit 0ac96e1
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 0ac96e1

Please sign in to comment.