Skip to content

Commit

Permalink
Mock pygrib on read the docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Paulik committed Jan 30, 2017
1 parent 24ad82d commit 1dc663d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:

import mock

MOCK_MODULES = ['pygrib']
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()
import inspect
from sphinx import apidoc

Expand Down
1 change: 0 additions & 1 deletion docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ dependencies:
- pybufr-ecmwf=0.81=np111py27_0
- netcdf4=1.2.2=np111py27_0
- numpy=1.11.1=py27_0
- pygrib=2.0.1
- pip:
- pynetcf

0 comments on commit 1dc663d

Please sign in to comment.