Package: python-patsy-doc
Version: 0.5.1-0.2
Severity: serious
Control: tags -1 patch

Some examples in patsy's spline-regression.rst raise exceptions when executed (at documentation build time). Such exceptions used to appear in the documentation output, but in ipython_directive 7.x they default to failing the whole build.

This can be turned off, but in the case of patsy it is possible to really fix the exceptions, which is probably better:

--- patsy-0.5.1/debian/control
+++ patsy-0.5.1/debian/control
@@ -8,6 +8,7 @@
                python3-all,
                python3-setuptools,
                python3-numpy,
+               python3-scipy,
                python3-pandas,
                python3-nose,
                python3-six,
--- patsy-0.5.1/debian/patches/print3.patch
+++ patsy-0.5.1/debian/patches/print3.patch
@@ -0,0 +1,17 @@
+Description: Use Python 3 syntax in example
+
+Author: Rebecca N. Palmer <rebecca_pal...@zoho.com>
+Bug-Debian: https://bugs.debian.org/<this bug>
+Forwarded: no
+
+--- patsy-0.5.1.orig/doc/spline-regression.rst
++++ patsy-0.5.1/doc/spline-regression.rst
+@@ -179,7 +179,7 @@ marginal spline bases patterns can be ob
+       ....:            {"x1": x1.ravel(), "x2": x2.ravel(), "df": df})
+       ....:
+
+-   In [80]: print y.shape
++   In [80]: print(y.shape)
+
+    In [90]: fig = plt.figure()
+
--- patsy-0.5.1/debian/patches/series
+++ patsy-0.5.1/debian/patches/series
@@ -1 +1,2 @@
 up_six_PY
+print3.patch

Reply via email to