Skip to content
Browse files

manual: clean up build and make compatible with python 3.7

  • Loading branch information...
sbourdeauducq committed Feb 26, 2019
1 parent 0d05d4b commit f65bcbcbb22fdd36d075b2379e72a8f6b481b53b
Showing with 5 additions and 12 deletions.
  1. +5 −12 doc/manual/
@@ -15,9 +15,9 @@

import sys
import os
from unittest.mock import Mock

import sphinx_rtd_theme
from unittest.mock import MagicMock

# Hack-patch Sphinx so that ARTIQ-Python types are correctly printed
@@ -26,21 +26,14 @@
autodoc.repr = str

class Mock(MagicMock):
def __getattr__(cls, name):
if name == "_mock_methods":
return None
return Mock()

mock_modules = ["artiq.gui.moninj",
mock_modules = ["artiq.gui.waitingspinnerwidget",
"quamash", "pyqtgraph", "matplotlib",
"numpy", "dateutil", "dateutil.parser", "prettytable", "PyQt5",
"h5py", "serial", "scipy", "scipy.interpolate", "asyncserial",
"llvmlite_artiq", "Levenshtein", "aiohttp"]
"llvmlite_artiq", "Levenshtein", "aiohttp", "pythonparser"]

for module in mock_modules:
sys.modules[module] = Mock()

0 comments on commit f65bcbc

Please sign in to comment.
You can’t perform that action at this time.