jaraco / keyring

MIT License
1.24k stars 156 forks source link

Handle deprecated SelectableGroups #560

Closed antazoey closed 2 years ago

antazoey commented 2 years ago

Describe the bug In the _load_plugins() method from the module keyring.backend, it gives a warning saying DeprecationWarning: SelectableGroups dict interface is deprecated. Use select..

To Reproduce Load keyring in python 3.10

Expected behavior No deprecation warning gets raised.

Environment

macOS python 3.10

$ pip list | grep keyring
23.5.0
...
$ keyring --list-backends
keyring.backends.chainer.ChainerBackend (priority: -1)
keyring.backends.macOS.Keyring (priority: 5)
keyring.backends.fail.Keyring (priority: 0)
...

Additional context Add any other context about the problem here.

antazoey commented 2 years ago

Here is an example of how we fixed this: https://github.com/ApeWorX/ape/blob/main/src/ape/_cli.py#L77-L83

antazoey commented 2 years ago

Oops, I was using the wrong version