Skip to content

Commit 57108f0

Browse files
authored
Clarify CPython backport policy
1 parent ff9af79 commit 57108f0

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

‎developer-workflow/development-cycle.rst‎

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,22 @@ produced from a maintenance branch are called **bugfix** or **maintenance**
7474
releases; the terms are used interchangeably. These releases have a
7575
**micro version** number greater than zero.
7676

77-
Changes backported to a maintenance branch fall into two groups. *Low-risk*
78-
changes (bug fixes, test improvements, and documentation edits) may be
79-
backported without debate. *Higher-risk* changes (new features, semantic
80-
changes, and performance improvements) can introduce regressions, so they are
81-
not backported as a matter of course.
82-
Also, a general rule for maintenance branches is that compatibility
83-
must not be broken at any point between sibling micro releases (3.12.1, 3.12.2,
84-
etc.). For both rules, only rare exceptions are accepted, and each requires a
77+
For ordinary changes, merge to ``main`` first. A change may then be
78+
backported to a maintenance branch if it is appropriate for that release.
79+
Security fixes follow the coordinated process described in the
80+
:ref:`security policy <security-policy>`. *Low-risk* changes (bug fixes, test
81+
improvements, and documentation edits) may be backported without debate.
82+
*Higher-risk* changes (new features, semantic changes, and performance
83+
improvements) can introduce regressions, so they are not backported as a matter
84+
of course. Compatibility must not be broken between sibling micro releases
85+
(3.12.1, 3.12.2, etc.). Exceptions to these rules are rare and require a
8586
strong case agreed upon in discussion beforehand.
8687

87-
Backporting changes reduces the risk of future conflicts.
88-
For documentation, it increases the visibility of improvements,
89-
since most readers access the `stable documentation <https://docs.python.org/3/>`__
88+
Backport pull requests use a ``[X.Y]`` prefix in their title to identify the
89+
target branch. Backporting documentation changes also makes improvements more
90+
visible, since most readers access the `stable documentation <https://docs.python.org/3/>`__
9091
rather than the `development documentation <https://docs.python.org/dev/>`__.
92+
For the practical steps, see :ref:`backporting`.
9193

9294
A new maintenance branch is normally created when the next feature release
9395
cycle reaches feature freeze, that is, at its first beta pre-release.

0 commit comments

Comments
 (0)