Skip to content

Commit 0bd8896

Browse files
committed
chore: prepare for 2.10.3 (#4437)
* docs: update changelog for v2.10.3 Signed-off-by: Henry Schreiner <[email protected]> * chore: bump versions for 2.10.3 Signed-off-by: Henry Schreiner <[email protected]> * chore: fix make changelog script with entry is empty Signed-off-by: Henry Schreiner <[email protected]> Signed-off-by: Henry Schreiner <[email protected]>
1 parent d78de29 commit 0bd8896

File tree

4 files changed

+41
-9
lines changed

4 files changed

+41
-9
lines changed

docs/changelog.rst

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,39 @@ IN DEVELOPMENT
1515

1616
Changes will be summarized here periodically.
1717

18+
Changes:
19+
20+
* ``PyGILState_Check()``'s in ``pybind11::handle``'s ``inc_ref()`` &
21+
``dec_ref()`` are now enabled by default again.
22+
`#4246 <https://github.com/pybind/pybind11/pull/4246>`_
23+
24+
Build system improvements:
25+
26+
* Update clang-tidy to 15 in CI.
27+
`#4387 <https://github.com/pybind/pybind11/pull/4387>`_
28+
29+
30+
Version 2.10.3 (Jan 3, 2023)
31+
----------------------------
32+
33+
Changes:
34+
35+
* Temporarily made our GIL status assertions (added in 2.10.2) disabled by
36+
default (re-enable manually by defining
37+
``PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF``, will be enabled in 2.11).
38+
`#4432 <https://github.com/pybind/pybind11/pull/4432>`_
39+
40+
* Improved error messages when ``inc_ref``/``dec_ref`` are called with an
41+
invalid GIL state.
42+
`#4427 <https://github.com/pybind/pybind11/pull/4427>`_
43+
`#4436 <https://github.com/pybind/pybind11/pull/4436>`_
44+
45+
Bug Fixes:
46+
47+
* Some minor touchups found by static analyzers.
48+
`#4440 <https://github.com/pybind/pybind11/pull/4440>`_
49+
50+
1851
Version 2.10.2 (Dec 20, 2022)
1952
-----------------------------
2053

@@ -30,7 +63,7 @@ Changes:
3063
* ``PyGILState_Check()``'s were integrated to ``pybind11::handle``
3164
``inc_ref()`` & ``dec_ref()``. The added GIL checks are guarded by
3265
``PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF``, which is the default only if
33-
``NDEBUG`` is not defined.
66+
``NDEBUG`` is not defined. (Made non-default in 2.10.3, will be active in 2.11)
3467
`#4246 <https://github.com/pybind/pybind11/pull/4246>`_
3568

3669
* Add option for enable/disable enum members in docstring.

include/pybind11/detail/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
#define PYBIND11_VERSION_MAJOR 2
1313
#define PYBIND11_VERSION_MINOR 10
14-
#define PYBIND11_VERSION_PATCH 2
14+
#define PYBIND11_VERSION_PATCH 3
1515

1616
// Similar to Python's convention: https://docs.python.org/3/c-api/apiabiversion.html
1717
// Additional convention: 0xD = dev
18-
#define PYBIND11_VERSION_HEX 0x020A0200
18+
#define PYBIND11_VERSION_HEX 0x020A0300
1919

2020
// Define some generic pybind11 helper macros for warning management.
2121
//

pybind11/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ def _to_int(s: str) -> Union[int, str]:
88
return s
99

1010

11-
__version__ = "2.10.2"
11+
__version__ = "2.10.3"
1212
version_info = tuple(_to_int(s) for s in __version__.split("."))

tools/make_changelog.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@
3131
missing = []
3232

3333
for issue in issues:
34-
changelog = ENTRY.findall(issue.body)
35-
if changelog:
34+
changelog = ENTRY.findall(issue.body or "")
35+
if not changelog or not changelog[0]:
36+
missing.append(issue)
37+
else:
3638
(msg,) = changelog
3739
if not msg.startswith("* "):
3840
msg = "* " + msg
@@ -44,9 +46,6 @@
4446
print(Syntax(msg, "rst", theme="ansi_light", word_wrap=True))
4547
print()
4648

47-
else:
48-
missing.append(issue)
49-
5049
if missing:
5150
print()
5251
print("[blue]" + "-" * 30)

0 commit comments

Comments
 (0)