Skip to content

Commit

Permalink
Added __version__ attribute to pybgs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewssobral committed Jul 31, 2022
1 parent 5f77663 commit 67c0815
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def build_cmake(self, extension):

setup(
name='pybgs',
version='3.2.0.post0',
version='3.2.0.post1',
author='Andrews Sobral',
author_email='[email protected]',
url='https://github.com/andrewssobral/bgslibrary',
Expand Down
2 changes: 2 additions & 0 deletions wrapper/python/bgslibrary_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ PYBIND11_MODULE(pybgs, m)
{
NDArrayConverter::init_numpy();
m.doc() = "python wrapper for bgslibrary using pybind11";
py::object version = py::cast("3.2.0");
m.attr("__version__") = version;

// Basic test
m.def("read_image", &read_image, "A function that read an image", py::arg("image"));
Expand Down

0 comments on commit 67c0815

Please sign in to comment.