LuciferYang opened a new pull request, #1322:
URL: https://github.com/apache/paimon-rust/pull/1322
### Purpose
Linked issue: close #1205
Expose `pypaimon_rust.__version__`, as polars, orjson and pydantic_core do.
### Brief change log
- The native module sets `__version__` to `env!("CARGO_PKG_VERSION")`.
maturin takes the wheel version from the same `[package]` version, so the two
match.
- Release candidates differ: the release workflow adds an `rcN` suffix to
the distribution version only, so a `0.6.0rc1` wheel reports `__version__ ==
"0.6.0"`.
- pyo3's `PyModule::add` adds the name to the native module's `__all__`, so
the package's `from .pypaimon_rust import *` re-exports it.
### Tests
`test_version.py` checks that `pypaimon_rust.__version__` equals
`importlib.metadata.version("pypaimon-rust")` with a trailing `rcN` removed.
With `"0.1.0"` hardcoded in `lib.rs`, the test fails.
### API and Format
Adds the `__version__` module attribute. No storage format change.
### Documentation
None.
Generated-by: Claude Opus
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]