From 0c69e1eb2177fa8f8580632c7b1f97fdb606ce8f Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 25 Jun 2024 23:51:27 -0400 Subject: [PATCH] chore: prepare for 2.13.0 (#5198) * chore: prepare for 2.13.0 Signed-off-by: Henry Schreiner * Update changelog.rst --------- Signed-off-by: Henry Schreiner --- .github/workflows/pip.yml | 2 +- docs/changelog.rst | 13 ++++++++++--- include/pybind11/detail/common.h | 4 ++-- noxfile.py | 2 +- pybind11/_version.py | 2 +- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pip.yml b/.github/workflows/pip.yml index 6d453eabe1..a054ce6952 100644 --- a/.github/workflows/pip.yml +++ b/.github/workflows/pip.yml @@ -58,7 +58,7 @@ jobs: - name: Prepare env run: | - python -m pip install -r tests/requirements.txt build twine!=5.1.0 + python -m pip install -r tests/requirements.txt build twine - name: Python Packaging tests run: pytest tests/extra_python_package/ diff --git a/docs/changelog.rst b/docs/changelog.rst index 0a556973ed..7135e65311 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -33,11 +33,15 @@ New Features: .. feat(types) -* Support for ``type[T]`` was added to pybind11/typing.h. +* Support for ``Union``, ``Optional``, ``type[T]``, ``typing.TypeGuard``, + ``typing.TypeIs``, ``typing.Never``, ``typing.NoReturn`` and + ``typing.Literal`` was added to ``pybind11/typing.h``. `#5166 `_ - -* ``Union`` and ``Optional`` were added to ``pybind11/typing.h``. `#5165 `_ + `#5194 `_ + `#5193 `_ + `#5192 `_ + .. feat(cmake) @@ -93,6 +97,9 @@ CI: * Use ``macos-13`` (Intel) for CI jobs for now (will drop Python 3.7 soon). `#5109 `_ +* Releases now have artifact attestations, visible at + https://github.com/pybind/pybind11/attestations. + `#5196 `_ Other: diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index 698421d840..a83302f13e 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -11,11 +11,11 @@ #define PYBIND11_VERSION_MAJOR 2 #define PYBIND11_VERSION_MINOR 13 -#define PYBIND11_VERSION_PATCH 0.dev1 +#define PYBIND11_VERSION_PATCH 0 // Similar to Python's convention: https://docs.python.org/3/c-api/apiabiversion.html // Additional convention: 0xD = dev -#define PYBIND11_VERSION_HEX 0x020D00D1 +#define PYBIND11_VERSION_HEX 0x020D0000 // Define some generic pybind11 helper macros for warning management. // diff --git a/noxfile.py b/noxfile.py index be75def5d4..e9a2fa8fee 100644 --- a/noxfile.py +++ b/noxfile.py @@ -45,7 +45,7 @@ def tests_packaging(session: nox.Session) -> None: Run the packaging tests. """ - session.install("-r", "tests/requirements.txt") + session.install("-r", "tests/requirements.txt", "pip") session.run("pytest", "tests/extra_python_package", *session.posargs) diff --git a/pybind11/_version.py b/pybind11/_version.py index f71abbcdb8..5795f44067 100644 --- a/pybind11/_version.py +++ b/pybind11/_version.py @@ -8,5 +8,5 @@ def _to_int(s: str) -> int | str: return s -__version__ = "2.13.0.dev1" +__version__ = "2.13.0" version_info = tuple(_to_int(s) for s in __version__.split("."))