Skip to content

Commit

Permalink
Add mocking back in
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvm committed Oct 7, 2015
1 parent 2fc06f3 commit ccefa93
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import sys
import os
from mock import Mock as MagicMock
from sphinx.ext.autodoc import cut_lines

# If extensions (or modules to document with autodoc) are in another directory,
Expand Down Expand Up @@ -58,6 +59,14 @@
'python': ('http://docs.python.org/3.4', None)
}

class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return Mock()

MOCK_MODULES = ['fuel', 'progressbar', 'picklable_itertools', 'theano', 'toolz']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

graphviz_dot_args = ['-Gbgcolor=#fcfcfc'] # To match the RTD theme
graphviz_output_format = 'svg' # To produce SVG figures

Expand Down
3 changes: 3 additions & 0 deletions req-rtd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--allow-external theano
--allow-unverified theano
git+https://github.com/Theano/Theano.git#egg=theano

0 comments on commit ccefa93

Please sign in to comment.