Vladimir-csp / uwsm

Universal Wayland Session Manager
MIT License
149 stars 6 forks source link

Bump Python version requirement #20

Closed notpeelz closed 5 months ago

notpeelz commented 5 months ago

The code currently uses features that aren't compatible with older python versions. Here's a non-exhaustive list of things pylance reports:

This version bump means officially dropping support for older debian/ubuntu LTS releases. Ubuntu 22.04 (jammy jellyfish) ships Python 3.10: https://discourse.ubuntu.com/t/jammy-jellyfish-release-notes/24668 Debian 12 (bookworm) ships Python 3.11: https://packages.debian.org/bookworm/python3

Vladimir-csp commented 5 months ago

I have nothing against it in general, but stdStream isn't used anymore, as no function defines streams as parameters. Is typing union the only thing that requires 3.10?

notpeelz commented 5 months ago

There's also traceback.print_exception(exception). With Python <=3.9, the signature is traceback.print_exception(etype, value, tb): https://docs.python.org/3.10/library/traceback.html#traceback.print_exception

notpeelz commented 5 months ago

I'll remove the revert commit and let you clean up the dead code.

Vladimir-csp commented 5 months ago

On second thought I do not want to mess with traceback.print_exception() )