Skip to content

Commit e85696e

Browse files
authored
Post release version bump (#4747)
* Boilerplate version number update after v2.11.0 release. * Small updates to release.rst
1 parent 1a917f1 commit e85696e

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

docs/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ Changes will be added here periodically from the "Suggested changelog entry"
1010
block in pull request descriptions.
1111

1212

13+
IN DEVELOPMENT
14+
--------------
15+
16+
Changes will be summarized here periodically.
17+
18+
1319
Version 2.11.0 (July 14, 2023)
1420
-----------------------------
1521

docs/release.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If you don't have nox, you should either use ``pipx run nox`` instead, or use
4141
interface (very easy: start by clicking the link above).
4242
- ``git add`` and ``git commit``, ``git push``. **Ensure CI passes**. (If it
4343
fails due to a known flake issue, either ignore or restart CI.)
44-
- Add a release branch if this is a new minor version, or update the existing release branch if it is a patch version
44+
- Add a release branch if this is a new MINOR version, or update the existing release branch if it is a patch version
4545
- New branch: ``git checkout -b vX.Y``, ``git push -u origin vX.Y``
4646
- Update branch: ``git checkout vX.Y``, ``git merge <release branch>``, ``git push``
4747
- Update tags (optional; if you skip this, the GitHub release makes a
@@ -50,7 +50,9 @@ If you don't have nox, you should either use ``pipx run nox`` instead, or use
5050
- ``git push --tags``.
5151
- Update stable
5252
- ``git checkout stable``
53-
- ``git merge master``
53+
- ``git merge -X theirs vX.Y.Z``
54+
- ``git diff vX.Y.Z``
55+
- Carefully review and reconcile any diffs. There should be none.
5456
- ``git push``
5557
- Make a GitHub release (this shows up in the UI, sends new release
5658
notifications to users watching releases, and also uploads PyPI packages).
@@ -69,9 +71,10 @@ If you don't have nox, you should either use ``pipx run nox`` instead, or use
6971
- Make sure you are on master, not somewhere else: ``git checkout master``
7072
- Update version macros in ``include/pybind11/detail/common.h`` (set PATCH to
7173
``0.dev1`` and increment MINOR).
72-
- Update ``_version.py`` to match
74+
- Update ``pybind11/_version.py`` to match
7375
- Run ``nox -s tests_packaging`` to ensure this was done correctly.
74-
- Add a spot for in-development updates in ``docs/changelog.rst``.
76+
- If the release was a new MINOR version, add a new `IN DEVELOPMENT`
77+
section in ``docs/changelog.rst``.
7578
- ``git add``, ``git commit``, ``git push``
7679

7780
If a version branch is updated, remember to set PATCH to ``1.dev1``.

include/pybind11/detail/common.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
#pragma once
1111

1212
#define PYBIND11_VERSION_MAJOR 2
13-
#define PYBIND11_VERSION_MINOR 11
14-
#define PYBIND11_VERSION_PATCH 0
13+
#define PYBIND11_VERSION_MINOR 12
14+
#define PYBIND11_VERSION_PATCH 0.dev1
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 0x020B0000
18+
#define PYBIND11_VERSION_HEX 0x020C00D1
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.11.0"
11+
__version__ = "2.12.0.dev1"
1212
version_info = tuple(_to_int(s) for s in __version__.split("."))

0 commit comments

Comments
 (0)