diff --git a/pyproject.toml b/pyproject.toml index daaae52..896ec7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,5 +11,8 @@ classifiers = [ "Programming Language :: Python :: Implementation :: PyPy", ] dynamic = ["version"] + [tool.maturin] features = ["pyo3/extension-module"] +python-source = "python" +module-name = "tester.tester" diff --git a/python/tester/__init__.py b/python/tester/__init__.py new file mode 100644 index 0000000..ed53e19 --- /dev/null +++ b/python/tester/__init__.py @@ -0,0 +1,5 @@ +from .tester import * + +__doc__ = tester.__doc__ +if hasattr(tester, "__all__"): + __all__ = tester.__all__ \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index ba37cd7..5ae1fa7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,6 +43,7 @@ use pyo3::prelude::*; use pythonapi::{pyshell::PyShell, shell_like::PyTty}; #[pymodule] +#[pyo3(name = "tester")] fn tester(m: &Bound<'_, PyModule>) -> PyResult<()> { m.add_class::()?; m.add_class::()?;