Skip to content

Commit

Permalink
docs: stop using mock to allow solve_fe docs
Browse files Browse the repository at this point in the history
The solve_fe function can now be imported without sfepy being required
so remove all the mock paraphernalia from conf.py.
  • Loading branch information
wd15 committed Mar 12, 2021
1 parent 5b2646e commit fbedc93
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
30 changes: 0 additions & 30 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,6 @@
copyright = u'2021, Daniel Wheeler'


MOCK_MODULES = [
'sfe',
'sfepy',
'sfepy.base',
'sfepy.discrete',
'sfepy.discrete.fem',
'sfepy.discrete.conditions',
'sfepy.terms',
'sfepy.solvers',
'sfepy.solvers.ls',
'sfepy.solvers.nls',
'sfepy.discrete.fem.periodic',
'sfepy.mesh',
'sfepy.mesh.mesh_generators',
'sfepy.mechanics',
'sfepy.mechanics.matcoefs',
'sfepy.base.base'
]

import mock

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

m = mock.MagicMock()
d = dict(key='value')
m.__getitem__.side_effect = d.__getitem__
sys.modules['sfepy.base.goptions'] = m


import pymks
version = pymks.__version__
release = pymks.__version__
Expand Down
2 changes: 0 additions & 2 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
sphinx
sphinx_bootstrap_theme
pytest
numpy
toolz
dask
matplotlib
scikit-learn
mock
nbsphinx==0.5.1
m2r2
Deprecated
Expand Down

0 comments on commit fbedc93

Please sign in to comment.