From 75ba277da093271d814dd3c495f4199d60a6d665 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Aug 21 2023 14:59:02 +0000 Subject: Version 0.7 Add patch to fix reference to nonexistent bin_stdout function --- diff --git a/python-nb2plots-bin-stdout.patch b/python-nb2plots-bin-stdout.patch new file mode 100644 index 0000000..ca6e383 --- /dev/null +++ b/python-nb2plots-bin-stdout.patch @@ -0,0 +1,21 @@ +--- nb2plots-0.7/scripts/nb2plots.orig 2023-08-19 14:26:48.000000000 -0600 ++++ nb2plots-0.7/scripts/nb2plots 2023-08-21 08:47:22.051668705 -0600 +@@ -9,8 +9,8 @@ Prints to stdout with UTF-8 encoding. + """ + # vim: ft=python + from argparse import ArgumentParser ++import sys + +-from nb2plots.commands import bin_stdout + from nb2plots.from_notebook import convert_nb_fname + + +@@ -20,7 +20,7 @@ def main(): + parser.add_argument('notebook', help = 'notebook file to convert') + args = parser.parse_args() + rst_text = convert_nb_fname(args.notebook) + '\n' +- bin_stdout().write(rst_text.encode('utf-8')) ++ sys.stdout.buffer.write(rst_text.encode('utf-8')) + + + if __name__ == '__main__': diff --git a/python-nb2plots.spec b/python-nb2plots.spec index 343d4f8..d15c094 100644 --- a/python-nb2plots.spec +++ b/python-nb2plots.spec @@ -1,6 +1,6 @@ Name: python-nb2plots -Version: 0.6.1 -Release: 7%{?dist} +Version: 0.7 +Release: 1%{?dist} Summary: Convert between Jupyter notebooks and sphinx docs # BSD-2-Clause: All files with the following exception. @@ -9,6 +9,9 @@ Summary: Convert between Jupyter notebooks and sphinx docs License: BSD-2-Clause AND CC0-1.0 URL: https://matthew-brett.github.io/nb2plots/ Source0: https://github.com/matthew-brett/nb2plots/archive/%{version}/nb2plots-%{version}.tar.gz +# Fix reference to nonexistent bin_stdout +# See https://github.com/matthew-brett/nb2plots/issues/31 +Patch0: %{name}-bin-stdout.patch BuildArch: noarch @@ -125,6 +128,10 @@ cp -a man1 %{buildroot}%{_mandir} %doc doc/_build/html/* %changelog +* Mon Aug 21 2023 Jerry James - 0.7-1 +- Version 0.7 +- Add patch to fix reference to nonexistent bin_stdout function + * Fri Jul 21 2023 Fedora Release Engineering - 0.6.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index 7102c95..5de11b5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nb2plots-0.6.1.tar.gz) = ce2f3dc6a255c5a857d190cd742953fe9a4c67ffc7127f989c6052bcce70fbd495ebc7c2f3e83cacb3546c0821d4af0d9c8c99c02a202facef3248befba7ac73 +SHA512 (nb2plots-0.7.tar.gz) = 589a78e6f9663db19dfef2f5bd898bb2f23d39478a53c6e333b1cf88f4cdcc59c6f596f5ee1e422bcfd422bbe0d397c84f696d5002e327ffb040cc217b52468a