Public bug reported: Ubuntu release: Ubuntu Jammy Jellyfish (development branch)
Package version: python3-flake8 4.0.1-2 Problem description: Ubuntu Jammy has transitioned to Python 3.10. With that comes the deprecation of some importlib_metadata functions. In particular, the 'dict' interface to importlib_metadata.entry_points() is now deprecated, and 'select' should be used instead. However, flake8 4.0.1 is still using the older 'dict' interface. This can be seen by running the following: ``` $ PYTHONWARNINGS=always flake8 --version /usr/lib/python3/dist-packages/flake8/plugins/manager.py:261: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select. eps = importlib_metadata.entry_points().get(self.namespace, ()) /usr/lib/python3/dist-packages/flake8/plugins/manager.py:261: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select. eps = importlib_metadata.entry_points().get(self.namespace, ()) ``` Note that this issue does *not* affect upstream flake8 (https://github.com/pycqa/flake8), where they have rewritten the loading logic since 4.0.1. My suggestion is to carry an Ubuntu-specific patch for this, which replaces the 'dict' call above with a call to 'select'. I can provide one if needed. ** Affects: python-flake8 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1968072 Title: flake8 has deprecation warning with Python 3.10 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-flake8/+bug/1968072/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs