pick-ui: update for python 3.14 support

```
Traceback (most recent call last):
  File "bin/pick-ui.py", line 31, in <module>
    loop = urwid.MainLoop(u.render(), PALETTE, event_loop=evl, handle_mouse=False)
                          ~~~~~~~~^^
  File "bin/pick/ui.py", line 196, in render
    asyncio.ensure_future(self.update())
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/asyncio/tasks.py", line 730, in ensure_future
    loop = events.get_event_loop()
  File "/usr/lib64/python3.14/asyncio/events.py", line 715, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
                       % threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.
```

Of the 3 dependencies, only urwid actually needs to be updated, but
while at it let's pick the latest of each.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39452>
This commit is contained in:
Eric Engestrom 2026-01-22 11:37:19 +01:00 committed by Marge Bot
parent 21661f66fc
commit 21829c9f7e
2 changed files with 6 additions and 4 deletions

View file

@ -27,7 +27,9 @@ from pick.ui import UI, PALETTE
if __name__ == "__main__":
u = UI()
evl = urwid.AsyncioEventLoop(loop=asyncio.new_event_loop())
asyncio_loop = asyncio.new_event_loop()
asyncio.set_event_loop(asyncio_loop)
evl = urwid.AsyncioEventLoop(loop=asyncio_loop)
loop = urwid.MainLoop(u.render(), PALETTE, event_loop=evl, handle_mouse=False)
u.mainloop = loop
loop.run()

View file

@ -1,3 +1,3 @@
attrs==23.1.0
packaging==25.0
urwid==2.1.2
attrs==25.4.0
packaging==26.0
urwid==3.0.3