Skip to content

Commit

Permalink
update __init__.py (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao authored Nov 9, 2024
1 parent c9d2a6c commit e48303c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jcvi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import datetime
from pkg_resources import get_distribution, DistributionNotFound
from importlib.metadata import version, PackageNotFoundError


__author__ = (
Expand All @@ -15,8 +15,8 @@


try:
VERSION = get_distribution(__name__).version
except DistributionNotFound: # pragma: no cover
VERSION = version(__name__)
except PackageNotFoundError: # pragma: no cover
try:
from .version import version as VERSION # noqa
except ImportError as exc: # pragma: no cover
Expand Down

0 comments on commit e48303c

Please sign in to comment.