From fa0aca0f69a44afae5e9f5ef85fe4e95ed240480 Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Jul 05 2021 11:18:19 +0000 Subject: Patch doc conf.py problem (bz #1977623) --- diff --git a/patsy-doc-conf.patch b/patsy-doc-conf.patch new file mode 100644 index 0000000..d1e4995 --- /dev/null +++ b/patsy-doc-conf.patch @@ -0,0 +1,48 @@ +diff -ur patsy-0.5.1/doc/conf.py patsy-0.5.1.conf/doc/conf.py +--- patsy-0.5.1/doc/conf.py 2021-07-01 14:43:43.978489944 +0200 ++++ patsy-0.5.1.conf/doc/conf.py 2021-07-01 14:43:17.388064611 +0200 +@@ -5,23 +5,23 @@ + copyright = u'2011-2015, Nathaniel J. Smith' + + import sys +-print "python exec:", sys.executable +-print "sys.path:", sys.path ++print("python exec:", sys.executable) ++print("sys.path:", sys.path) + try: + import numpy +- print "numpy: %s, %s" % (numpy.__version__, numpy.__file__) ++ print ("numpy: %s, %s" % (numpy.__version__, numpy.__file__)) + except ImportError: +- print "no numpy" ++ print ("no numpy") + try: + import matplotlib +- print "matplotlib: %s, %s" % (matplotlib.__version__, matplotlib.__file__) ++ print("matplotlib: %s, %s" % (matplotlib.__version__, matplotlib.__file__)) + except ImportError: +- print "no matplotlib" ++ print("no matplotlib") + try: + import IPython +- print "ipython: %s, %s" % (IPython.__version__, IPython.__file__) ++ print("ipython: %s, %s" % (IPython.__version__, IPython.__file__)) + except ImportError: +- print "no ipython" ++ print("no ipython") + + # The version info for the project you're documenting, acts as replacement for + # |version| and |release|, also used in various other places throughout the +@@ -67,9 +67,9 @@ + # Undocumented trick: if we def setup here in conf.py, it gets called just + # like an extension's setup function. + def setup(app): +- app.add_javascript("show-code.js") +- app.add_javascript("facebox.js") +- app.add_stylesheet("facebox.css") ++ app.add_js_file("show-code.js") ++ app.add_js_file("facebox.js") ++ app.add_css_file("facebox.css") + + # Add any paths that contain templates here, relative to this directory. + templates_path = ['_templates'] diff --git a/python-patsy.spec b/python-patsy.spec index d2816fb..cd3e575 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: 14%{?dist} +Release: 15%{?dist} Summary: %{summary} # All code is under BSD except patsy.compat that is under Python # See LICENSE.txt for details @@ -23,6 +23,7 @@ Patch2: patsy-print-doc.patch Patch3: patsy-python39.patch # The contour routine emits a warning with numpy 1.9 Patch4: patsy-warn-doc.patch +Patch5: patsy-doc-conf.patch BuildArch: noarch BuildRequires: make @@ -97,6 +98,9 @@ popd %license LICENSE.txt %changelog +* Thu Jul 01 2021 Sergio Pascual - 0.5.1-15 +- Patch doc conf.py problem (bz #1977623) + * Fri Jun 04 2021 Python Maint - 0.5.1-14 - Rebuilt for Python 3.10