Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python version to package exports #160

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -753,6 +753,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
Loading