diff --git a/bpython-0.24.tar.gz b/bpython-0.24.tar.gz deleted file mode 100644 index 5b11718..0000000 --- a/bpython-0.24.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:98736ffd7a8c48fd2bfb53d898a475f4241bde0b672125706af04d9d08fd3dbd -size 222879 diff --git a/bpython-0.25.tar.gz b/bpython-0.25.tar.gz new file mode 100644 index 0000000..71748b1 --- /dev/null +++ b/bpython-0.25.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c246fc909ef6dcc26e9d8cb4615b0e6b1613f3543d12269b19ffd0782166c65b +size 207610 diff --git a/fix-python313-tests.patch b/fix-python313-tests.patch deleted file mode 100644 index f7b0e4a..0000000 --- a/fix-python313-tests.patch +++ /dev/null @@ -1,73 +0,0 @@ -From 45f4117b534d6827279f7b9e633f3cabe0fb37e6 Mon Sep 17 00:00:00 2001 -From: Sebastian Ramacher -Date: Fri, 25 Oct 2024 17:42:20 +0200 -Subject: [PATCH] Fix test errors with Python 3.13 - ---- - bpython/test/test_interpreter.py | 17 ++++++++++++++++- - bpython/test/test_repl.py | 11 ++++++++--- - 2 files changed, 24 insertions(+), 4 deletions(-) - -Index: bpython-0.24/bpython/test/test_interpreter.py -=================================================================== ---- bpython-0.24.orig/bpython/test/test_interpreter.py -+++ bpython-0.24/bpython/test/test_interpreter.py -@@ -112,7 +112,22 @@ class TestInterpreter(unittest.TestCase) - - global_not_found = "name 'gfunc' is not defined" - -- if (3, 11) <= sys.version_info[:2]: -+ if (3, 13) <= sys.version_info[:2]: -+ expected = ( -+ "Traceback (most recent call last):\n File " -+ + green('""') -+ + ", line " -+ + bold(magenta("1")) -+ + ", in " -+ + cyan("") -+ + "\n gfunc()" -+ + "\n ^^^^^\n" -+ + bold(red("NameError")) -+ + ": " -+ + cyan(global_not_found) -+ + "\n" -+ ) -+ elif (3, 11) <= sys.version_info[:2]: - expected = ( - "Traceback (most recent call last):\n File " - + green('""') -Index: bpython-0.24/bpython/test/test_repl.py -=================================================================== ---- bpython-0.24.orig/bpython/test/test_repl.py -+++ bpython-0.24/bpython/test/test_repl.py -@@ -338,9 +338,14 @@ class TestGetSource(unittest.TestCase): - self.assert_get_source_error_for_current_function( - collections.defaultdict.copy, "No source code found for INPUTLINE" - ) -- self.assert_get_source_error_for_current_function( -- collections.defaultdict, "could not find class definition" -- ) -+ if sys.version_info[:2] >= (3, 13): -+ self.assert_get_source_error_for_current_function( -+ collections.defaultdict, "source code not available" -+ ) -+ else: -+ self.assert_get_source_error_for_current_function( -+ collections.defaultdict, "could not find class definition" -+ ) - - def test_current_line(self): - self.repl.interp.locals["a"] = socket.socket -Index: bpython-0.24/bpython/repl.py -=================================================================== ---- bpython-0.24.orig/bpython/repl.py -+++ bpython-0.24/bpython/repl.py -@@ -152,7 +152,7 @@ class Interpreter(code.InteractiveInterp - with self.timer: - return super().runsource(source, filename, symbol) - -- def showsyntaxerror(self, filename: Optional[str] = None) -> None: -+ def showsyntaxerror(self, filename: Optional[str] = None, source: Optional[str] = None) -> None: - """Override the regular handler, the code's copied and pasted from - code.py, as per showtraceback, but with the syntaxerror callback called - and the text in a pretty colour.""" diff --git a/python-bpython.changes b/python-bpython.changes index 2e9da90..a5b527f 100644 --- a/python-bpython.changes +++ b/python-bpython.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Tue Jan 21 12:13:55 UTC 2025 - John Paul Adrian Glaubitz + +- Update to version 0.25 + * The `bpython-cli` rendering backend has been removed + following deprecation in version 0.19. + * This release is focused on Python 3.13 support. + * Fix __signature__ support + * #995: Fix handling of `SystemExit` + * #996: Improve order of completion results + * Fix build of documentation and manpages with Sphinx >= 7 + * #1001: Do not fail if modules don't have __version__ + * Remove use of distutils + * Support for Python 3.12 and 3.13 has been added. + Support for Python 3.7 and 3.8 has been dropped. +- Drop bpython-curses binary which was removed upstream +- Drop fix-python313-tests.patch, merged upstream +- Remove workaround for installing manpages from %install section + ------------------------------------------------------------------- Thu Jan 2 16:18:30 UTC 2025 - Nico Krapp diff --git a/python-bpython.spec b/python-bpython.spec index 95b0fd5..c1205aa 100644 --- a/python-bpython.spec +++ b/python-bpython.spec @@ -18,14 +18,12 @@ %bcond_without test Name: python-bpython -Version: 0.24 +Version: 0.25 Release: 0 Summary: Fancy Interface to the Python Interpreter License: MIT URL: https://www.bpython-interpreter.org/ Source: https://files.pythonhosted.org/packages/source/b/bpython/bpython-%{version}.tar.gz -# PATCH-FIX-UPSTREAM fix-python313-tests.patch from commits: gh#bbdff64 and gh#45f4117 -Patch0: fix-python313-tests.patch BuildRequires: %{python_module Babel} BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pip} @@ -101,14 +99,8 @@ sphinx-build -b man doc/sphinx/source build/sphinx/man %install %pyproject_install -# install manual pages by hand, for now: gh#bpython/bpython/issues/987 -mkdir -p %{buildroot}%{_mandir}/man1 -mkdir %{buildroot}%{_mandir}/man5 -mv build/sphinx/man/bpython.1 %{buildroot}/%{_mandir}/man1 -mv build/sphinx/man/bpython-config.5 %{buildroot}/%{_mandir}/man5 %python_clone -a %{buildroot}%{_bindir}/bpython -%python_clone -a %{buildroot}%{_bindir}/bpython-curses %python_clone -a %{buildroot}%{_bindir}/bpython-urwid %python_clone -a %{buildroot}%{_bindir}/bpdb %python_clone -a %{buildroot}%{_mandir}/man1/bpython.1 @@ -140,7 +132,7 @@ rm %{buildroot}%{_datadir}/applications/org.bpython-interpreter.bpython.desktop %endif %post -%{python_install_alternative bpython bpython-curses bpython-urwid bpdb bpython.1%{ext_man} bpython-config.5%{ext_man}} +%{python_install_alternative bpython bpython-urwid bpdb bpython.1%{ext_man} bpython-config.5%{ext_man}} %postun %python_uninstall_alternative bpython @@ -155,7 +147,6 @@ rm %{buildroot}%{_datadir}/applications/org.bpython-interpreter.bpython.desktop %dir %{python_sitelib}/bpython-%{version}*-info %{python_sitelib}/bpython-%{version}*-info/* %python_alternative %{_bindir}/bpython -%python_alternative %{_bindir}/bpython-curses %python_alternative %{_bindir}/bpython-urwid %python_alternative %{_bindir}/bpdb %python_alternative %{_mandir}/man1/bpython.1%{ext_man}