Skip to content

Commit

Permalink
Don't mock six, because it seems to break things.
Browse files Browse the repository at this point in the history
  • Loading branch information
Onager committed Apr 23, 2015
1 parent 9b4e3e9 commit 84cd6a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,17 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return Mock()

# Mock all the dependencies!
# Mock all the dependencies! (except the ones we don't want to)
py_mods = [tup[0] for tup in dependencies.PYTHON_DEPENDENCIES]
py_mods.remove('six')
bin_mods = [key for key, value in dependencies.LIBYAL_DEPENDENCIES.iteritems()]
sys.modules.update((mod_name, Mock()) for mod_name in py_mods)
sys.modules.update((mod_name, Mock()) for mod_name in bin_mods)


# Napoleon settings
napoleon_google_docstring = True
napoelon_numpy_docstring = False
napoleon_numpy_docstring = False
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = True

Expand Down

0 comments on commit 84cd6a5

Please sign in to comment.