Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Handle deprecation of importlib SelectableGroups dict interface #467

Closed
antazoey opened this issue Feb 4, 2022 · 0 comments · Fixed by #473
Closed

bug: Handle deprecation of importlib SelectableGroups dict interface #467

antazoey opened this issue Feb 4, 2022 · 0 comments · Fixed by #473
Labels
category: bug Something isn't working

Comments

@antazoey
Copy link
Contributor

antazoey commented Feb 4, 2022

Environment information

latest ape

  • Python Version: 3.10
  • OS: macOS

What went wrong?

Deprecation warning occur when launching ape.

DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
    if "ape_cli_subcommands" not in entry_points:

How can it be fixed?

See this PR as an example: brechtm/rinohtype@7bbf2af

I think we can change it to entry_points = metadata.entry_points(group="ape_cli_command")
May have to do that for python 3.10 and greater only, I am not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant