diff --git a/pylace/pyproject.toml b/pylace/pyproject.toml index 6651421b..fc161712 100644 --- a/pylace/pyproject.toml +++ b/pylace/pyproject.toml @@ -131,3 +131,7 @@ strict = true [tool.black] line-length = 80 + + +[tool.maturin] +module-name = "lace.core" diff --git a/pylace/requirements-dev.txt b/pylace/requirements-dev.txt index e5f4356a..aacb02b0 100644 --- a/pylace/requirements-dev.txt +++ b/pylace/requirements-dev.txt @@ -3,8 +3,8 @@ # Dependencies # Tooling -hypothesis==6.65.2 -maturin==0.14.10 -pytest==7.2.0 -pytest-cov==4.0.0 -pytest-xdist==3.1.0 +hypothesis==6.100.2 +maturin==1.5.1 +pytest==8.2.0 +pytest-cov==5.0.0 +pytest-xdist==3.6.1 diff --git a/pylace/src/lib.rs b/pylace/src/lib.rs index 192e52e0..82df3fd7 100644 --- a/pylace/src/lib.rs +++ b/pylace/src/lib.rs @@ -1437,6 +1437,7 @@ create_exception!(lace, EngineUpdateError, pyo3::exceptions::PyException); /// A Python module implemented in Rust. #[pymodule] +#[pyo3(name = "core")] fn core(py: Python, m: &PyModule) -> PyResult<()> { m.add_class::()?; m.add_class::()?; diff --git a/pylace/src/utils.rs b/pylace/src/utils.rs index a317e2b0..bf6c8f5f 100644 --- a/pylace/src/utils.rs +++ b/pylace/src/utils.rs @@ -518,7 +518,7 @@ fn pyany_to_category(val: &PyAny) -> PyResult { let x = val.downcast::()?.extract::()?; Ok(Category::String(x)) } - "int64" | "int32" | "int16" | "int8" => { + "numpy.int64" | "numpy.int32" | "numpy.int16" | "numpy.int8" => { let x = val.call_method("__int__", (), None)?.extract::()?; Ok(Category::U8(x)) }