Skip to content

Commit

Permalink
Add version export to python lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Oct 8, 2024
1 parent 67388ca commit 2f9de3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions icechunk-python/python/icechunk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from zarr.core.sync import SyncMixin

from ._icechunk_python import (
__version__,
PyIcechunkStore,
S3Credentials,
SnapshotMetadata,
Expand All @@ -21,6 +22,7 @@
)

__all__ = [
"__version__",
"IcechunkStore",
"StorageConfig",
"S3Credentials",
Expand Down
2 changes: 2 additions & 0 deletions icechunk-python/python/icechunk/_icechunk_python.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,5 @@ async def pyicechunk_store_open_existing(
def pyicechunk_store_from_bytes(
bytes: bytes, read_only: bool
) -> PyIcechunkStore: ...

__version__: str
1 change: 1 addition & 0 deletions icechunk-python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ impl PyIcechunkStore {
/// The icechunk Python module implemented in Rust.
#[pymodule]
fn _icechunk_python(m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add("__version__", env!("CARGO_PKG_VERSION"))?;
m.add_class::<PyStorageConfig>()?;
m.add_class::<PyIcechunkStore>()?;
m.add_class::<PyS3Credentials>()?;
Expand Down

0 comments on commit 2f9de3c

Please sign in to comment.