Skip to content

Commit 116e098

Browse files
committed
v2.9.2 release
1 parent a65e1b3 commit 116e098

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

docs/changelog.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ case, both modules must use the same nanobind ABI version, or they will be
1515
isolated from each other. Releases that don't explicitly mention an ABI version
1616
below inherit that of the preceding release.
1717

18+
Version 2.9.2 (Sep 4, 2025)
19+
---------------------------
20+
21+
This is a patch release to fix an issue in the new recursive stub generation feature:
22+
23+
- When creating stubs for a module, the generator must decide whether to store
24+
declarations locally (e.g., in ``foo.pyi``) or in a subdirectory (e.g., in
25+
``foo/__init__.pyi``). The latter is necessary, e.g., when ``foo`` contains
26+
submodules. However, the implemented submodule test was far too conservative
27+
and interpreted any imported module (e.g. ``import os``) as a submodule. The
28+
patch release fixes this.
29+
1830
Version 2.9.1 (Sep 4, 2025)
1931
---------------------------
2032

include/nanobind/nanobind.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define NB_VERSION_MAJOR 2
2525
#define NB_VERSION_MINOR 9
2626
#define NB_VERSION_PATCH 2
27-
#define NB_VERSION_DEV 1 // A value > 0 indicates a development release
27+
#define NB_VERSION_DEV 0 // A value > 0 indicates a development release
2828

2929
// Core C++ headers that nanobind depends on
3030
#include <cstddef>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "nanobind"
7-
version = "2.9.2-dev1"
7+
version = "2.9.2"
88
description = "nanobind: tiny and efficient C++/Python bindings"
99
readme.content-type = "text/markdown"
1010
readme.text = """

src/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def cmake_dir() -> str:
1616
"Return the path to the nanobind CMake module directory."
1717
return os.path.join(os.path.abspath(os.path.dirname(__file__)), "cmake")
1818

19-
__version__ = "2.9.2-dev1"
19+
__version__ = "2.9.2"
2020

2121
__all__ = (
2222
"__version__",

0 commit comments

Comments
 (0)