Skip to content

Commit

Permalink
Mock numpy/scipy for Sphinx on readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
winstonaws committed Apr 14, 2018
1 parent d76cd2b commit 86ce971
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ scratch*.py
examples/tensorflow/distributed_mnist/data
*.iml
doc/_build
doc/_static
doc/_templates
**/.DS_Store
venv/
*~
Expand Down
3 changes: 2 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def __getattr__(cls, name):


MOCK_MODULES = ['tensorflow', 'tensorflow.core', 'tensorflow.core.framework', 'tensorflow.python',
'tensorflow.python.framework', 'tensorflow_serving', 'tensorflow_serving.apis']
'tensorflow.python.framework', 'tensorflow_serving', 'tensorflow_serving.apis',
'numpy', 'scipy']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

version = '1.2.2'
Expand Down

0 comments on commit 86ce971

Please sign in to comment.