Skip to content

Commit

Permalink
Fix import error (#527)
Browse files Browse the repository at this point in the history
* fix import error

* update actinia-api version
  • Loading branch information
mmacata authored Jun 18, 2024
1 parent aa9b5e9 commit 0ccb3a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ keywords = [
"osgeo",
]
dependencies = [
"actinia-api==3.4.0",
"actinia-api==3.4.1",
"Flask>=3.0.0",
"boto3>=1.6.6",
"colorlog>=4.2.1",
Expand Down
7 changes: 3 additions & 4 deletions src/actinia_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@
#
#######

from pkg_resources import get_distribution, DistributionNotFound

import importlib.metadata
try:
# Change here if project is renamed and does not equal the package name
dist_name = __name__
__version__ = get_distribution(dist_name).version
except DistributionNotFound:
__version__ = importlib.metadata.version(dist_name)
except Exception:
__version__ = "unknown"

0 comments on commit 0ccb3a8

Please sign in to comment.