Commit df49ac8d authored by Jay's avatar Jay Committed by jay
Browse files

Altered docos conf.py to get RTD to build

parent 4a125b1c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -287,12 +287,13 @@ texinfo_documents = [

#For ReadTheDocs, using Mocking to get the builds working.
from unittest.mock import MagicMock

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

MOCK_MODULES = ['pyproj', 'gdal', 'numpy', 'pandas']
MOCK_MODULES = ['proj4', 'gdal', 'numpy', 'pandas', 'scipy']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

#NumpyDoc Options