1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
Author: Andreas Tille <tille@debian.org>
Last-Update: 2020-02-20
Description: Get sphinx doc somehow building
--- nipype.orig/doc/conf.py
+++ nipype/doc/conf.py
@@ -41,7 +41,9 @@
ex2rst = str(conf_py.parent.parent / "tools" / "ex2rst")
with TemporaryDirectory() as tmpdir:
- sp.run(
+ # Debian: no online resources should be accessed during build
+ if False:
+ sp.run(
[
"git",
"clone",
@@ -53,6 +55,7 @@
check=True,
)
source_dir = Path(tmpdir) / "package" / "niflow" / "nipype1" / "examples"
+ source_dir.mkdir(parents=True) # Debian: fake one, no content
shutil.copytree(
source_dir,
python_dir,
@@ -75,7 +78,8 @@
],
check=True,
)
-sp.run(
+if False:
+ sp.run(
[
sys.executable,
ex2rst,
@@ -126,18 +130,19 @@
"vtk",
]
-# Accept custom section names to be parsed for numpy-style docstrings
-# of parameters.
-# Requires pinning sphinxcontrib-napoleon to a specific commit while
-# https://github.com/sphinx-contrib/napoleon/pull/10 is merged.
-napoleon_use_param = False
-napoleon_custom_sections = [
- ("Inputs", "Parameters"),
- ("Outputs", "Parameters"),
- ("Attributes", "Parameters"),
- ("Mandatory Inputs", "Parameters"),
- ("Optional Inputs", "Parameters"),
-]
+# Debian: comes as sphinx.ext.napoleon, we do not use pinned one
+# # Accept custom section names to be parsed for numpy-style docstrings
+# # of parameters.
+# # Requires pinning sphinxcontrib-napoleon to a specific commit while
+# # https://github.com/sphinx-contrib/napoleon/pull/10 is merged.
+# napoleon_use_param = False
+# napoleon_custom_sections = [
+# ("Inputs", "Parameters"),
+# ("Outputs", "Parameters"),
+# ("Attributes", "Parameters"),
+# ("Mandatory Inputs", "Parameters"),
+# ("Optional Inputs", "Parameters"),
+# ]
# Add any paths that contain templates here, relative to this directory.
--- nipype.orig/doc/requirements.txt
+++ nipype/doc/requirements.txt
@@ -5,5 +5,3 @@
sphinx-argparse
sphinx>=2.1.2
sphinxcontrib-apidoc
-sphinxcontrib-napoleon
-niflow-nipype1-workflows
|