Skip to content

Commit

Permalink
fix: auto populate version
Browse files Browse the repository at this point in the history
  • Loading branch information
Bento007 committed Jul 31, 2024
1 parent bb169de commit c337642
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
For more information on the API, visit the [cryoet-data-portal repo](https://github.com/chanzuckerberg/cryoet-data-portal/)
"""

try:
from importlib import metadata
except ImportError:
# for python <=3.7
import importlib_metadata as metadata # type: ignore[no-redef]

from ._client import Client
from ._models import (
Annotation,
Expand All @@ -25,11 +19,7 @@
TomogramVoxelSpacing,
)

try:
__version__ = metadata.version("cryoet_data_portal")
except metadata.PackageNotFoundError:
# package is not installed
__version__ = "0.0.0-unknown"
__version__ = "3.0.3"

__all__ = [
"Client",
Expand Down

0 comments on commit c337642

Please sign in to comment.