From fdd24ccb42475edf654973a0381e9f12e8e57bb1 Mon Sep 17 00:00:00 2001 From: Francesco Ballarin Date: Sat, 22 Aug 2026 14:49:00 +0200 Subject: [PATCH 1/2] Drop arguments to pybind none for due to backward incompatible changes in nanobind 3 --- gen_wrap.py | 2 +- pyproject.toml | 2 +- src/wrapper/wrap_isl_part1.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gen_wrap.py b/gen_wrap.py index 3c853fb..79b7b78 100644 --- a/gen_wrap.py +++ b/gen_wrap.py @@ -1466,7 +1466,7 @@ def write_exposer( f" new (t) isl::{wrap_class}(result);" " else" f' isl::handle_isl_error(ctx, "isl_{meth.cls}_read_from_str");' - '}, py::arg("s"), py::arg("context").none(true)=py::none());\n') + '}, py::arg("s"), py::arg("context").none()=py::none());\n') # }}} diff --git a/pyproject.toml b/pyproject.toml index 281d3e2..4635543 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ build-backend = "scikit_build_core.build" requires = [ "scikit-build-core >=0.9.3", - "nanobind >=2.15", + "nanobind >=3.0", "pcpp", # stubgen uses @override :/ diff --git a/src/wrapper/wrap_isl_part1.cpp b/src/wrapper/wrap_isl_part1.cpp index 21c1e1f..ab2fe9d 100644 --- a/src/wrapper/wrap_isl_part1.cpp +++ b/src/wrapper/wrap_isl_part1.cpp @@ -101,7 +101,7 @@ void islpy_expose_part1(py::module_ &m) new (t) isl::val(result); else isl::handle_isl_error(ctx, "isl_val_from_si"); - }, py::arg("i"), py::arg("context").none(true)=py::none() + }, py::arg("i"), py::arg("context").none()=py::none() ); MAKE_WRAP(multi_val, MultiVal); @@ -151,8 +151,8 @@ void islpy_expose_part1(py::module_ &m) else isl::handle_isl_error(ctx, "isl_id_alloc"); }, py::arg("name"), - py::arg("user").none(true)=py::none(), - py::arg("context").none(true)=py::none() + py::arg("user").none()=py::none(), + py::arg("context").none()=py::none() ); wrap_id.def("__eq__", islpy::id_eq, py::arg("other"), "__eq__(self, other)\n\n" From d8b4c56783564d16d6041f3a866231a82d1872ff Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sat, 22 Aug 2026 11:58:35 -0500 Subject: [PATCH 2/2] Bump version to 2026.2.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4635543..8fdaf86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ requires = [ [project] name = "islpy" -version = "2026.2" +version = "2026.2.1" description = "Wrapper around isl, an integer set library" readme = "README.rst" license = "MIT"