Skip to content

Commit b6f6839

Browse files
committed
No longer mock out dependency on readthedocs
Downloading these packages does not dominate documentation build time.
1 parent 3768ebf commit b6f6839

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

docs/conf.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,6 @@
2727
# do not try to create/read config files
2828
os.environ['STAGPY_ISOLATED'] = 'True'
2929

30-
# -- To mock out heavy dependencies ---------------------------------------
31-
from unittest.mock import MagicMock
32-
33-
class Mock(MagicMock):
34-
@classmethod
35-
def __getattr__(cls, name):
36-
return MagicMock()
37-
38-
MOCK_MODULES = ['numpy', 'scipy', 'scipy.signal', 'pandas', 'h5py',
39-
'matplotlib', 'matplotlib.patches', 'matplotlib.pyplot',
40-
'mpl_toolkits.axes_grid1']
41-
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
42-
4330
# -- General configuration ------------------------------------------------
4431

4532
# If your documentation needs a minimal Sphinx version, state it here.

setup.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
31
from setuptools import setup
42

53
with open('README.rst') as rdm:
@@ -9,20 +7,13 @@
97
'loam>=0.3.1',
108
'f90nml>=1.3.1',
119
'setuptools_scm>=6.2',
12-
]
13-
HEAVY = [
1410
'numpy>=1.19',
1511
'scipy>=1.5',
1612
'pandas>=1.1',
1713
'h5py>=3.1',
1814
'matplotlib>=3.3',
1915
]
2016

21-
ON_RTD = os.environ.get('READTHEDOCS', None) == 'True'
22-
# heavy dependencies are mocked out on Read the Docs
23-
if not ON_RTD:
24-
DEPENDENCIES.extend(HEAVY)
25-
2617
setup(
2718
name='stagpy',
2819

0 commit comments

Comments
 (0)