From 9a7ec7bd10a0271b32c19ca37512020e56d2d59f Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 11 Aug 2024 12:20:49 +0900 Subject: [PATCH] start working on next version, fix release process instructions --- docs/release.rst | 15 ++++++++++----- include/nanobind/nanobind.h | 4 ++-- pyproject.toml | 2 +- src/__init__.py | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/docs/release.rst b/docs/release.rst index cdf4d82b..b5b197f0 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -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``. @@ -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`` diff --git a/include/nanobind/nanobind.h b/include/nanobind/nanobind.h index ba45dab7..a138ec4f 100644 --- a/include/nanobind/nanobind.h +++ b/include/nanobind/nanobind.h @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 7ab84903..6a8942ae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = """ diff --git a/src/__init__.py b/src/__init__.py index 0d2a481e..23456698 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -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__",