Skip to content

Commit 0501b79

Browse files
committed
MNT: sphinxcontrib.napoleon is now sphinx.ext.napoleon
1 parent b9e18ca commit 0501b79

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

nipype/info.py

Lines changed: 0 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
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.locale import _
6+
from sphinx.ext.napoleon.docstring import NumpyDocstring
77

88

99
class NipypeDocstring(NumpyDocstring):
@@ -34,7 +34,7 @@ class InterfaceDocstring(NipypeDocstring):
3434
docstring : :obj:`str` or :obj:`list` of :obj:`str`
3535
The docstring to parse, given either as a string or split into
3636
individual lines.
37-
config: :obj:`sphinxcontrib.napoleon.Config` or :obj:`sphinx.config.Config`
37+
config: :obj:`sphinx.ext.napoleon.Config` or :obj:`sphinx.config.Config`
3838
The configuration settings to use. If not given, defaults to the
3939
config object on `app`; or if `app` is not given defaults to the
4040
a new :class:`nipype.sphinxext.apidoc.Config` object.

0 commit comments

Comments
 (0)