Skip to content

Commit db4827f

Browse files
committed
v3.0.1 release
1 parent e136c5a commit db4827f

6 files changed

Lines changed: 40 additions & 8 deletions

File tree

docs/bazel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ in your MODULE.bazel file:
2727
# Place this in your MODULE.bazel file.
2828
# The major version of nanobind-bazel is equal to the version
2929
# of the internally used nanobind.
30-
# In this case, we are building bindings with nanobind v3.0.0.
31-
bazel_dep(name = "nanobind_bazel", version = "3.0.0")
30+
# In this case, we are building bindings with nanobind v3.0.1.
31+
bazel_dep(name = "nanobind_bazel", version = "3.0.1")
3232
3333
To instead use a development version from GitHub, you can declare the
3434
dependency as a ``git_override()`` in your MODULE.bazel:

docs/changelog.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,34 @@ versioning. Please review the :ref:`ABI compatibility <abi_compatibility>`
1111
documentation for details.
1212

1313

14+
Version 3.0.1 (Aug 28, 2026)
15+
----------------------------
16+
17+
- Fixed an issue where the ``std::chrono::duration`` caster interpreted a
18+
Python float even when implicit conversion was not desired.
19+
(PR `#1420 <https://github.com/wjakob/nanobind/pull/1420>`__).
20+
21+
- Minor tweak to the ``NB_SLOT_ALIAS`` macro so that ``clang-cl`` can compile
22+
nanobind 3.0.0 code on Windows. This compiler is now also tested by the CI.
23+
(PR `#1421 <https://github.com/wjakob/nanobind/pull/1421>`__).
24+
25+
- Fixed two problems in the ``constexpr`` logic that processes function
26+
annotations. Bindings could cause OOB writes by declaring an incorrect number
27+
of ``nb::arg`` annotations. A nullary method with an implicit ``self``
28+
annotation failed to compile. (PR `#1419
29+
<https://github.com/wjakob/nanobind/pull/1419>`__).
30+
31+
- Reverted a change from version 2.13.0 (PR `#1334
32+
<https://github.com/wjakob/nanobind/pull/1334>`__), where the stub generator
33+
stripped the prefix of the enclosing class and wrote the short name of a
34+
nested class. PyRight/mypy handle the qualified form, and need it to avoid
35+
ambiguities. (PR `#1422 <https://github.com/wjakob/nanobind/pull/1422>`__).
36+
37+
- The package metadata now declares ``requires-python = ">=3.10"`` so that
38+
installers do not pick up an incompatible version. (Issue `#1424
39+
<https://github.com/wjakob/nanobind/issues/1424>`__, PR `#1425
40+
<https://github.com/wjakob/nanobind/pull/1425>`__).
41+
1442
Version 3.0.0 (Aug 22, 2026)
1543
----------------------------
1644

@@ -376,6 +404,10 @@ improvements:
376404

377405
- Internal ABI version 22.
378406

407+
**Note**: The 3.0.0 release was yanked since it mistakenly still declared
408+
Python 3.9 compatibility. It is supserseded by the 3.0.1 patch release, which
409+
also includes several bugfixes.
410+
379411
Version 2.15.0 (Aug 15, 2026)
380412
-----------------------------
381413

docs/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ nanobinds depends on
5757
- **Python 3.10+** or **PyPy 7.3.12+** (the *3.10* and *3.11* PyPy flavors are
5858
supported, though there are :ref:`some limitations <pypy_issues>`).
5959
- **CMake 3.15+**.
60-
- **A C++17 compiler**: Clang 8+, GCC 8+, MSVC2019+, MinGW-w64, Intel ICX
61-
(the modern Clang-based Intel compiler), and the CUDA NVCC compiler are
62-
officially supported. Others (Cygwin, older Intel compilers, ..) may work
60+
- **A C++17 compiler**: Clang 8+, GCC 8+, MSVC2019+, ``clang-cl``, MinGW-w64,
61+
Intel ICX (the modern Clang-based Intel compiler), and the CUDA NVCC compiler
62+
are officially supported. Others (Cygwin, older Intel compilers, ..) may work
6363
as well but will not receive support.
6464

6565
.. only:: not latex

include/nanobind/nanobind.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#define NB_VERSION_MAJOR 3
2525
#define NB_VERSION_MINOR 0
26-
#define NB_VERSION_PATCH 0
26+
#define NB_VERSION_PATCH 1
2727
#define NB_VERSION_DEV 0 // A value > 0 indicates a development release
2828

2929
// nb_python.h includes Python.h, which according to

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 = "3.0.0"
7+
version = "3.0.1"
88
description = "nanobind: tiny and efficient C++/Python bindings"
99
requires-python = ">=3.10"
1010
readme.content-type = "text/markdown"

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__ = "3.0.0"
19+
__version__ = "3.0.1"
2020

2121
__all__ = (
2222
"__version__",

0 commit comments

Comments
 (0)