Skip to content

Commit

Permalink
fix(stuart): migrate from pkg_resources to importlib.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
xenophonf committed Nov 30, 2023
1 parent 4234625 commit 2589fd5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@

import logging
import pkgutil

import pkg_resources
from importlib.metadata import version

__app_name__ = __name__
__version__ = pkg_resources.require(__app_name__)[0].version
__version__ = version(__app_name__)

# configure module-level logging
logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 2589fd5

Please sign in to comment.