diff --git a/docs/conf.py b/docs/conf.py index c44fa35bd..389569bf3 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,8 +27,7 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', - 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', - 'matplotlib.sphinxext.plot_directive'] + 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode'] # Add any paths that contain templates here, relative to this directory. templates_path = ['templates'] @@ -224,24 +223,3 @@ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {'bedtools': ('http://bedtools.readthedocs.org/en/latest/', None)} - -class Mock(object): - def __init__(self, *args, **kwargs): - pass - - def __call__(self, *args, **kwargs): - return Mock() - - @classmethod - def __getattr__(cls, name): - if name in ('__file__', '__path__'): - return '/dev/null' - elif name[0] == name[0].upper(): - return type(name, (), {}) - else: - return Mock() - -MOCK_MODULES = ['numpy', 'matplotlib', 'matplotlib.pyplot', - 'matplotlib.sphinxext', 'matplotlib.sphinxext.plot_directive'] -for mod_name in MOCK_MODULES: - sys.modules[mod_name] = Mock()