File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -210,12 +210,21 @@ def check_sphinx_version(expected_version):
210
210
'numpydoc' ,
211
211
'sphinx_automodapi.automodapi' ,
212
212
'sphinx_automodapi.smart_resolver' ,
213
- 'sphinx_astropy.ext.doctest' ,
214
213
'sphinx_astropy.ext.changelog_links' ,
215
214
'sphinx_astropy.ext.generate_config' ,
216
215
'sphinx_astropy.ext.missing_static' ,
217
216
'sphinx.ext.mathjax' ]
218
217
218
+ try :
219
+ # Do this while in deprecation
220
+ import pytest_doctestplus .sphinx .doctestplus
221
+ extensions += ['pytest_doctestplus.sphinx.doctestplus' ]
222
+ except ImportError :
223
+ warnings .warn ("sphinx_astropy.ext.doctest has been deprecated "
224
+ "use the doctestplus extensions from pytest-doctestplus: "
225
+ "pytest_doctestplus.sphinx.doctestplus." ,DeprecationWarning )
226
+ extensions += ['sphinx_astropy.ext.doctest' ]
227
+
219
228
try :
220
229
import matplotlib .sphinxext .plot_directive
221
230
extensions += [matplotlib .sphinxext .plot_directive .__name__ ]
You can’t perform that action at this time.
0 commit comments