pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-urwid
Module Name: pkgsrc
Committed By: wiz
Date: Sun Nov 1 22:04:22 UTC 2026
Modified Files:
pkgsrc/devel/py-urwid: Makefile PLIST distinfo
Log Message:
py-urwid: update to 5.0.1.
Urwid 5.0.0
2026-10-28
Breaking Changes ⚠
Drop Python 3.9 and 3.10: urwid requires Python 3.11 or newer by @penguinolog in https://github.com/urwid/urwid/pull/1401
Allow display attributes to inherit colors and settings: canvas content and Text.get_text() carry LayeredAttr for nested attributes, custom screens have to call BaseScreen.resolve_attr() instead
of reading the palette, and an attribute an AttrMap maps to None shows the map’s None attribute by @penguinolog in https://github.com/urwid/urwid/pull/1409
🗹 AttrSpec foreground and background default to 'inherit'; also a new feature, see “Major features” below: Draw OSC 8 hyperlinks from display attributes by @penguinolog in
https://github.com/urwid/urwid/pull/1415
Drop code planned for removal in 5.0: the Columns, Pile, GridFlow, Frame and ListBox get_focus/set_focus methods and 1.1-era list attributes, the Frame header/body/footer getters and setters,
ListBox.contents() called as a method, content_delta, shards_delta, shard_cviews_delta, BaseScreen.run_wrapper, font.add_font, WidgetWrap._set_w, AttrWrap.w and Filler.body; MonitoredDeque.insert()
with an index without __index__ raises TypeError by @penguinolog in https://github.com/urwid/urwid/pull/1402
⚡ Remove the vterm escape compatibility constants and plain-tuple CSI_COMMANDS entries, return WHSettings members from Pile.options() for 'given' and 'weight', and require typing_extensions on
Python older than 3.13; also see “Deprecations” below: Unify deprecation warnings and removal versions by @penguinolog in https://github.com/urwid/urwid/pull/1421
Stop re-exporting unrelated names from urwid.graphics by @penguinolog in https://github.com/urwid/urwid/pull/1163
🗹 ANSIText keeps bold as a setting of its own: ESC[1;31m is 'dark red,bold', no longer 'light red,bold'; also a new feature, see “New features” below: Read the raw display’s attributes back in
ANSIText by @penguinolog in https://github.com/urwid/urwid/pull/1502
🗹 The raw display can detect more colors than before: the colors capability of the terminfo entry raises the count (mintty, vscode and others from 16 to 256); also a new feature, see “New
features” below: Read colour depth from terminfo in the raw display by @penguinolog in https://github.com/urwid/urwid/pull/1464
🗹 Pickles of MonitoredList written at protocol 2 or higher no longer load in older urwid releases; also a new feature, see “New features” below: Make focus lists and list walkers picklable by
@penguinolog in https://github.com/urwid/urwid/pull/1469
🕷 Terminal returns a key with no TERM=linux form (shift up, meta f5, focus in) unhandled instead of typing its name into the child; also bug fixes, see “Bug fixes” below by @luantaraschi in
https://github.com/urwid/urwid/pull/1473 and by @penguinolog in https://github.com/urwid/urwid/pull/1498
Drop GraalPy 3.11 (GraalPy 24): its os module has no O_NOFOLLOW and its ASCII and Latin-1 codecs ignore registered error handlers. GraalPy 3.12 stays experimental, and GraalPy 3.13 is listed as
experimental too by @penguinolog in https://github.com/urwid/urwid/pull/1510
Major features 🗹
⚠ Draw OSC 8 hyperlinks from display attributes (Hyperlink, AttrSpec(hyperlink=...), set_terminal_properties(hyperlinks=True)); see “Breaking Changes” above by @penguinolog in
https://github.com/urwid/urwid/pull/1415
Parse OSC 8 hyperlinks in ANSIText and Terminal by @penguinolog in https://github.com/urwid/urwid/pull/1419
Report extended keys via the kitty and modifyOtherKeys protocols: Screen(extended_keys=True) tells ctrl i from tab and ctrl enter from enter, and adds the super and hyper modifiers by
@penguinolog in https://github.com/urwid/urwid/pull/1504
Alternate screen and kitty keyboard protocol in Terminal by @penguinolog in https://github.com/urwid/urwid/pull/1505
Forward mouse events to the Terminal child by @penguinolog in https://github.com/urwid/urwid/pull/1501
Add DropDown choice widget and anchored pop-up placement by @penguinolog in https://github.com/urwid/urwid/pull/1471
Add urwid.testing: render widgets to text and attribute runs, check their sizing, feed keys and mouse events, and run a MainLoop on ScriptedScreen without a terminal by @penguinolog in
https://github.com/urwid/urwid/pull/1481
Add MainLoop.paused() to run another program, such as $EDITOR, in the terminal by @penguinolog in https://github.com/urwid/urwid/pull/1485
Add tree navigation helpers and keyword-only walker positions by @penguinolog in https://github.com/urwid/urwid/pull/1451
Add opt-in Tab navigation to standard containers: Pile, Columns, Frame, ListBox and GridFlow created with select_navigation=True move the focus on tab, shift tab, ctrl n and ctrl p;
SelectNavigationMixin and SelectNavigationListContentsMixin give other containers the same behaviour by @penguinolog in https://github.com/urwid/urwid/pull/1478
New features 🗹
Add ScrollBar visible option and fix scrollbar mouse handling by @penguinolog in https://github.com/urwid/urwid/pull/1462
Add ScrollBar end markers and attributes by @penguinolog in https://github.com/urwid/urwid/pull/1470
Render ListBox and ScrollBar at a flow size by @penguinolog in https://github.com/urwid/urwid/pull/1488
⚠ Read colour depth from terminfo in the raw display, and add detect_term_colors(); see “Breaking Changes” above by @penguinolog in https://github.com/urwid/urwid/pull/1464 and in
https://github.com/urwid/urwid/pull/1466
⚠ Make focus lists and list walkers picklable; see “Breaking Changes” above by @penguinolog in https://github.com/urwid/urwid/pull/1469
Add set_ascii_fallbacks() for characters the encoding rejects by @penguinolog in https://github.com/urwid/urwid/pull/1479
Add CommandMap.bind() that refuses a key bound twice by @penguinolog in https://github.com/urwid/urwid/pull/1472
Accept plain foreground canvases in CanvasOverlay by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1428
Name DEC private modes and act on DECRQM replies by @penguinolog in https://github.com/urwid/urwid/pull/1500
⚠ Read the raw display’s attributes back in ANSIText; see “Breaking Changes” above by @penguinolog in https://github.com/urwid/urwid/pull/1502
Add PopUpLauncher close_on_menu, pop_up_widget and launcher_size by @penguinolog in https://github.com/urwid/urwid/pull/1513
Add ListBox.scroll_to_top(), scroll_to_bottom() and focus_next_match() by @penguinolog in https://github.com/urwid/urwid/pull/1514
Add Edit.set_edit_text(..., edit_pos=...), the Edit signal "submit" and readline editing commands for Edit by @penguinolog in https://github.com/urwid/urwid/pull/1515
Add follow_end to SimpleFocusListWalker, SimpleFocusDequeWalker, MonitoredFocusList and MonitoredFocusDeque by @penguinolog in https://github.com/urwid/urwid/pull/1516
Add Text(..., selectable=True), SelectableIcon(cursor_position=None) and Button left, right and cursor_position by @penguinolog in https://github.com/urwid/urwid/pull/1517
Add WidgetDisable(..., disabled=False) and a settable WidgetDisable.disabled property by @penguinolog in https://github.com/urwid/urwid/pull/1518
LineBox titles accept text markup: LineBox(w, title=[("key", "F1"), " Help"]) and set_title() by @penguinolog in https://github.com/urwid/urwid/pull/1519
Add ListBox(..., focus_when_empty=False), so an empty list does not take the focus, and an opt-in delegate_selectable that makes ScrollBar and Scrollable report the wrapped widget’s selectable()
by @penguinolog in https://github.com/urwid/urwid/pull/1520
Add the Thin5x4Font BigText font, letters for HalfBlock6x5Font and HalfBlockHeavy6x5Font, and the missing ASCII punctuation for every BigText font that has letters by @penguinolog in
https://github.com/urwid/urwid/pull/1521
Add Edit(..., max_length=None) and a settable Edit.max_length property: a key that would go over it is returned unhandled, and longer text from the constructor, set_edit_text() or insert_text(),
or a limit below the current text, raises ValueError by @penguinolog in https://github.com/urwid/urwid/pull/1524
Add the "focus changed" signal to Pile, Columns and GridFlow, sent with the old and the new focus position after the focus moved, and MonitoredFocusList.set_focus_moved_callback() by @penguinolog
in https://github.com/urwid/urwid/pull/1528
Deprecations ⚡
⚠ Unify deprecation warnings and removal versions: every deprecation names its removal release, and APIs still used by pudb, mitmproxy, khal, zulip-terminal and others are postponed to 7.0; also
removes APIs, see “Breaking Changes” above by @penguinolog in https://github.com/urwid/urwid/pull/1421
Deprecate a positional reverse in positions() of the Simple*ListWalker and Simple*DequeWalker classes (removal in 8.0) by @penguinolog in https://github.com/urwid/urwid/pull/1451
Deprecate the private _MOUSE_*_FLAG constants in favour of MouseBit (removal in 6.0) by @penguinolog in https://github.com/urwid/urwid/pull/1500
Bug fixes 🕷
Text layout and canvas rendering
Do not crash on a zero-width line with clip or ellipsis wrap by @luantaraschi in https://github.com/urwid/urwid/pull/1403
Do not crash on zero-width text before a break in wrap modes by @penguinolog in https://github.com/urwid/urwid/pull/1404
Fix shard_tail gap errors from canvas shards of no rows by @penguinolog in https://github.com/urwid/urwid/pull/1483
Fix the ListBox rows_max cache and overlays of rowless canvases by @penguinolog in https://github.com/urwid/urwid/pull/1486
Keep mixed-width characters in place on the last screen row by @nk-batman21 in https://github.com/urwid/urwid/pull/1506
Keep zero-width runs and raw sequences intact on the last row by @penguinolog in https://github.com/urwid/urwid/pull/1511
Raw and curses displays
Fix terminal input after stop and Linux console palette by @penguinolog in https://github.com/urwid/urwid/pull/1463
Keep mouse tracking across a screen stop and restart by @penguinolog in https://github.com/urwid/urwid/pull/1484
Fix the swapped 80x24 fallback size in raw displays by @penguinolog in https://github.com/urwid/urwid/pull/1491
Use and track the visible Windows console window size by @penguinolog in https://github.com/urwid/urwid/pull/1492
Fix BytesWarning when restoring tty signal keys by @luantaraschi in https://github.com/urwid/urwid/pull/1448
Fix bytes/str leftovers and typing in displays and event loops by @penguinolog in https://github.com/urwid/urwid/pull/1456
Fix curses input waits longer than 25.5 seconds by @hengweiyv in https://github.com/urwid/urwid/pull/1394
Escape sequences and key decoding
Fix escape sequence handling in Terminal, ANSIText and raw display by @penguinolog in https://github.com/urwid/urwid/pull/1497
Strip whole CSI sequences with sub-parameters or intermediate bytes by @nk-batman21 in https://github.com/urwid/urwid/pull/1496
Decode st Insert and Delete key sequences by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1423
Decode modified Insert and the remaining xterm keypad keys by @penguinolog in https://github.com/urwid/urwid/pull/1499
Terminal widget
Fix vterm hangs, crashes and leaks by @penguinolog in https://github.com/urwid/urwid/pull/1406
⚠ Send ESC before the key for meta keys in Terminal; see “Breaking Changes” above by @luantaraschi in https://github.com/urwid/urwid/pull/1473
⚠ Send Terminal keys as TERM=linux defines them; see “Breaking Changes” above by @penguinolog in https://github.com/urwid/urwid/pull/1498
Cancel a pending wrap when the Terminal cursor moves by @ybai08 in https://github.com/urwid/urwid/pull/1474
Do not scroll the Terminal region when wrapping below it by @ybai08 in https://github.com/urwid/urwid/pull/1475
Fix Terminal keypress before the first render by @penguinolog in https://github.com/urwid/urwid/pull/1490
Event loops
Skip closing an already closed asyncio loop in __del__ by @penguinolog in https://github.com/urwid/urwid/pull/1417
Log and survive exceptions raised by alarm callbacks by @charan-rathore in https://github.com/urwid/urwid/pull/1418
Run expired select alarms while input stays readable by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1424
Run expired ZMQ alarms while input stays readable by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1427
Fix event loop callback races and idle handling by @penguinolog in https://github.com/urwid/urwid/pull/1461
Wait for input on a descriptor opened from /dev/tty on macOS, which kqueue refuses with EINVAL, in SelectEventLoop and the raw display by falling back to select() by @penguinolog in
https://github.com/urwid/urwid/pull/1522
Containers, lists and walkers
Use the index protocol in monitored containers by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1441
Preserve deque walker bounds when copying by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1446
Preserve focused object identity when sorting by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1454
Notify after partially extending a list by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1460
Preserve focus for empty forward slices by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1455
Preserve nested focus after undirected ListBox jumps by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1425
Return Tab at the ends of a wrap_around walker in ListBox by @penguinolog in https://github.com/urwid/urwid/pull/1495
Keep the correct parent during offscreen tree navigation by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1431
Fix Columns cursor and positions for hidden columns by @penguinolog in https://github.com/urwid/urwid/pull/1467
Stop base_widget at mock objects by @penguinolog in https://github.com/urwid/urwid/pull/1468
Pickle widgets with protocols 0 and 1 on GraalPy, which built them from typing.Generic and failed by @penguinolog in https://github.com/urwid/urwid/pull/1510
Report a GridFlow mouse event as handled only when a cell handled it or the focus moved, so a parent ListBox scrolls on the wheel over it; a click on empty space now reaches unhandled_input, as
for Pile and Columns by @penguinolog in https://github.com/urwid/urwid/pull/1526
Fix the errors that precise widget typing exposed: Frame and Overlay get_cursor_coords() and get_focus_path() no longer crash on a missing focus part or a top widget without a cursor,
Columns.pack(()) raises ColumnsError, an unknown focus_column raises ValueError, TreeListBox.focus_end() and Filler.move_cursor_to_coords() no longer use the column count as the row count, Overlay
rejects clip and weight widths and flow and weight heights, and Pile and Columns reject a float 'given' amount by @penguinolog in https://github.com/urwid/urwid/pull/1443
Skip a child sized (GIVEN, 0), which is not drawn, when the arrow keys or Tab move the focus in Pile, Columns and GridFlow by @penguinolog in https://github.com/urwid/urwid/pull/1526
ScrollBar
Fix ScrollBar keypress before the first render by @penguinolog in https://github.com/urwid/urwid/pull/1465
Render ScrollBar with no rows at a size of no rows by @penguinolog in https://github.com/urwid/urwid/pull/1482
Edit widget
Move the Edit cursor before "postchange" is sent for an editing key, through set_edit_pos() so that an override still sees every move by @penguinolog in https://github.com/urwid/urwid/pull/1523
Scroll a focused Edit with wrap="ellipsis" to the cursor: the row with the cursor is clipped and the other rows keep their ellipsis by @penguinolog in https://github.com/urwid/urwid/pull/1523
Numeric edit widgets
Accept negative string defaults in IntegerEdit by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1436
Apply FloatEdit separators to default values by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1434
Fix FloatEdit exponent defaults and long-value quantization by @charan-rathore in https://github.com/urwid/urwid/pull/1447
Refuse a second decimal separator in FloatEdit by @nk-batman21 in https://github.com/urwid/urwid/pull/1493
Keep a lone zero in numeric edit widgets by @nk-batman21 in https://github.com/urwid/urwid/pull/1487
Trim leading zeros after the minus sign in NumEdit by @penguinolog in https://github.com/urwid/urwid/pull/1489
Send IntEdit change signals at most once per key: not again for the leading zeros it removes, and not at all when the text stays the same by @penguinolog in
https://github.com/urwid/urwid/pull/1523
Progress bar
Preserve Unicode labels in progress bars by @IlyaKhalafi in https://github.com/urwid/urwid/pull/1432
Fix early completion for very large finite progress values by @charan-rathore in https://github.com/urwid/urwid/pull/1507
BigText fonts
Draw 0, S, I and | of the BigText fonts apart from O, 5 and l, which they matched, and slope the Half Block 5x4 backtick the right way by @penguinolog in https://github.com/urwid/urwid/pull/1521
Other displays and utilities
Send the web display’s “polling child” update as UTF-8 bytes, which socket.sendall() requires, watch the LCD serial port by its fileno(), and stop split_repr from recursing in subclasses by
@penguinolog in https://github.com/urwid/urwid/pull/1410
Documentation 🕮
Complete the parameter, return, exception and warning fields in docstrings by @penguinolog in https://github.com/urwid/urwid/pull/1494
Forward the mouse to the child in the terminal demo by @penguinolog in https://github.com/urwid/urwid/pull/1503
Document receiving Ctrl+S and Ctrl+Q as keys through tty_signal_keys(start="undefined", stop="undefined") by @penguinolog in https://github.com/urwid/urwid/pull/1293
Refactoring 🛠
Cover all refurb warnings by @penguinolog in https://github.com/urwid/urwid/pull/1185
To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 pkgsrc/devel/py-urwid/Makefile
cvs rdiff -u -r1.25 -r1.26 pkgsrc/devel/py-urwid/PLIST
cvs rdiff -u -r1.66 -r1.67 pkgsrc/devel/py-urwid/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-urwid/Makefile
diff -u pkgsrc/devel/py-urwid/Makefile:1.78 pkgsrc/devel/py-urwid/Makefile:1.79
--- pkgsrc/devel/py-urwid/Makefile:1.78 Wed Oct 7 05:29:07 2026
+++ pkgsrc/devel/py-urwid/Makefile Sun Nov 1 22:04:22 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.78 2026/10/07 05:29:07 adam Exp $
+# $NetBSD: Makefile,v 1.79 2026/11/01 22:04:22 wiz Exp $
-DISTNAME= urwid-4.2.5
+DISTNAME= urwid-5.0.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=u/urwid/}
@@ -25,8 +25,8 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-zmq>=0:../
USE_LANGUAGES= # none
-# as of 4.2.4
-# 131 passed, 5 warnings
+# as of 5.0.1
+# 165 passed, 1 skipped, 6 warnings
.include "../../lang/python/batteries-included.mk"
.include "../../lang/python/wheel.mk"
Index: pkgsrc/devel/py-urwid/PLIST
diff -u pkgsrc/devel/py-urwid/PLIST:1.25 pkgsrc/devel/py-urwid/PLIST:1.26
--- pkgsrc/devel/py-urwid/PLIST:1.25 Mon Sep 7 05:41:55 2026
+++ pkgsrc/devel/py-urwid/PLIST Sun Nov 1 22:04:22 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.25 2026/09/07 05:41:55 adam Exp $
+@comment $NetBSD: PLIST,v 1.26 2026/11/01 22:04:22 wiz Exp $
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -7,6 +7,12 @@ ${PYSITELIB}/${WHEEL_INFODIR}/top_level.
${PYSITELIB}/urwid/__init__.py
${PYSITELIB}/urwid/__init__.pyc
${PYSITELIB}/urwid/__init__.pyo
+${PYSITELIB}/urwid/_deprecation.py
+${PYSITELIB}/urwid/_deprecation.pyc
+${PYSITELIB}/urwid/_deprecation.pyo
+${PYSITELIB}/urwid/_selectors.py
+${PYSITELIB}/urwid/_selectors.pyc
+${PYSITELIB}/urwid/_selectors.pyo
${PYSITELIB}/urwid/ansi_parser.py
${PYSITELIB}/urwid/ansi_parser.pyc
${PYSITELIB}/urwid/ansi_parser.pyo
@@ -103,6 +109,9 @@ ${PYSITELIB}/urwid/split_repr.pyo
${PYSITELIB}/urwid/str_util.py
${PYSITELIB}/urwid/str_util.pyc
${PYSITELIB}/urwid/str_util.pyo
+${PYSITELIB}/urwid/testing.py
+${PYSITELIB}/urwid/testing.pyc
+${PYSITELIB}/urwid/testing.pyo
${PYSITELIB}/urwid/text_layout.py
${PYSITELIB}/urwid/text_layout.pyc
${PYSITELIB}/urwid/text_layout.pyo
@@ -151,6 +160,9 @@ ${PYSITELIB}/urwid/widget/deque_walker.p
${PYSITELIB}/urwid/widget/divider.py
${PYSITELIB}/urwid/widget/divider.pyc
${PYSITELIB}/urwid/widget/divider.pyo
+${PYSITELIB}/urwid/widget/drop_down.py
+${PYSITELIB}/urwid/widget/drop_down.pyc
+${PYSITELIB}/urwid/widget/drop_down.pyo
${PYSITELIB}/urwid/widget/edit.py
${PYSITELIB}/urwid/widget/edit.pyc
${PYSITELIB}/urwid/widget/edit.pyo
Index: pkgsrc/devel/py-urwid/distinfo
diff -u pkgsrc/devel/py-urwid/distinfo:1.66 pkgsrc/devel/py-urwid/distinfo:1.67
--- pkgsrc/devel/py-urwid/distinfo:1.66 Wed Oct 7 05:29:07 2026
+++ pkgsrc/devel/py-urwid/distinfo Sun Nov 1 22:04:22 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.66 2026/10/07 05:29:07 adam Exp $
+$NetBSD: distinfo,v 1.67 2026/11/01 22:04:22 wiz Exp $
-BLAKE2s (urwid-4.2.5.tar.gz) = b2b9797896fe28e6cc62adbd6cd7df56289e8a0e1de35bfa714a975c807adcb1
-SHA512 (urwid-4.2.5.tar.gz) = 4f2e02cc23cd1974c0a86bbfe3c4b8cd9920b165af17dca8dd0997a7b8ae8da844ed2e4b0adf3fda38ff6d81d465c5a3db3efaf036454cbbd0116c4ae9107283
-Size (urwid-4.2.5.tar.gz) = 358848 bytes
+BLAKE2s (urwid-5.0.1.tar.gz) = 7a9bf41798639cc7d28657fad0b358aa7c594bca9bc472b3260e85194d5dd2a3
+SHA512 (urwid-5.0.1.tar.gz) = facd6b7d434c18ee4d1c3892b31c7fdf6ece24286190a084cbe81aafd7d7da761700b979ed0e4e1d791751122cb625312a7f13fcd068eb8b5284c602a22e796f
+Size (urwid-5.0.1.tar.gz) = 442871 bytes
Home |
Main Index |
Thread Index |
Old Index