fix(py): one name, clawhdf5, for the Python distribution and module

pyproject.toml named the distribution rustyhdf5 while the extension
module is clawhdf5, and the package's tests imported rustyhdf5, so
pytest failed at collection. Distribution, module-name and tests now
agree; the module gains __version__. maturin develop + pytest: 28 pass.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
osobh
2026-09-26 08:09:54 -05:00
co-authored by Claude Opus 5.5
parent 63648c7000
commit 006bf3b131
6 changed files with 59 additions and 45 deletions
+1
View File
@@ -219,6 +219,7 @@ pub(crate) fn extract_numpy_data(
/// The clawhdf5 Python module.
#[pymodule]
fn clawhdf5(m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add("__version__", env!("CARGO_PKG_VERSION"))?;
m.add_class::<PyFile>()?;
m.add_class::<PyDataset>()?;
m.add_class::<PyGroup>()?;