--- docs/conf.py.orig 2017-09-06 19:16:13.000000000 -0400 +++ docs/conf.py 2017-09-05 16:54:48.000000000 -0400 @@ -26,7 +26,7 @@ # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', - 'sphinx.ext.coverage', 'sphinx.ext.pngmath', + 'sphinx.ext.coverage', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', 'matplotlib.sphinxext.plot_directive'] @@ -225,7 +225,7 @@ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {'bedtools': ('http://bedtools.readthedocs.org/en/latest/', None)} -class Mock(object): +class Mock(list): def __init__(self, *args, **kwargs): pass @@ -241,6 +241,9 @@ else: return Mock() + def setup(self, *args, **kargs): + pass + MOCK_MODULES = ['numpy', 'matplotlib', 'matplotlib.pyplot', 'matplotlib.sphinxext', 'matplotlib.sphinxext.plot_directive'] for mod_name in MOCK_MODULES: