Skip to content

Commit

Permalink
update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Nov 9, 2024
1 parent c9d2a6c commit b560a4e
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 b560a4e

Please sign in to comment.