Skip to content

Commit

Permalink
add requirements for documentation and mocking for read the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Paulik committed May 19, 2015
1 parent df6d4a4 commit 36e87df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc_requirements.txt
@@ -0,0 +1,3 @@
mock
numpydoc
sphinx_rtd_theme
11 changes: 10 additions & 1 deletion docs/conf.py
Expand Up @@ -13,6 +13,15 @@
import inspect
from sphinx import apidoc

import mock

MOCK_MODULES = ['numpy', 'pykdtree', 'netCDF4', 'scipy', 'pandas',
'statsmodels', 'matplotlib', 'pygeogrids', 'pygrib',
'pyresample', 'pybufr-ecmwf']

for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()

__location__ = os.path.join(os.getcwd(), os.path.dirname(
inspect.getfile(inspect.currentframe())))

Expand Down Expand Up @@ -52,7 +61,7 @@

# General information about the project.
project = u'pytesmo'
copyright = u'2014, Christoph Paulik'
copyright = u'2014-2015, TU Wien'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down

0 comments on commit 36e87df

Please sign in to comment.