diff --git a/python-311.patch b/python-311.patch deleted file mode 100644 index 8d5f806..0000000 --- a/python-311.patch +++ /dev/null @@ -1,23 +0,0 @@ -Index: urwid-2.1.2/urwid/tests/test_event_loops.py -=================================================================== ---- urwid-2.1.2.orig/urwid/tests/test_event_loops.py -+++ urwid-2.1.2/urwid/tests/test_event_loops.py -@@ -201,15 +201,14 @@ else: - evl.alarm(0.5, lambda: 1 / 0) # Simulate error in event loop - self.assertRaises(ZeroDivisionError, evl.run) - -- def test_coroutine_error(self): -+ async def test_coroutine_error(self): - evl = self.evl - -- @asyncio.coroutine -- def error_coro(): -+ async def error_coro(): - result = 1 / 0 # Simulate error in coroutine - yield result - -- asyncio.ensure_future(error_coro()) -+ asyncio.ensure_future(await error_coro()) - self.assertRaises(ZeroDivisionError, evl.run) - - diff --git a/python-urwid.changes b/python-urwid.changes index 628c4bb..bc690ae 100644 --- a/python-urwid.changes +++ b/python-urwid.changes @@ -1,3 +1,42 @@ +------------------------------------------------------------------- +Fri Feb 2 05:55:07 UTC 2024 - Steve Kowalik + +- Update to 2.5.1: + * Extend Command enum and update Columns & Pile + * Fix double Widget inheritance in the LineBox + * Columns PACK item not fit as FIXED and support FLOW + * allow not subclassed incomplete widgets in Columns/Pile + * Columns rendered with a non-first Selectable widget should not skip + other items + * Fix regression: Columns render incorrect BOX/FLOW widgets height + * Overlay typing and proper repr + * support proper repr and str for Canvas + * Support FIXED and FLOW operations for Overlay depends on options + * Columns accept focus widget as "focus_column" + * Filler can act as FLOW widget + * allow explicit focus in GridFlow constructor + * Columns support correct BOX render only if ALL BOX + * support FIXED-only widgets and FIXED rendering for Columns + * Support FIXED-only widgets and FIXED rendering for PILE + * support FIXED render type for GridFLow + * Add run_in_executor helper to the event loop + * Feature: Implement keypress and mouse_event default handlers + * use Hashable for signal identifier types + * Introduce optional dependencies for package + * Feature: Support pack() for CheckBox/RadioButton/Button + * Fix font in case Font.data is str + * Fix: deep TextEnum was improperly resolved + * Fix #583: python 3.12 compatibility + * Python 37+ migration, Python < 3.7 support dropped + * make tests compatible with Python 3.11 + * Add two fonts based on Unicode 13 2x3 TRS-80/Teletext mosaic characters + * Fix assertion failure when string contains SO but not SI + * Use trio.lowlevel instead of trio.hazmat with Trio >= 0.15 + * Provide 80x24 fallback for ansi and vt100 +- Switch to pyproject macros. +- Drop patch python-311.patch, included upstream. +- Clean up Python 2 leftovers. + ------------------------------------------------------------------- Fri Apr 21 12:38:21 UTC 2023 - Dirk Müller diff --git a/python-urwid.spec b/python-urwid.spec index 443137b..f666a45 100644 --- a/python-urwid.spec +++ b/python-urwid.spec @@ -1,7 +1,7 @@ # # spec file for package python-urwid # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,23 +16,21 @@ # -%bcond_without python2 %{?sle15_python_module_pythons} Name: python-urwid -Version: 2.1.2 +Version: 2.5.1 Release: 0 Summary: A full-featured console (xterm et al.) user interface library License: LGPL-2.1-or-later URL: http://urwid.org Source: https://files.pythonhosted.org/packages/source/u/urwid/urwid-%{version}.tar.gz -# PATCH-FIX-UPSTREAM python-311.patch gh#urwid/urwid#517 -Patch0: python-311.patch +BuildRequires: %{python_module curses} BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module typing_extensions} +BuildRequires: %{python_module wheel} BuildRequires: fdupes -%if %{with python2} -BuildRequires: python-mock -%endif BuildRequires: python-rpm-macros Requires: python-curses %python_subpackages @@ -57,22 +55,19 @@ useful for text console application developers including: find urwid -name "*.py" | xargs sed -i '1 { /^#!/ d }' %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -# this test won't work on OBS -rm -f urwid/tests/test_vterm.py -cp *build*/*/urwid/*.so urwid %pyunittest discover -v %files %{python_files} %license COPYING %doc README.rst -%{python_sitearch}/urwid/ -%{python_sitearch}/urwid-%{version}-py%{python_version}.egg-info +%{python_sitearch}/urwid +%{python_sitearch}/urwid-%{version}.dist-info %changelog diff --git a/urwid-2.1.2.tar.gz b/urwid-2.1.2.tar.gz deleted file mode 100644 index afdeadd..0000000 --- a/urwid-2.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:588bee9c1cb208d0906a9f73c613d2bd32c3ed3702012f51efe318a3f2127eae -size 634621 diff --git a/urwid-2.5.1.tar.gz b/urwid-2.5.1.tar.gz new file mode 100644 index 0000000..b6f6e97 --- /dev/null +++ b/urwid-2.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63752e65674f057b357e50b9b73be44c47234507d57df676ce435e537c300bac +size 840146