forked from pool/python-urwid
- 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urwid?expand=0&rev=50
This commit is contained in:
@@ -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)
|
|
||||||
|
|
||||||
|
|
@@ -1,3 +1,42 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 2 05:55:07 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
Fri Apr 21 12:38:21 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-urwid
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,23 +16,21 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%bcond_without python2
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-urwid
|
Name: python-urwid
|
||||||
Version: 2.1.2
|
Version: 2.5.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A full-featured console (xterm et al.) user interface library
|
Summary: A full-featured console (xterm et al.) user interface library
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
URL: http://urwid.org
|
URL: http://urwid.org
|
||||||
Source: https://files.pythonhosted.org/packages/source/u/urwid/urwid-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/u/urwid/urwid-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM python-311.patch gh#urwid/urwid#517
|
BuildRequires: %{python_module curses}
|
||||||
Patch0: python-311.patch
|
|
||||||
BuildRequires: %{python_module devel}
|
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
|
BuildRequires: fdupes
|
||||||
%if %{with python2}
|
|
||||||
BuildRequires: python-mock
|
|
||||||
%endif
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-curses
|
Requires: python-curses
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -57,22 +55,19 @@ useful for text console application developers including:
|
|||||||
find urwid -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
find urwid -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# this test won't work on OBS
|
|
||||||
rm -f urwid/tests/test_vterm.py
|
|
||||||
cp *build*/*/urwid/*.so urwid
|
|
||||||
%pyunittest discover -v
|
%pyunittest discover -v
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitearch}/urwid/
|
%{python_sitearch}/urwid
|
||||||
%{python_sitearch}/urwid-%{version}-py%{python_version}.egg-info
|
%{python_sitearch}/urwid-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:588bee9c1cb208d0906a9f73c613d2bd32c3ed3702012f51efe318a3f2127eae
|
|
||||||
size 634621
|
|
3
urwid-2.5.1.tar.gz
Normal file
3
urwid-2.5.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:63752e65674f057b357e50b9b73be44c47234507d57df676ce435e537c300bac
|
||||||
|
size 840146
|
Reference in New Issue
Block a user