Skip to content

Commit

Permalink
chore: rm importlib_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Apr 12, 2024
1 parent e40a31a commit 29ae93d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
install_requires=[
"click>=8.1.6,<9",
"ijson>=3.1.4,<4",
"importlib-metadata", # NOTE: Needed on 3.8 for entry_points `group=` kwarg.
"ipython>=8.5.0,<9",
"lazyasd>=0.1.4",
"packaging>=23.0,<24",
Expand Down
4 changes: 2 additions & 2 deletions src/ape/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import re
import sys
from gettext import gettext
from importlib.metadata import entry_points as get_entry_points
from typing import Any, Optional

import click
import importlib_metadata as metadata
import yaml

from ape.cli import ape_cli_context
Expand Down Expand Up @@ -115,7 +115,7 @@ def commands(self) -> dict:
if self._commands:
return self._commands

entry_points = metadata.entry_points(group=self._CLI_GROUP_NAME)
entry_points = get_entry_points(group=self._CLI_GROUP_NAME)
if not entry_points:
raise Abort("Missing registered CLI subcommands.")

Expand Down

0 comments on commit 29ae93d

Please sign in to comment.