Skip to content

Commit 5bd766b

Browse files
authored
docs: update changelog and add script to help generate it (#2733)
1 parent d5af536 commit 5bd766b

File tree

2 files changed

+76
-1
lines changed

2 files changed

+76
-1
lines changed

docs/changelog.rst

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,35 @@ Changelog
66
Starting with version 1.8.0, pybind11 releases use a `semantic versioning
77
<http://semver.org>`_ policy.
88

9+
910
v2.6.2 (TBA, not yet released)
1011
------------------------------
1112

12-
* Details to follow here
13+
14+
* Fixed segfault in multithreaded environments when using ``scoped_ostream_redirect``.
15+
`#2675 <https://github.com/pybind/pybind11/pull/2675>`_
16+
17+
* CMake: mixing local and installed pybind11's would prioritize the installed one over the local one (regression in 2.6.0).
18+
`#2716 <https://github.com/pybind/pybind11/pull/2716>`_
19+
20+
* Fix bug where the constructor of `object` subclasses would not throw on being passed a Python object of the wrong type.
21+
`#2701 <https://github.com/pybind/pybind11/pull/2701>`_
22+
23+
* Fixed assertion error related to unhandled (later overwritten) exception in CPython 3.8 and 3.9 debug builds.
24+
`#2685 <https://github.com/pybind/pybind11/pull/2685>`_
25+
26+
* Fix ``py::gil_scoped_acquire`` assert with CPython 3.9 debug build.
27+
`#2683 <https://github.com/pybind/pybind11/pull/2683>`_
28+
29+
* Fixes segfaults in multithreaded environments when using ``scoped_ostream_redirect``.
30+
`#2675 <https://github.com/pybind/pybind11/pull/2675>`_
31+
32+
* Fix issue with FindPython2/FindPython3 not working with ``pybind11::embed``.
33+
`#2662 <https://github.com/pybind/pybind11/pull/2662>`_
34+
35+
* Allow thread termination to be avoided during shutdown for CPython 3.7+ via ``.disarm``.
36+
`#2657 <https://github.com/pybind/pybind11/pull/2657>`_
37+
1338

1439

1540
v2.6.1 (Nov 11, 2020)

tools/make_changelog.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
4+
import re
5+
6+
import ghapi.core
7+
8+
9+
ENTRY = re.compile(
10+
r"""
11+
Suggested \s changelog \s entry:
12+
.*
13+
```rst
14+
\s*
15+
(.*?)
16+
\s*
17+
```
18+
""",
19+
re.DOTALL | re.VERBOSE,
20+
)
21+
22+
23+
api = ghapi.core.GhApi(owner="pybind", repo="pybind11")
24+
25+
issues = api.issues.list_for_repo(labels="needs changelog", state="closed")
26+
missing = []
27+
28+
for issue in issues:
29+
changelog = ENTRY.findall(issue.body)
30+
if changelog:
31+
(msg,) = changelog
32+
if not msg.startswith("* "):
33+
msg = "* " + msg
34+
if not msg.endswith("."):
35+
msg += "."
36+
37+
print(msg)
38+
print(f" `#{issue.number} <{issue.html_url}>`_\n")
39+
40+
else:
41+
missing.append(issue)
42+
43+
if missing:
44+
print()
45+
print("-" * 30)
46+
print()
47+
48+
for issue in missing:
49+
print(f"Missing: {issue.title}")
50+
print(f" {issue.html_url}")

0 commit comments

Comments
 (0)