Skip to content

Commit

Permalink
e3.sys: Replace pkg_resources by importlib.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
leocardao committed Apr 4, 2024
1 parent c844476 commit 8be3aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/e3/sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ def visit_Import(self, node: ast.stmt) -> ast.stmt:


def version() -> str:
import pkg_resources
import importlib.metadata

return pkg_resources.get_distribution("e3-core").version
return importlib.metadata.version("e3-core")


def sanity_check() -> int:
Expand Down

0 comments on commit 8be3aa5

Please sign in to comment.