[Python-modules-commits] [dask] 06/08: numpydoc >= 0.7 FTBFS with Dask's method of reusing docstrings

Diane Trout diane at moszumanska.debian.org
Wed Jul 26 22:02:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

diane pushed a commit to branch master
in repository dask.

commit 452a0e496c14da29981ec8be600d4389a9495f7c
Author: Diane Trout <diane at ghic.org>
Date:   Wed Jul 26 14:55:17 2017 -0700

    numpydoc >= 0.7 FTBFS with Dask's method of reusing docstrings
    
    See https://github.com/dask/dask/issues/2530 for discussion
---
 .../patches/avoid-duplicate-notes-with-numpydoc.patch | 19 +++++++++++++++++++
 debian/patches/series                                 |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/avoid-duplicate-notes-with-numpydoc.patch b/debian/patches/avoid-duplicate-notes-with-numpydoc.patch
new file mode 100644
index 0000000..0139b8a
--- /dev/null
+++ b/debian/patches/avoid-duplicate-notes-with-numpydoc.patch
@@ -0,0 +1,19 @@
+Author: Diane Trout <diane at ghic.org>
+Bug: https://github.com/dask/dask/issues/2530
+Description: numpydoc adds checks to avoid sections with duplicate names.
+ The way that Dask adds a comment listing unsupported arguments to
+ the docstring can trigger that check.
+ .
+ This is a work around by using a totally new section name.
+
+--- a/dask/utils.py
++++ b/dask/utils.py
+@@ -496,7 +496,7 @@
+                 not_supported.extend(ua_args)
+ 
+             if len(not_supported) > 0:
+-                note = ("\n        Notes\n        -----\n"
++                note = ("\n        Caution\n        -------\n"
+                         "        Dask doesn't support the following argument(s).\n\n")
+                 args = ''.join(['        * {0}\n'.format(a) for a in not_supported])
+                 doc = doc + note + args
diff --git a/debian/patches/series b/debian/patches/series
index 3761a4e..99156a8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+avoid-duplicate-notes-with-numpydoc.patch
 Use-the-packaged-MathJax.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/dask.git



More information about the Python-modules-commits mailing list