Skip to content

Commit

Permalink
add __version__ to __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Nov 12, 2024
1 parent fb831db commit b56c893
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions miniscope_io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
I/O SDK for UCLA Miniscopes
"""

from importlib import metadata
from pathlib import Path

from miniscope_io.io import SDCard
Expand All @@ -21,3 +22,8 @@
"SDCard",
"init_logger",
]

try:
__version__ = metadata.version("miniscope_io")
except metadata.PackageNotFoundError: # pragma: nocover
__version__ = "0.0.0"

0 comments on commit b56c893

Please sign in to comment.