Skip to content

Allow urwid 5 - #1865

Merged
pazz merged 1 commit into
mainfrom
allow-urwid-5
Nov 22, 2026
Merged

pazz merged 1 commit into
mainfrom
allow-urwid-5

Conversation

@pazz

@pazz pazz commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

urwid was kept below 5 (#1851, #1855) because urwidtrees 1.0 called ListBox.get_focus, which urwid 5 removed. Since #1838, alot requires urwidtrees 1.1.1, which no longer does, so the cap can go. alot's own uses of the removed accessors were already replaced in #1810.

Refs #1863: Homebrew ships urwid 5, so 0.12 crashes there. This and #1810 make the next release work with it.

Testing

  • Full suite on Python 3.14 with urwidtrees 1.1.1: 490 passed, 9 xfailed, with urwid 5.0.0 and with 5.1.3; no urwid deprecation warnings.
  • With urwid 5 and urwidtrees 1.0.4, 5 tests fail, so this needs Require urwidtrees 1.1.1 and drop the workaround for empty message parts #1838.
  • A real session under tmux with urwid 5.1.3 (search, thread with fold/unfold/tag, bufferlist, taglist, namedqueries, compose) logged no errors.
  • In CI, Python 3.12 to 3.14 now resolve to urwid 5; 3.10 stays on 4.x (urwid 5 needs 3.11), and the oldest-dependency job still pins urwid 2.2.0.

NEWS: deps: support urwid 5 (requires urwidtrees >= 1.1.1)

Review findings and resolution

review-correctness

  • Nothing to change.
  • The PR should say "Refs alot crashes on macos Golden Gate #1863" rather than "Fixes", and carry a NEWS line: done.
  • urwid 2.2.0 crashes on Python 3.14 (SystemError in raw_display.get_cols_rows), independent of this change; CI tests 2.2.0 only on 3.10: left for a separate PR raising the minimum.
  • The [",] pattern in the oldest-dependency sed is no longer needed: left, harmless and useful for any future cap.

review-design

  • Nothing to change.
  • move first/move last in an empty search raises IndexError, also on urwid 4: left for a separate PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TR9KjabaVCyHnpqp2kQZHC

urwid was kept below 5 (#1851, #1855) because urwidtrees 1.0 called
ListBox.get_focus, which urwid 5 removed. alot now requires urwidtrees
1.1.1, which no longer does, and the test suite passes with urwid 5.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TR9KjabaVCyHnpqp2kQZHC
@pazz
pazz merged commit d56a617 into main Nov 22, 2026
12 checks passed
@pazz
pazz deleted the allow-urwid-5 branch November 22, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant