Mock matplotlib in conf.py for read the docs.

Thu, 07 Dec 2017 18:11:26 +0200

author
Iannis <i.binietoglou@impworks.gr>
date
Thu, 07 Dec 2017 18:11:26 +0200
changeset 99
7f307b98889b
parent 98
aacf4fcdd4dd
child 100
b20b59b350d5

Mock matplotlib in conf.py for read the docs.

docs/conf.py file | annotate | diff | comparison | revisions
--- a/docs/conf.py	Thu Dec 07 17:54:46 2017 +0200
+++ b/docs/conf.py	Thu Dec 07 18:11:26 2017 +0200
@@ -32,7 +32,7 @@
         def __getattr__(cls, name):
                 return MagicMock()
 
-    MOCK_MODULES = ['netCDF4', 'numpy', 'scipy',]
+    MOCK_MODULES = ['netCDF4', 'numpy', 'scipy', 'matplotlib']
     sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
 
 # -- General configuration ------------------------------------------------

mercurial