Skip to content

Commit 8c50a28

Browse files
committed
MNT: sphinxcontrib.napoleon is now sphinx.ext.napoleon
1 parent 19ca90c commit 8c50a28

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

nipype/info.py

-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ def get_nipype_gitversion():
171171
"sphinx-argparse",
172172
"sphinx>=2.1.2",
173173
"sphinxcontrib-apidoc",
174-
"sphinxcontrib-napoleon",
175174
],
176175
"duecredit": ["duecredit"],
177176
"nipy": ["nitime", "nilearn", "dipy", "nipy", "matplotlib"],

nipype/sphinxext/apidoc/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
"""Settings for sphinxext.interfaces and connection to sphinx-apidoc."""
44
import re
5-
from sphinxcontrib.napoleon import (
5+
from sphinx.ext.napoleon import (
66
Config as NapoleonConfig,
77
_patch_python_domain,
88
_skip_member as _napoleon_skip_member,

nipype/sphinxext/apidoc/docstring.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
# vi: set ft=python sts=4 ts=4 sw=4 et:
33
"""Reformat interface docstrings."""
44
import re
5-
from sphinxcontrib.napoleon._upstream import _
6-
from sphinxcontrib.napoleon.docstring import NumpyDocstring
5+
from sphinx.ext.napoleon.docstring import NumpyDocstring
76

87

98
class NipypeDocstring(NumpyDocstring):
@@ -34,7 +33,7 @@ class InterfaceDocstring(NipypeDocstring):
3433
docstring : :obj:`str` or :obj:`list` of :obj:`str`
3534
The docstring to parse, given either as a string or split into
3635
individual lines.
37-
config: :obj:`sphinxcontrib.napoleon.Config` or :obj:`sphinx.config.Config`
36+
config: :obj:`sphinx.ext.napoleon.Config` or :obj:`sphinx.config.Config`
3837
The configuration settings to use. If not given, defaults to the
3938
config object on `app`; or if `app` is not given defaults to the
4039
a new :class:`nipype.sphinxext.apidoc.Config` object.

0 commit comments

Comments
 (0)