Update nanobind requirement from <2.8.0 to <2.9.0
Type: Pull Request
State: Open
Association: Contributor
Comments: 1
(11 months ago)
(11 months ago)
part: dependencies lang: python
Updates the requirements on nanobind to permit the latest version.
Changelog
Sourced from nanobind's changelog.
Version 2.8.0 (July 16, 2025)
Added :cpp:class:
nb::fallback <fallback>wrapper type, which is a :cpp:class:nb::handle <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::literalsnamespace now includes_sto create a Python string from source code literals. (PR[#1051](https://github.com/wjakob/nanobind/issues/1051) <https://github.com/wjakob/nanobind/pull/1051>__).Added :cpp:func:
nb::dict::empty() <dict::empty>, :cpp:func:nb::list::empty() <list::empty>, :cpp:func:nb::set::empty() <set::empty>, and :cpp:func:nb::tuple::empty() <tuple::empty>convenience methods. (PR[#1052](https://github.com/wjakob/nanobind/issues/1052) <https://github.com/wjakob/nanobind/pull/1052>__)Added a :cpp:func:
nb::dict::get() <dict::get>function to perform dictionary lookups with a fallback value in case of failures. (commitd38284 <https://github.com/wjakob/nanobind/commit/d38284e573e404503862a550804e4c2413e11e01>__).Nanobind now uses multi-phase (as opposed to single-phase) initialization API when registering modules. However, multi-interpreter extensions remain unsupported. (PR
[#1059](https://github.com/wjakob/nanobind/issues/1059) <https://github.com/wjakob/nanobind/pull/1059>__).Added :cpp:class:
nb::frozensetthat wraps the Pythonfrozensettype. (PR[#1068](https://github.com/wjakob/nanobind/issues/1068) <https://github.com/wjakob/nanobind/pull/1068>__)Miscellaneous fixes and improvements ( commits
d4b245 <https://github.com/wjakob/nanobind/commit/d4b245ad69f729c3d2095be4c1cb5b94810dae26>,667451 <https://github.com/wjakob/nanobind/commit/667451fb4566dcd7151d64d81e118f9ba194a889>,62fc99 <https://github.com/wjakob/nanobind/commit/62fc996018d9ea4d51af9c86cf008c2562b4eeab>,8497f7 <https://github.com/wjakob/nanobind/commit/8497f778d006b60e44e99530f241e22f9603bb04>).Version 2.7.0 (Apr 18, 2025)
nanobind now provides a zero-copy type caster for
Eigen::Map<Eigen::SparseMatrix>. (PRs[#1003](https://github.com/wjakob/nanobind/issues/1003) <https://github.com/wjakob/nanobind/pull/1003>,[#782](https://github.com/wjakob/nanobind/issues/782) <https://github.com/wjakob/nanobind/pull/782>).Made handling of return value policies in Eigen type casters more consistent with the rest of nanobind. (Issue
[#971](https://github.com/wjakob/nanobind/issues/971) <https://github.com/wjakob/nanobind/issues/971>, commit5cdf59 <https://github.com/wjakob/nanobind/commit/5cdf58984e7a8b520935c3771029fe0e87edee73>).The Eigen sparse matrix caster now correctly handles
scipy.sparseobjects
... (truncated)
Commits
0e7aa61v2.8.0 release8497f77makenb::implicitly_convertible()a no-op if Source==Targetfc08a19gitignore: add .pyi filesa0ed258SciPy test fixesd38284eAddednb::dict::get()function with fallback valuea787ccaRemove argument from Cmake else() command (#1081)f4f546banother fix for the sanitizer detection code..66e0e2dexpand macros in new multi-phase initialization coded0b9ea6small tweak to stub sanitizer detection code80c37edAddednb::fallbackwrapper type- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
0
0
+0
-0
Package Dependencies
Technical Details
| ID: | 4414170 |
| UUID: | 3282927856 |
| Node ID: | PR_kwDOMUJLkM6hqtyR |
| Host: | GitHub |
| Repository: | python-project-templates/hatch-cpp |