diff --git a/patsy-print-doc.patch b/patsy-print-doc.patch new file mode 100644 index 0000000..ac20b24 --- /dev/null +++ b/patsy-print-doc.patch @@ -0,0 +1,12 @@ +diff -ur patsy-0.5.1/doc/spline-regression.rst patsy-0.5.1.print/doc/spline-regression.rst +--- patsy-0.5.1/doc/spline-regression.rst 2015-11-09 06:01:53.000000000 +0100 ++++ patsy-0.5.1.print/doc/spline-regression.rst 2019-02-13 17:40:16.579986365 +0100 +@@ -179,7 +179,7 @@ + ....: {"x1": x1.ravel(), "x2": x2.ravel(), "df": df}) + ....: + +- In [80]: print y.shape ++ In [80]: print(y.shape) + + In [90]: fig = plt.figure() + diff --git a/python-patsy.spec b/python-patsy.spec index e1a00cd..4650553 100644 --- a/python-patsy.spec +++ b/python-patsy.spec @@ -8,7 +8,7 @@ the 'formula' mini-language used in R and S. Name: python-%{srcname} Version: 0.5.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: %{summary} # All code is under BSD except patsy.compat that is under Python # See LICENSE.txt for details @@ -18,6 +18,8 @@ URL: https://github.com/pydata/patsy Source0: https://pypi.io/packages/source/p/patsy/patsy-%{version}.tar.gz Patch0: patsy-intersphinx.patch Patch1: patsy-error-doc.patch +# https://github.com/pydata/patsy/issues/143 +Patch2: patsy-print-doc.patch BuildArch: noarch BuildRequires: python3-devel @@ -90,6 +92,9 @@ popd %license LICENSE.txt %changelog +* Wed Feb 13 2019 Sergio Pascual - 0.5.1-4 +- Patch a "print" command in docs + * Sat Feb 02 2019 Fedora Release Engineering - 0.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild