diff --git a/docs/changelog.rst b/docs/changelog.rst index 9d0f217ad..b926b27af 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -9,14 +9,13 @@ Starting with version 1.8.0, pybind11 releases use a `semantic versioning Changes will be added here periodically from the "Suggested changelog entry" block in pull request descriptions. -IN DEVELOPMENT --------------- +Version 2.10.0 (Jul 15, 2022) +----------------------------- Removed support for Python 2.7, Python 3.5, and MSVC 2015. Support for MSVC 2017 is limited due to availability of CI runners; we highly recommend MSVC 2019 or 2022 be used. Initial support added for Python 3.11. - New features: * ``py::anyset`` & ``py::frozenset`` were added, with copying (cast) to @@ -70,6 +69,9 @@ Changes: requiring ``NDEBUG``, allowing use with release builds if desired. `#3913 `_ +* Implicit conversion of the literal ``0`` to ``pybind11::handle`` is now disabled. + `#4008 `_ + Bug fixes: @@ -98,6 +100,14 @@ Bug fixes: * Fix cast from pytype rvalue to another pytype. `#3949 `_ +* Ensure proper behavior when garbage collecting classes with dynamic attributes in Python >=3.9. + `#4051 `_ + +* A couple long-standing ``PYBIND11_NAMESPACE`` + ``__attribute__((visibility("hidden")))`` inconsistencies are now fixed + (affects only unusual environments). + `#4043 `_ + * ``pybind11::detail::get_internals()`` is now resilient to in-flight Python exceptions. `#3981 `_ @@ -147,6 +157,9 @@ Performance and style: * Optimize c++ to python function casting by using the rvalue caster. `#3966 `_ +* Optimize Eigen sparse matrix casting by removing unnecessary temporary. + `#4064 `_ + * Avoid potential implicit copy/assignment constructors causing double free in ``strdup_gaurd``. `#3905 `_ @@ -182,6 +195,9 @@ Build system improvements: Backend and tidying up: +* New theme for the documentation. + `#3109 `_ + * Remove idioms in code comments. Use more inclusive language. `#3809 `_ diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index e52507a9e..1da323f31 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 10 -#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 0x020A00D1 +#define PYBIND11_VERSION_HEX 0x020A0000 #define PYBIND11_NAMESPACE_BEGIN(name) namespace name { #define PYBIND11_NAMESPACE_END(name) } diff --git a/pybind11/_version.py b/pybind11/_version.py index aee3b1c5b..b78d5963d 100644 --- a/pybind11/_version.py +++ b/pybind11/_version.py @@ -8,5 +8,5 @@ def _to_int(s: str) -> Union[int, str]: return s -__version__ = "2.10.0.dev1" +__version__ = "2.10.0" version_info = tuple(_to_int(s) for s in __version__.split("."))