From d34206160f88d356a3b68a1abc08b702a3bb9f4b Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 21 Jul 2025 13:09:45 +0300 Subject: python3-nanobind: Upgrade 2.7.0 -> 2.8.0 Upgrade to release 2.8.0: - Added :cpp:class:`nb::fallback ` wrapper type, which is a :cpp:class:`nb::handle ` that always requires implicit conversion during casting. This is convenient when adding catch-all overloads that must handle arbitrary Python objects, without interfering with implicit conversion of arguments in other overloads. - The nanobind::literals namespace now includes _s to create a Python string from source code literals. - Added :cpp:func:`nb::dict::empty() `, :cpp:func:`nb::list::empty() `, :cpp:func:`nb::set::empty() `, and :cpp:func:`nb::tuple::empty() ` convenience methods. - Added a :cpp:func:`nb::dict::get() ` function to perform dictionary lookups with a fallback value in case of failures. - Nanobind now uses multi-phase (as opposed to single-phase) initialization API when registering modules. However, multi-interpreter extensions remain unsupported. - Added :cpp:class:`nb::frozenset` that wraps the Python frozenset type. - Miscellaneous fixes and improvements. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../python/python3-nanobind_2.7.0.bb | 26 ---------------------- .../python/python3-nanobind_2.8.0.bb | 26 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 26 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-nanobind_2.7.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-nanobind_2.8.0.bb diff --git a/meta-python/recipes-devtools/python/python3-nanobind_2.7.0.bb b/meta-python/recipes-devtools/python/python3-nanobind_2.7.0.bb deleted file mode 100644 index 3cb75cba09..0000000000 --- a/meta-python/recipes-devtools/python/python3-nanobind_2.7.0.bb +++ /dev/null @@ -1,26 +0,0 @@ -SUMMARY = "nanobind: tiny and efficient C++/Python bindings" -DESCRIPTION = "nanobind: tiny and efficient C++/Python bindings" -HOMEPAGE = "https://github.com/wjakob/nanobind" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=7646f9ee25e49eaf53f89a10665c568c" - -SRC_URI[sha256sum] = "f9f1b160580c50dcf37b6495a0fd5ec61dc0d95dae5f8004f87dd9ad7eb46b34" - -inherit pypi python_setuptools_build_meta cmake lib_package - -EXTRA_OECMAKE += "-DNB_TEST=OFF" - -DEPENDS += "\ - python3-scikit-build-native \ - python3-scikit-build-core-native \ - ninja-native \ -" - -do_install:append() { - install -d ${D}${base_libdir}/cmake/${PN} - install -m 0644 ${S}/cmake/* ${D}${base_libdir}/cmake/${PN}/ -} - -FILES:${PN} += "${prefix_native}/* ${prefix_native}/${PN}/* ${base_libdir}/cmake/*" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-nanobind_2.8.0.bb b/meta-python/recipes-devtools/python/python3-nanobind_2.8.0.bb new file mode 100644 index 0000000000..370130af69 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-nanobind_2.8.0.bb @@ -0,0 +1,26 @@ +SUMMARY = "nanobind: tiny and efficient C++/Python bindings" +DESCRIPTION = "nanobind: tiny and efficient C++/Python bindings" +HOMEPAGE = "https://github.com/wjakob/nanobind" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7646f9ee25e49eaf53f89a10665c568c" + +SRC_URI[sha256sum] = "94e7bf6aa1d7dff9566eddc15252aba94fdadbf67a99a169bfab34b708427cd8" + +inherit pypi python_setuptools_build_meta cmake lib_package + +EXTRA_OECMAKE += "-DNB_TEST=OFF" + +DEPENDS += "\ + python3-scikit-build-native \ + python3-scikit-build-core-native \ + ninja-native \ +" + +do_install:append() { + install -d ${D}${base_libdir}/cmake/${PN} + install -m 0644 ${S}/cmake/* ${D}${base_libdir}/cmake/${PN}/ +} + +FILES:${PN} += "${prefix_native}/* ${prefix_native}/${PN}/* ${base_libdir}/cmake/*" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf