Skip to content

Commit 8fe6280

Browse files
committed
chore: prepare for the 2.6.2 release
1 parent 732bf88 commit 8fe6280

File tree

4 files changed

+22
-21
lines changed

4 files changed

+22
-21
lines changed

docs/changelog.rst

+18-18
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Starting with version 1.8.0, pybind11 releases use a `semantic versioning
1010
v2.6.2 (Jan 26, 2021)
1111
---------------------
1212

13-
1413
Minor missing functionality added:
1514

1615
* enum: add missing Enum.value property.
@@ -20,6 +19,20 @@ Minor missing functionality added:
2019
``.disarm`` for ``gil_scoped_acquire``/``gil_scoped_release``.
2120
`#2657 <https://github.com/pybind/pybind11/pull/2657>`_
2221

22+
Fixed or improved behavior in a few special cases:
23+
24+
* Fix bug where the constructor of ``object`` subclasses would not throw on
25+
being passed a Python object of the wrong type.
26+
`#2701 <https://github.com/pybind/pybind11/pull/2701>`_
27+
28+
* The ``type_caster`` for integers does not convert Python objects with
29+
``__int__`` anymore with ``noconvert`` or during the first round of trying
30+
overloads.
31+
`#2698 <https://github.com/pybind/pybind11/pull/2698>`_
32+
33+
* When casting to a C++ integer, ``__index__`` is always called and not
34+
considered as conversion, consistent with Python 3.8+.
35+
`#2801 <https://github.com/pybind/pybind11/pull/2801>`_
2336

2437
Build improvements:
2538

@@ -53,23 +66,6 @@ Build improvements:
5366

5467
Bug fixes:
5568

56-
* Fix invalid access when calling a pybind11 ``__init__`` on a non-pybind11
57-
class instance.
58-
`#2755 <https://github.com/pybind/pybind11/pull/2755>`_
59-
60-
* The ``type_caster`` for integers does not convert Python objects with
61-
``__int__`` anymore with ``noconvert`` or during the first round of trying
62-
overloads.
63-
`#2698 <https://github.com/pybind/pybind11/pull/2698>`_
64-
65-
* When casting to a C++ integer, ``__index__`` is always called and not
66-
considered as conversion, consistent with Python 3.8+.
67-
`#2801 <https://github.com/pybind/pybind11/pull/2801>`_
68-
69-
* Fix bug where the constructor of ``object`` subclasses would not throw on
70-
being passed a Python object of the wrong type.
71-
`#2701 <https://github.com/pybind/pybind11/pull/2701>`_
72-
7369
* Fixed segfault in multithreaded environments when using
7470
``scoped_ostream_redirect``.
7571
`#2675 <https://github.com/pybind/pybind11/pull/2675>`_
@@ -105,6 +101,10 @@ Warning fixes:
105101

106102
Valgrind work:
107103

104+
* Fix invalid access when calling a pybind11 ``__init__`` on a non-pybind11
105+
class instance.
106+
`#2755 <https://github.com/pybind/pybind11/pull/2755>`_
107+
108108
* Fixed various minor memory leaks in pybind11's test suite.
109109
`#2758 <https://github.com/pybind/pybind11/pull/2758>`_
110110

docs/release.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ To release a new version of pybind11:
5252
name (if you didn't tag above, it will be made here), fill in a release
5353
name like "Version X.Y.Z", and optionally copy-and-paste the changelog into
5454
the description (processed as markdown by Pandoc). Check "pre-release" if
55-
this is a beta/RC.
55+
this is a beta/RC. You can get partway there with
56+
``cat docs/changelog.rst | pandsoc -f rst -t markdown``.
5657
- CLI method: with ``gh`` installed, run ``gh release create vX.Y.Z -t "Version X.Y.Z"``
5758
If this is a pre-release, add ``-p``.
5859

include/pybind11/detail/common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define PYBIND11_VERSION_MAJOR 2
1313
#define PYBIND11_VERSION_MINOR 6
14-
#define PYBIND11_VERSION_PATCH 2.dev1
14+
#define PYBIND11_VERSION_PATCH 2
1515

1616
#define PYBIND11_NAMESPACE_BEGIN(name) namespace name {
1717
#define PYBIND11_NAMESPACE_END(name) }

pybind11/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ def _to_int(s):
88
return s
99

1010

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

0 commit comments

Comments
 (0)