Skip to content

Commit

Permalink
fix: version information
Browse files Browse the repository at this point in the history
  • Loading branch information
DahnJ committed Mar 2, 2025
1 parent f51301e commit 3ce80eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions h3pandas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from . import h3pandas # noqa: F401s

from ._version import get_versions
from importlib.metadata import version, PackageNotFoundError

__version__ = get_versions()["version"]
del get_versions
try:
__version__ = version("package-name")
except PackageNotFoundError:
# package is not installed
pass

0 comments on commit 3ce80eb

Please sign in to comment.