forked from M-Labs/artiq
manual: sphinx mock module whack-a-mole
This commit is contained in:
parent
3812731716
commit
500c0e587f
|
@ -30,12 +30,19 @@ autodoc.repr = inspect.repr = str
|
||||||
# we cannot use autodoc_mock_imports (does not help with argparse)
|
# we cannot use autodoc_mock_imports (does not help with argparse)
|
||||||
mock_modules = ["artiq.gui.waitingspinnerwidget",
|
mock_modules = ["artiq.gui.waitingspinnerwidget",
|
||||||
"artiq.gui.flowlayout",
|
"artiq.gui.flowlayout",
|
||||||
|
"artiq.gui.state",
|
||||||
|
"artiq.gui.log",
|
||||||
|
"artiq.gui.models",
|
||||||
"artiq.compiler.module",
|
"artiq.compiler.module",
|
||||||
"artiq.compiler.embedding",
|
"artiq.compiler.embedding",
|
||||||
|
"artiq.dashboard",
|
||||||
"quamash", "pyqtgraph", "matplotlib",
|
"quamash", "pyqtgraph", "matplotlib",
|
||||||
"numpy", "dateutil", "dateutil.parser", "prettytable", "PyQt5",
|
"numpy", "dateutil", "dateutil.parser", "prettytable", "PyQt5",
|
||||||
"h5py", "serial", "scipy", "scipy.interpolate",
|
"h5py", "serial", "scipy", "scipy.interpolate",
|
||||||
"llvmlite_artiq", "Levenshtein", "pythonparser", "sipyco"]
|
"llvmlite_artiq", "Levenshtein", "pythonparser",
|
||||||
|
"sipyco", "sipyco.pc_rpc", "sipyco.sync_struct",
|
||||||
|
"sipyco.asyncio_tools", "sipyco.logging_tools",
|
||||||
|
"sipyco.broadcast", "sipyco.packed_exceptions"]
|
||||||
|
|
||||||
for module in mock_modules:
|
for module in mock_modules:
|
||||||
sys.modules[module] = Mock()
|
sys.modules[module] = Mock()
|
||||||
|
|
Loading…
Reference in New Issue