From baeb121730147706c7d43c6c3e59a2f8a742f9d4 Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Thu, 10 Oct 2019 21:46:52 +0200 Subject: [PATCH] Add package information to top `fastobo` module --- src/py/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/py/mod.rs b/src/py/mod.rs index 9afc04e..1be1a94 100644 --- a/src/py/mod.rs +++ b/src/py/mod.rs @@ -76,6 +76,8 @@ fn fastobo(py: Python, m: &PyModule) -> PyResult<()> { m.add("__package__", "fastobo")?; m.add("__build__", pyo3_built!(py, built))?; + m.add("__version__", env!("CARGO_PKG_VERSION"))?; + m.add("__author__", env!("CARGO_PKG_AUTHORS").replace(':', "\n"))?; add_submodule!(py, m, abc); add_submodule!(py, m, doc);