Skip to content

Commit

Permalink
start working on next version, fix release process instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Aug 11, 2024
1 parent 9641bb7 commit 9a7ec7b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
15 changes: 10 additions & 5 deletions docs/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ How to make a new release?
1. Ensure that the full version of nanobind is checked out (including the
``robin_map`` submodule)

2. Update version in ``src/__init__.py`` and ``include/nanobind/nanobind.h``:
2. Update version in ``src/__init__.py``, ``include/nanobind/nanobind.h``,
and ``pyproject.toml``:

Also:

- Remove ``dev1`` suffix from ``X.Y.Zdev1`` in ``src/__init__.py``
- Set ``NB_VERSION_DEV`` to ``0``.
- Remove ``dev1`` suffix from ``X.Y.Zdev1`` in ``src/__init__.py`` and
``pyproject.toml``.

- Set ``NB_VERSION_DEV`` to ``0`` in ``include/nanobind/nanobind.h``.

3. Add release date to ``docs/changelog.rst``.

Expand All @@ -29,5 +32,7 @@ How to make a new release?

10. Update version in ``src/__init__.py`` and ``include/nanobind/nanobind.h``:

- Append ``dev1`` suffix from ``X.Y.Zdev1`` in ``src/__init__.py``
- Set ``NB_VERSION_DEV`` to ``1``.
- Append ``dev1`` suffix from ``X.Y.Zdev1`` in ``src/__init__.py`` and
``pyproject.toml``.

- Set ``NB_VERSION_DEV`` to ``1`` in ``include/nanobind/nanobind.h``
4 changes: 2 additions & 2 deletions include/nanobind/nanobind.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
#endif

#define NB_VERSION_MAJOR 2
#define NB_VERSION_MINOR 1
#define NB_VERSION_MINOR 2
#define NB_VERSION_PATCH 0
#define NB_VERSION_DEV 0 // A value > 0 indicates a development release
#define NB_VERSION_DEV 1 // A value > 0 indicates a development release

// Core C++ headers that nanobind depends on
#include <cstdint>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "nanobind"
version = "2.1.0"
version = "2.2.0dev1"
description = "nanobind: tiny and efficient C++/Python bindings"
readme.content-type = "text/markdown"
readme.text = """
Expand Down
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def cmake_dir() -> str:
"Return the path to the nanobind CMake module directory."
return os.path.join(os.path.abspath(os.path.dirname(__file__)), "cmake")

__version__ = "2.1.0"
__version__ = "2.2.0dev1"

__all__ = (
"__version__",
Expand Down

0 comments on commit 9a7ec7b

Please sign in to comment.