commit ac95692bfaedaa367e2a2fa6dfac1f22f9360bfdb30be59864cc7084e088b987 Author: Dirk Mueller Date: Mon Nov 10 08:37:54 2025 +0000 - update to 3.0.3: * Python 3.14: fix buffer overflow on terminal size request * Add guard against empty list on focus complete. * Add extra code type annotations * Bugfix: Corner case: Scrollbar render for only 1 row height * Packaging: drop setup.py and adjust requirements * Python 3.14 compatibility: adjust AsyncioEventLoop * Drop deprecated __super property * Drop deprecated FlowWidget, BoxWidget and FixedWidget widgets * Remove deprecated protected getter methods from the Canvas and AttrSpec * Remove support for the bytes based fonts * Remove deprecated TermScroller * Remove deprecated protected getter methods from the decoration widgets * Remove deprecated protected getter methods from the container widgets * Remove deprecated protected setters in the decoration widgets * Remove deprecated protected methods from the container widgets * Remove deprecated protected method _set_done from the ProgressBar * API Extension: make CommandMap MutableMapping * Make sizing computation much faster for nested containers * MetaSignals subclass ABCMeta * MetaSuper should be the last base for classes * Announce deprecated API removal versions * Fix handling of WEIGHT selectable items in the Pile * Refactoring: micro optimizations of iterable items OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urwid?expand=0&rev=67 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-urwid.changes b/python-urwid.changes new file mode 100644 index 0000000..7cb762d --- /dev/null +++ b/python-urwid.changes @@ -0,0 +1,572 @@ +------------------------------------------------------------------- +Mon Nov 10 08:36:26 UTC 2025 - Dirk Müller + +- update to 3.0.3: + * Python 3.14: fix buffer overflow on terminal size request + * Add guard against empty list on focus complete. + * Add extra code type annotations + * Bugfix: Corner case: Scrollbar render for only 1 row height + * Packaging: drop setup.py and adjust requirements + * Python 3.14 compatibility: adjust AsyncioEventLoop + * Drop deprecated __super property + * Drop deprecated FlowWidget, BoxWidget and FixedWidget widgets + * Remove deprecated protected getter methods from the Canvas + and AttrSpec + * Remove support for the bytes based fonts + * Remove deprecated TermScroller + * Remove deprecated protected getter methods from the + decoration widgets + * Remove deprecated protected getter methods from the container + widgets + * Remove deprecated protected setters in the decoration widgets + * Remove deprecated protected methods from the container + widgets + * Remove deprecated protected method _set_done from the + ProgressBar + * API Extension: make CommandMap MutableMapping + * Make sizing computation much faster for nested containers + * MetaSignals subclass ABCMeta + * MetaSuper should be the last base for classes + * Announce deprecated API removal versions + * Fix handling of WEIGHT selectable items in the Pile + * Refactoring: micro optimizations of iterable items + +------------------------------------------------------------------- +Wed Oct 30 19:56:38 UTC 2024 - Dirk Müller + +- update to 2.6.16: + * Feature: Add focus reporting support + * Add 16-color support + * Disable mouse tracking and discard input when exiting the + main loop + * Type annotations: fix typing issues + +------------------------------------------------------------------- +Mon Sep 23 08:53:29 UTC 2024 - Dirk Müller + +- update to 2.6.15: + * Fix `ListBox.rows_max` calculation for empty container + +------------------------------------------------------------------- +Sat Jun 29 05:30:22 UTC 2024 - Dirk Müller + +- update to 2.6.14: + * GridFlow fixes for empty container + * Fix ScrollBar mouse_event handling with ListBox + +------------------------------------------------------------------- +Mon Jun 10 09:53:51 UTC 2024 - Dirk Müller + +- update to 2.6.13: + * Adopt `ExceptionGroup` handling without an external library + in python 3.11+ +- update to 2.6.12: + * Prevent a possible infinite loop in + WidgetDecoration.base_widget + * ScrollBar will check wrapped widgets for SupportsScroll +- update to 2.6.11: + * Fix `Widget.rows` annotation + * Do not use deprecated positioning in the code and examples + * Docs: partial update of screenshots + +------------------------------------------------------------------- +Sat Apr 6 17:38:32 UTC 2024 - Dirk Müller + +- update to 2.6.10: + * `ScrollBar`: fully support `__length_hint__` if not `Sized` +- update to 2.6.9: + * Support relative scroll for `ListBox` + * Absolute scrolling calculation is resource-hungry and can + cause serious issues on the long lists. + * This change also rework calculation allowing to use + `ScrollBar` with `TreeList` (users should prevent infinite + load cycle on lazy-load self). + * Support `` key reading for sgrmouse + * Historically key reading was not implemented due to `` for + buttons 1-3 is handled by the most GUI terminal emulators + itself. + * Fix regression in `TreeWidget`: original widget can be + overridden +- update to 2.6.8: + * Fix regression: Overlay not accepted relative positioning +- update to 2.6.7: + * Fix `MainLoop.watch_pipe` regression for the callback outcome + not `False` +- update to 2.6.6: + * Fix Columns sizing and pack behavior +- update to 2.6.5: + * Allow `wcwidth` to select unicode version + * `TreeWidget`: do not use deprecated API in + `update_expanded_icon` +- update to 2.6.4: + * Fix regression from 2.6.1: `ListBox` used for tree + implementation. +- update to 2.6.3: + * Fix regression from 2.6.2: weight can be `float` +- update to 2.6.2: + * Feature: support `Widget` instance as `Frame` focus part in + constructor + * Feature: `EventLoop.run_in_executor` should accept `**kwargs` + * Feature: extend validation for `Columns` and `Pile` + * Fix: nonstandard display typing issues + * Fix: Text pack for `layout` without `pack` + * Fix: `ListBox` render crash if empty elements in tail +- update to 2.6.1: + * Fix a scenario with ellipsis wrap not fit in screen columns +- update to 2.6.0: + * ### Compiled C extension is not used anymore. + * It became a blocker for the future correct Unicode support + and caused pain for some of end users building package + separately. + * Fix regression in the `LineBox._w`: should be a property + * Fix ellipsis encoding in the text layout + * Fix ListBox `MAX_LEFT`/`MAX_RIGHT` report for `keypress` as + unhandled + +------------------------------------------------------------------- +Tue Feb 27 15:20:40 UTC 2024 - Markéta Machová + +- Add missing runtime requirement typing_extensions + +------------------------------------------------------------------- +Mon Feb 12 17:04:58 UTC 2024 - Matej Cepl + +- Update to 2.5.3: + - Fix render regression: khal Padding widh > size + - Update unicode table to the version 15.1.0 +- Update to 2.5.2: + - Fix Windows last line: use ICH * INSERT COLS + - Typing: annotate text_layout and extend Text/Edit + - Fix incorrect TextCanvas typing + - RAW UTF-8 terminal: SI/SO/IBMPC_ON/IBMPC_OFF skip + - Unicode: use "target encoding" while transcoding for output + +------------------------------------------------------------------- +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 + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Mon Feb 20 08:41:44 UTC 2023 - Daniel Garcia + +- Add python-311.patch to fix tests for python 3.11 + gh#urwid/urwid#517 + +------------------------------------------------------------------- +Mon Nov 8 12:13:49 UTC 2021 - Dirk Müller + +- add dependency for python 2 builds + +------------------------------------------------------------------- +Tue Oct 12 10:28:44 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + +------------------------------------------------------------------- +Sat Dec 19 10:04:34 UTC 2020 - Dirk Müller + +- update to 2.1.2: + * Add pack method to LineBox. Fixes: #346 (by Miguel de Dios) + * Add a test to check the linebox.pack is good. (by Miguel de Dios) + * Add bin/release.sh script to partially automate releases. (by Tony Cebzanov) + * Add workaround for #386 (by Tony Cebzanov) + * Fix curses_display python3 ord() (by Ya-Liang Chang (Allen)) + * Fix bumping to dev version in release.sh script (by Tony Cebzanov) + * Fix focus_end on a collapsed tree (by Anonymous Maarten) + * Fix crash with "ellipsis" clipping for py2 tour.py works with py2 now Typo in + tour.py (by akorb) + * Ignore resetting to invalid locale (Closes: #377) (by Jochen Sprickerhof) + * Use ord2 for python2/3 compatibility (by Ya-Liang Chang (Allen)) + +------------------------------------------------------------------- +Wed Sep 16 21:28:40 UTC 2020 - Dirk Mueller + +- udpate to 2.1.1: + * Add TrioEventLoop.run_async(), removed nursery constructor arg (#392) (by + Tamás Nepusz) + * Add wrap_around kwarg to SimpleListWalkers (by Krzysztof Królczyk) + * Change documentation on Terminal (by James Johnson) + * Remove debug documentation change test (by James Johnson) + * Remove support for py34 (by Andrey Semakin) + * Remove invalid escape sequence (by Andrey Lebedev) + * Fix GridFlow keypress handling when v_sep is 0 (by Aurelien Grenotton) + * Fix Terminal in ListBox (#382) (by James Johnson) + * Fix Crash on `fg`, SIGCONT (after Ctrl-Z, SIGSTOP, SIGTSTP) (by goncalopp) + * Fix 256-color mode on some terminals. Addresses #404. (by Tony Cebzanov) + * vterm: reduce __init__ boilerplate (by max ulidtko) + * vterm: errno 5 is not EOF. (by max ulidtko) + * Terminal: use UTF-8 by default. (by max ulidtko) + * Instance of Terminal has no __super attr -- thanks pylint! (by max ulidtko) + * Do not call wait_readable with a closed fd in TrioEventLoop (by Michael + Hudson-Doyle) + * Make options a static method where applicable (by Philip Matura) + +------------------------------------------------------------------- +Fri Feb 7 15:15:02 UTC 2020 - Marketa Calabkova + +- update to 2.1.0 + * Add support for Python 3.7 and 3.8, drop support for Python 3.3 + * Add 24-bit (true color) support. + * Fix crash on click-Esc & Esc-click + * Break rather than raising exception on shard calculation bug. + * Fix EOF detection for the Terminal widget on Python 3 + * Many more features and fixes + +------------------------------------------------------------------- +Mon Oct 14 14:49:05 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Sun Feb 25 16:52:59 UTC 2018 - aloisio@gmx.com + +- Update to version 2.0.1 + * #275: Late fix for proper exception reraising from within + main loop (by Andrew Dunai & Adam Sampson) + version 2.0.0 + * Full Python 2.x/3.x support (by Andrew Dunai) + * Proper handling & customization of OS signals by GLib event + loop (by Federico T) + * vterm: Fix handling of NUL characters (by aszlig) + * Add 256-color support for fbterm (by Benjamin Yates) + * Italics support (by Ian D. Scott) + * Store envron's TERM value as a Screen attribute (by Benjamin + Yates) + * Replaced hashbangs to use proper Python binary (by Douglas La + Rocca) + * Post-change signal for Edit, CheckBox and RadioButton widgets + (by Toshio Kuratomi) + * ListBox.body update (by Random User) + * SimpleListWalker is now default when setting ListBox.body (by + Random User) + * #246, #234: SelectEventLoop alarm improvements (by Dave Jones) + * #211: Title align & borderless sides for LineBox (by Toshio + Kuratomi) + * Support for 'home' and 'end' keys in ListBox (by Random User) + * Various code cleanups (by Jordan Speicher, Marin Atanasov + Nikolov) + * CI fixes (by Marlox, Ian Ward, Anatoly Techtonik, Tony + Cebzanov & Ondřej Súkup) + * Example fixes (by Kenneth Nielsen) + * Documentation fixes (by anatoly techtonik, Marcin Kurczewski, + mobyte0, Christian Geier & xndcn) + * Code cleanup & typo fixes (by Jakub Wilk & Boris Feld) + * Integration of tox for easier Python cross-version testing (by + Andrew Dunai) + * Test fixes (by Michael Hudson-Doyle, Mike Gilbert & Andrew + Dunai) + * Correct error messages in Decoration (by Marcin Kurczewski) + * #141: Fix for StandardTextLayout.calculate_text_segments + (by Grzegorz Aksamit) + * #221: Fix for raw display should release file descriptors (by + Alain Leufroy) + * #261: Fix issues with unicode characters in ProgressBar (by + Andrew Dunai) + * Fix for 'page up' and 'page down' in ListBox when having + focusable children (by Random User) + * Fixes for examples compatibility with Python 3 (by Lars + Kellogg-Stedman) + * Fix default screen size on raw display (by Andreas Klöckner) + * Fix underlining for padded text (by Random User) + * Fix for terminal widget crash with Python 3 (by Sjc1000) + * Fix for string formatting error (by Jakub Wilk) + * Fix for iterator in WidgetContainerListContentsMixin (by + Marlox) + * Fix for missing `modified` signal in SimpleFocusListWalker + (by Michael Hansen) + * Dropped Python 3.2 support + * Test coverage is now collected + +- Dropped python-urwid-fix_py3_test.patch (merged upstream) + +------------------------------------------------------------------- +Tue May 23 07:37:03 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Updated source and homepage URLs +- Added python-urwid-fix_py3_test.patch to address a failing + test with python 3.6. + +------------------------------------------------------------------- +Tue Mar 8 20:13:34 UTC 2016 - freitag@opensuse.org + +- update to version 1.3.1: + * Fix for screen not getting reset on exception regression + (by Rian Hunter) + * AttrSpec objects are now comparable (by Random User) + * MonitoredList now has a clear method if list has a clear method + (by neumond) + * Fix for BarGraph hlines sort order (by Heiko Noordhof) + * Fix for final output not appearing on exit with some terminals + now that extra newline was removed (by Jared Winborne) + * Fix for a resizing bug in raw_display (by Esteban null) + +------------------------------------------------------------------- +Thu May 14 13:09:33 UTC 2015 - benoit.monin@gmx.fr + +- update to version 1.3.0: + * New AsyncioEventLoop for Python 3.4, Python 3.x with asyncio + package or Python 2 with trollius package (by Alex Munroe, + Jonas Wielicki, with earlier work by Kelketek Rritaa) + * Screen classes now call back to MainLoop using event loop + alarms instead of passing timeout values to MainLoop (by Alex + Munroe) + * Add support for bright backgrounds on linux console (by Russell + Warren) + * Allow custom sorting of MonitoredList (by Tony Cebzanov) + * Fix support for negative indexes with MonitoredFocusList (by + Heiko Noordhof) + * Documentation fixes (by Ismail, Matthew Mosesohn) +- additional change from version 1.2.2: + * Fix for a serious raw_display performance regression (by Anton + Khirnov) + * Fix for high color palette detection (by extempo) + * Small changes to enable windows support (by Jeanpierre Devin) +- remove %py_requires macro +- call python directly, not via %__python macro +- remove unwanted shebang during %prep, not after build + to avoid mtime mismatch +- run the tests during build + +------------------------------------------------------------------- +Mon Jul 14 15:56:15 UTC 2014 - toddrme2178@gmail.com + +- Switched source url to PyPi + +------------------------------------------------------------------- +Mon Jul 14 12:03:32 UTC 2014 - toddrme2178@gmail.com + +- Update to 1.2.1 + * Fix false failures of event loop tests + * Remove extra newline generated on exit of raw_display + * Documentation fixes (by Paul Ivanov) +- Update to 1.2.0 + * Add support for PyPy, drop support for Python 2.4, 2.5 + * Signals now support using weakly referenced arguments to help + avoid leaking objects when a signal consumer is no longer + referenced (by Matthijs Kooijman) + * Add TornadoEventLoop class (by Alexander Glyzov) + * Update GlibEventLoop to use python-gi for Python3 compatibility + (by Israel Garcia) + * Automate testing with Python 2.6, 2.7, 3.2, 3.3 and PyPy using + travis-ci + * New container method get_focus_widgets() (by Matthijs Kooijman) + * Add support for double and triple click mouse events + (by Igor Kotrasiński) + * Allow disabling and re-enabling of mouse tracking + (by Jim Garrison) + * Create section in docs for example program screenshots generated + as images like the tutorial examples + * Add suggested basic color combination images to manual + * Fall back to 80x24 if screen size detection fails + * Fix screen.stop(), screen.start() disabling mouse events + * Fix to make GridFlow v_sep argument behave as documented + * Fix for registering high palette entries in the form "hX" where + X > 15 so that basic colors are applied in 88-color mode + * Fix for raw_display clear-right escape not working with + standout attribute on some terminals + * Fix for Terminal widget select loop: retry when interrupted +- Update to 1.1.2 + * Move to urwid.org and use sphinx docs for generating whole site, + move changelog to docs/changelog.rst + * Fix encoding exceptions when unicode used on non-UTF-8 terminal + * Fix for suspend and resume applications with ^Z + * Fix for tmux and screen missing colors on right bug + * Fix Pile zero-weighted items and mouse_event when empty + * Fix Terminal select() not retrying when interrupted by signal + * Fix for Padding.align and width change not invalidating + +------------------------------------------------------------------- +Mon Jan 14 16:42:26 UTC 2013 - p.drouand@gmail.com + +- Update to 1.1.1 version: + * Fix for Pile not changing focus on mouse events + * Fix for Overlay.get_cursor_coords() +- Fix the non-executable-files rpm waraning and remove the rpmlint file + +------------------------------------------------------------------- +Wed Jan 2 19:44:41 UTC 2013 - toddrme2178@gmail.com + +- Fix building on SLES + +------------------------------------------------------------------- +Thu Nov 15 17:54:54 UTC 2012 - p.drouand@gmail.com + +- Update to 1.1.0 release: + * New common container API: focus, focus_position, contents, + options(), get_focus_path(), set_focus_path(), __getitem__, + __iter__(), __reversed__() implemented across all included + container widgets + A full description doesn't fit here, see the Container Widgets + section in the manual for details + * New Sphinx-based documentation now included in source: + Tutorial rewritten, manual revised and new reference based + on updated docstrings (by Marco Giusti, Patrick Totzke) + * New list walker SimpleFocusListWalker like SimpleListWalker but + updates focus position as items are inserted or removed + * New decoration widget WidgetDisable to disable interaction + with the widgets it wraps + * SelectableIcon selectable text widget used by button widgets is + now documented (available since 0.9.9) + * Columns widget now tries to keep column in focus visible, hiding + columns on the left when necessary + * Padding widget now defaults to ('relative', 100) instead of + 'pack' so that left and right parameters are more useful and more + child widgets are supported + * New list walker "API Version 2" that is simpler for many list + walker uses; "API Version 1" will still continue to be supported + * List walkers may now allow iteration from the absolute top or + bottom of the list if they provide a positions() method + * raw_display now erases to the end of the line with EL escape + sequence to improve copy+paste behavior for some terminals + * Filler now has top and bottom parameters like Padding's left and + right parameters and accepts 'pack' instead of None as a height + value for widgets that calculate their own number of rows + * Pile and Columns now accepts 'pack' instead of 'flow' for widgets + that calculate their own number of rows or columns + * Pile and Columns now accept 'given' instead of 'fixed' for + cases where the number of rows or columns are specified by the + container options + * Pile and Columns widgets now accept any iterable to their + __init__() methods + * Widget now has a default focus_position property that raises + an IndexError when read to be consistent with new common container + API + * GridFlow now supports multiple cell widths within the same widget + * BoxWidget, FlowWidget and FixedWidget are deprecated, instead + use the sizing() function or _sizing attribute to specify the + supported sizing modes for your custom widgets + * Some new shift+arrow and numpad input sequences from RXVT and + xterm are now recognized + * Fix for alarms when used with a screen event loop (e.g. + curses_display) + * Fix for raw_display when terminal width is 1 column + * Fixes for a Columns.get_cursor_coords() regression and a + SelectableIcon.get_cursor_coords() bug + * Fixes for incorrect handling of box columns in a number of + Columns methods when that column is selectable + * Fix for Terminal widget input handling with Python 3 + +------------------------------------------------------------------- +Sun Jul 29 15:04:44 UTC 2012 - cfarrell@suse.com + +- license update: LGPL-2.1+ + LGPL without version is not acceptable + +------------------------------------------------------------------- +Fri Jul 20 23:32:04 UTC 2012 - p.drouand@gmail.com + +- Bump to 1.0.2 release: + * Fix for bug when entering Unicode text into Edit widget with + bytes caption + * Fix a regression when not running in UTF-8 mode + * Fix for a MainLoop.remove_watch_pipe() bug + * Fix for a bug when packing empty Edit widgets + * Fix for a ListBox "contents too long" error with very large + Edit widgets + * Prevent ListBoxes from selecting 0-height selectable widgets + when moving up or down + * Fix a number of bugs caused by 0-height widgets in a ListBox + +------------------------------------------------------------------- +Sat Jun 9 03:18:07 UTC 2012 - highwaystar.ru@gmail.com + +- python3 package added +- spec file improved + +------------------------------------------------------------------- +Thu Dec 08 22:31:27 UTC 2011 - pascal.bleser@opensuse.org + +- update to 1.0.1: + * fix for a Filler mouse_event() position bug + * fix support for mouse positions up to x=255, y=255 + * fixes for a number of string encoding issues under Python 3 + * fix for a LineBox border __init__() parameters + * fix input input of UTF-8 in tour.py example by converting captions to + unicode + * prevent raw_display from calling tcseattr() or tcgetattr() on non-ttys + * disable curses_display external event loop support: screen resizing and gpm + events are not properly supported + * mark PollingListWalker as deprecated + +- changed arch to _not_ be noarch, contains a shlib file + +------------------------------------------------------------------- +Fri Sep 23 10:14:21 UTC 2011 - saschpe@suse.de + +- Update to version 1.0.0: + * New support for Python 3.2 from the same 2.x code base, + requires distribute instead of setuptools (by Kirk McDonald, + Wendell, Marien Zwart) everything except TwistedEventLoop and + GLibEventLoop is supported + * New experimental Terminal widget with xterm emulation and + terminal.py example program (by aszlig) + * Edit widget now supports a mask (for passwords), has a + insert_text_result() method for full-field validation and + normalizes input text to Unicode or bytes based on the caption + type used + * New TreeWidget, TreeNode, ParentNode, TreeWalker + and TreeListBox classes for lazy expanding/collapsing tree + views factored out of browse.py example program, with new + treesample.py example program (by Rob Lanphier) + * MainLoop now calls draw_screen() just before going idle, so extra + calls to draw_screen() in user code may now be removed + * New MainLoop.watch_pipe() method for subprocess or threaded + communication with the process/thread updating the UI, and new + subproc.py example demonstrating its use + * New PopUpLauncher and PopUpTarget widgets and MainLoop option + for creating pop-ups and drop-downs, and new pop_up.py example + program + * New twisted_serve_ssh.py example (by Ali Afshar) that serves + multiple displays over ssh from the same application using + Twisted and the TwistedEventLoop + +------------------------------------------------------------------- +Tue Jan 26 12:24:31 UTC 2010 - pascal.bleser@opensuse.org + +- upgrade to 0.9.9.1 + +------------------------------------------------------------------- +Wed Jun 10 00:29:36 CEST 2009 - dmueller@suse.de + +- update to 0.9.8.4 + diff --git a/python-urwid.spec b/python-urwid.spec new file mode 100644 index 0000000..a437724 --- /dev/null +++ b/python-urwid.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-urwid +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-urwid +Version: 3.0.3 +Release: 0 +Summary: A full-featured console (xterm et al.) user interface library +License: LGPL-2.1-or-later +URL: https://github.com/urwid/urwid +Source: https://files.pythonhosted.org/packages/source/u/urwid/urwid-%{version}.tar.gz +BuildRequires: %{python_module curses} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module typing_extensions} +BuildRequires: %{python_module wcwidth} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +Requires: python-curses +Requires: python-typing_extensions +Requires: python-wcwidth +%python_subpackages + +%description +Urwid is a console user interface library. It includes many features +useful for text console application developers including: +- Applications resize quickly and smoothly +- Automatic, programmable text alignment and wrapping +- Simple markup for setting text attributes within blocks of text +- Powerful list box with programmable content for scrolling all widget types +- Your choice of event loops: Twisted, Glib or built-in select-based loop +- Pre-built widgets include edit boxes, buttons, check boxes and radio buttons +- Display modules include raw, curses, and experimental LCD and web displays +- Support for UTF-8, simple 8-bit and CJK encodings +- 256 and 88 color mode support +- Python 3.2 support + +%prep +%autosetup -p1 -n "urwid-%{version}" +# remove unwanted shebang +find urwid -name "*.py" | xargs sed -i '1 { /^#!/ d }' + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest discover -v + +%files %{python_files} +%license COPYING +%doc README.rst +%{python_sitelib}/urwid +%{python_sitelib}/urwid-%{version}.dist-info + +%changelog diff --git a/urwid-2.6.16.tar.gz b/urwid-2.6.16.tar.gz new file mode 100644 index 0000000..ea81a8d --- /dev/null +++ b/urwid-2.6.16.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93ad239939e44c385e64aa00027878b9e5c486d59e855ec8ab5b1e1adcdb32a2 +size 848179 diff --git a/urwid-3.0.3.tar.gz b/urwid-3.0.3.tar.gz new file mode 100644 index 0000000..fd05cf6 --- /dev/null +++ b/urwid-3.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:300804dd568cda5aa1c5b204227bd0cfe7a62cef2d00987c5eb2e4e64294ed9b +size 855817