Skip to content

Commit

Permalink
Removed deprecated pkg_resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
neerdoc committed Jan 25, 2024
1 parent d6c0a22 commit 7ab309c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doorstop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""Package for doorstop."""

from pkg_resources import DistributionNotFound, get_distribution
from importlib.metadata import PackageNotFoundError, version

from doorstop.common import DoorstopError, DoorstopInfo, DoorstopWarning
from doorstop.core import (
Expand All @@ -22,8 +22,8 @@
__project__ = "Doorstop"

try:
__version__ = get_distribution(__project__).version
except DistributionNotFound:
__version__ = version(__project__)
except PackageNotFoundError:
__version__ = "(local)"

CLI = "doorstop"
Expand Down

0 comments on commit 7ab309c

Please sign in to comment.