Skip to content

Commit 1521a6b

Browse files
committed
export also __version__ in the python interface
1 parent 1a2f6dd commit 1521a6b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Version 2.0.1
1010
Unreleased.
1111

1212
- Test and build also for Python 3.9.
13+
- Export also __version__.
1314

1415

1516
Version 2.0.0

src/python.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ use crate::radial::__pyo3_get_function_radial_grid;
88

99
#[pymodule]
1010
fn numgrid(_py: Python, m: &PyModule) -> PyResult<()> {
11+
m.add("__version__", env!("CARGO_PKG_VERSION"))?;
12+
1113
m.add_function(wrap_pyfunction!(atom_grid, m)?)?;
1214
m.add_function(wrap_pyfunction!(atom_grid_bse, m)?)?;
1315
m.add_function(wrap_pyfunction!(angular_grid, m)?)?;

0 commit comments

Comments
 (0)