2019-09-10 05:28:08 -04:00
|
|
|
|
PEP: 602
|
|
|
|
|
Title: Annual Release Cycle for Python
|
|
|
|
|
Version: $Revision$
|
|
|
|
|
Last-Modified: $Date$
|
|
|
|
|
Author: Łukasz Langa <lukasz@python.org>
|
2022-04-20 05:53:08 -04:00
|
|
|
|
PEP-Delegate: Brett Cannon <brett@python.org>
|
2019-09-10 06:22:49 -04:00
|
|
|
|
Discussions-To: https://discuss.python.org/t/pep-602-annual-release-cycle-for-python/2296/
|
2019-11-06 19:20:49 -05:00
|
|
|
|
Status: Accepted
|
2019-09-10 05:28:08 -04:00
|
|
|
|
Type: Informational
|
|
|
|
|
Content-Type: text/x-rst
|
|
|
|
|
Created: 04-Jun-2019
|
|
|
|
|
Python-Version: 3.9
|
2023-11-27 14:14:23 -05:00
|
|
|
|
Post-History: `09-Oct-2023 <https://discuss.python.org/t/27002>`__
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Abstract
|
|
|
|
|
========
|
|
|
|
|
|
|
|
|
|
This document describes a change in the release calendar for Python
|
|
|
|
|
starting with Python 3.9. This change accelerates the release cadence
|
2023-06-18 06:27:14 -04:00
|
|
|
|
such that feature versions are released predictably every twelve months,
|
2019-09-10 12:36:09 -04:00
|
|
|
|
in October every year.
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implementation
|
|
|
|
|
==============
|
|
|
|
|
|
2023-06-18 06:27:14 -04:00
|
|
|
|
Seventeen months to develop a feature version
|
|
|
|
|
---------------------------------------------
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
This PEP proposes that Python 3.X.0 will be developed for around
|
2019-09-10 11:01:47 -04:00
|
|
|
|
17 months:
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
- The first *five months* overlap with Python 3.(X-1).0's beta
|
|
|
|
|
and release candidate stages and are thus unversioned.
|
|
|
|
|
|
|
|
|
|
- The next *seven months* are spent on versioned alpha releases where
|
|
|
|
|
both new features are incrementally added and bug fixes are included.
|
|
|
|
|
|
2019-11-06 07:44:55 -05:00
|
|
|
|
- The following *three months* are spent on four versioned beta releases
|
|
|
|
|
where **no new features** can be added but bug fixes are still
|
|
|
|
|
included.
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
2019-11-06 07:44:55 -05:00
|
|
|
|
- The final *two months* are spent on two release candidates (or more,
|
|
|
|
|
if necessary) and conclude with the release of the final release of
|
2019-09-10 05:28:08 -04:00
|
|
|
|
Python 3.X.0.
|
|
|
|
|
|
2023-10-09 07:25:03 -04:00
|
|
|
|
2 years of full support, 3 more years of security fixes
|
|
|
|
|
-------------------------------------------------------
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
2019-09-10 11:04:02 -04:00
|
|
|
|
After the release of Python 3.X.0, the 3.X series is maintained for
|
2019-09-10 05:28:08 -04:00
|
|
|
|
five years:
|
|
|
|
|
|
2023-10-09 07:25:03 -04:00
|
|
|
|
- During the *first twenty four months* (2 years) it receives bugfix
|
2019-09-13 12:41:32 -04:00
|
|
|
|
updates and full releases (sources and installers for Windows and
|
|
|
|
|
macOS) are made approximately every other month.
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
2023-10-09 07:25:03 -04:00
|
|
|
|
- For the next *thirty six months* (3 years) it receives security
|
2019-09-13 12:41:32 -04:00
|
|
|
|
updates and source-only releases are made on an as-needed basis
|
|
|
|
|
(no fixed cadence).
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
- The final source-only release is made *five years* after 3.X.0.
|
|
|
|
|
|
2023-10-09 07:25:03 -04:00
|
|
|
|
Note: 2 years of full support start with
|
2023-10-09 19:34:22 -04:00
|
|
|
|
:pep:`Python 3.13 <719>`. Python versions
|
2023-10-09 07:25:03 -04:00
|
|
|
|
3.9 - 3.12 operate on a calendar with 1½ year of full support, followed
|
|
|
|
|
by 3½ more years of security fixes.
|
|
|
|
|
|
|
|
|
|
|
2019-09-10 05:28:08 -04:00
|
|
|
|
Annual release cadence
|
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
|
|
Feature development of Python 3.(X+1).0 starts as soon as
|
2021-02-03 09:06:23 -05:00
|
|
|
|
Python 3.X.0 Beta 1 is released. This creates a twelve-month delta
|
2023-06-18 06:27:14 -04:00
|
|
|
|
between Python feature versions.
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
|
|
- 3.9 development begins: Tuesday, 2019-06-04
|
|
|
|
|
- 3.9.0 alpha 1: Monday, 2019-10-14
|
|
|
|
|
- 3.9.0 alpha 2: Monday, 2019-11-18
|
|
|
|
|
- 3.9.0 alpha 3: Monday, 2019-12-16
|
|
|
|
|
- 3.9.0 alpha 4: Monday, 2020-01-13
|
|
|
|
|
- 3.9.0 alpha 5: Monday, 2020-02-17
|
|
|
|
|
- 3.9.0 alpha 6: Monday, 2020-03-16
|
|
|
|
|
- 3.9.0 alpha 7: Monday, 2020-04-13
|
|
|
|
|
- 3.9.0 beta 1: Monday, 2020-05-18
|
|
|
|
|
(No new features beyond this point.)
|
|
|
|
|
|
2019-11-06 07:44:55 -05:00
|
|
|
|
- 3.9.0 beta 2: Monday, 2020-06-08
|
|
|
|
|
- 3.9.0 beta 3: Monday, 2020-06-29
|
|
|
|
|
- 3.9.0 beta 4: Monday, 2020-07-20
|
|
|
|
|
- 3.9.0 candidate 1: Monday, 2020-08-10
|
|
|
|
|
- 3.9.0 candidate 2: Monday, 2020-09-14
|
2019-09-10 05:28:08 -04:00
|
|
|
|
- 3.9.0 final: Monday, 2020-10-05
|
|
|
|
|
|
|
|
|
|
.. figure:: pep-0602-example-release-calendar.png
|
|
|
|
|
:align: center
|
|
|
|
|
:width: 100%
|
|
|
|
|
|
|
|
|
|
Figure 1. Consequences of the annual release cycle on the calendar.
|
|
|
|
|
|
2019-09-13 12:41:32 -04:00
|
|
|
|
In comparison, if this PEP is rejected and Python keeps the current
|
|
|
|
|
release schedule:
|
|
|
|
|
|
|
|
|
|
- 3.9 development begins: Tuesday, 2019-06-04
|
|
|
|
|
- 3.9.0 alpha 1: Monday, 2020-08-03 (10 months later)
|
|
|
|
|
- 3.9.0 alpha 2: Monday, 2020-09-07
|
|
|
|
|
- 3.9.0 alpha 3: Monday, 2020-10-05
|
|
|
|
|
- 3.9.0 alpha 4: Monday, 2020-11-02
|
|
|
|
|
- 3.9.0 beta 1: Monday, 2020-11-30 (6 months later)
|
|
|
|
|
- 3.9.0 beta 2: Monday, 2021-01-04
|
|
|
|
|
- 3.9.0 beta 3: Monday, 2021-02-01
|
|
|
|
|
- 3.9.0 beta 4: Monday, 2021-03-01
|
|
|
|
|
- 3.9.0 candidate 1: Monday, 2021-03-29
|
|
|
|
|
- 3.9.0 candidate 2: Monday, 2021-04-05 (if necessary)
|
|
|
|
|
- 3.9.0 final: Monday, 2021-04-19 (6 months later)
|
|
|
|
|
|
|
|
|
|
|
2019-10-24 06:09:50 -04:00
|
|
|
|
Dependent Policies
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
Deprecations
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
The current policy around breaking changes assumes at least two releases
|
|
|
|
|
before a deprecated feature is removed from Python or a ``__future__``
|
2022-01-21 06:03:51 -05:00
|
|
|
|
behavior is enabled by default. This is documented in :pep:`387`.
|
2019-10-24 06:09:50 -04:00
|
|
|
|
|
|
|
|
|
This PEP proposes to keep this policy of **at least** two releases
|
|
|
|
|
before making a breaking change.
|
|
|
|
|
|
|
|
|
|
The term of the Steering Council
|
|
|
|
|
--------------------------------
|
|
|
|
|
|
2022-01-21 06:03:51 -05:00
|
|
|
|
The current wording of :pep:`13` states that "a new council is elected
|
2019-10-24 06:09:50 -04:00
|
|
|
|
after each feature release". This PEP proposes to keep this policy
|
|
|
|
|
as it will lead to a consistent election schedule.
|
|
|
|
|
|
|
|
|
|
The term of the Release Manager
|
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
|
|
The current undocumented convention is for a single Release Manager to
|
|
|
|
|
handle two feature releases of Python. This PEP proposes to keep this
|
|
|
|
|
policy, allowing for the term to be extended to more releases with
|
|
|
|
|
approval from the Steering Council and the Cabal of Release Managers.
|
|
|
|
|
|
|
|
|
|
In particular, since this PEP is authored by the active Release Manager
|
|
|
|
|
and its effect would shorten the term of the Release Manager, the author
|
|
|
|
|
is open to managing the release of a third feature release to compensate
|
|
|
|
|
for the disruption.
|
|
|
|
|
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
Rationale and Goals
|
|
|
|
|
===================
|
|
|
|
|
|
|
|
|
|
This change provides the following advantages:
|
|
|
|
|
|
|
|
|
|
- makes releases smaller: since doubling the cadence doesn't double our
|
|
|
|
|
available development resources, consecutive releases are going to be
|
|
|
|
|
smaller in terms of features;
|
|
|
|
|
|
|
|
|
|
- puts features and bug fixes in hands of users sooner;
|
|
|
|
|
|
|
|
|
|
- creates a more gradual upgrade path for users, by decreasing the
|
|
|
|
|
surface of change in any single release;
|
|
|
|
|
|
|
|
|
|
- creates a predictable calendar for releases where the final release is
|
2019-09-10 09:50:07 -04:00
|
|
|
|
always in October (so after the annual core sprint), and the beta
|
2019-09-10 12:36:09 -04:00
|
|
|
|
phase starts in late May (so after PyCon US sprints), which is
|
|
|
|
|
especially important for core developers who need to plan to include
|
|
|
|
|
Python involvement in their calendar;
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
- decreases the urge to rush features shortly before "Beta 1" due to
|
|
|
|
|
the risk of them "slipping for 18 months";
|
|
|
|
|
|
2019-11-06 07:44:55 -05:00
|
|
|
|
- allows for synchronizing the schedule of Python release management
|
|
|
|
|
with external distributors like Fedora who've been historically very
|
|
|
|
|
helpful in finding regressions early not only in core Python but also
|
|
|
|
|
in third-party libraries, helping moving the community forward to
|
|
|
|
|
support the latest version of Python from Day 1;
|
|
|
|
|
|
2019-09-10 05:28:08 -04:00
|
|
|
|
- increases the explicit alpha release phase, which provides meaningful
|
|
|
|
|
snapshots of progress on new features;
|
|
|
|
|
|
|
|
|
|
- significantly cuts the implicit "alpha 0" release phase which provides
|
|
|
|
|
limited use for new development anyway (it overlaps with the beta of
|
2019-09-13 13:21:14 -04:00
|
|
|
|
the *currently developed*, still unreleased, version).
|
2019-09-10 09:50:07 -04:00
|
|
|
|
|
|
|
|
|
Non-goals
|
|
|
|
|
---------
|
|
|
|
|
|
|
|
|
|
Adopting an annual release calendar allows for natural switching to
|
|
|
|
|
calendar versioning, for example by calling Python 3.9 "Python 3.20"
|
|
|
|
|
since it's released in October '20 and so on ("Python 3.23" would be the
|
|
|
|
|
one released in October '23).
|
|
|
|
|
|
|
|
|
|
While the ease of switching to calendar versioning can be treated as
|
|
|
|
|
an advantage of an annual release cycle, this PEP does not advocate for
|
|
|
|
|
or against a change in how Python is versioned. Should the annual
|
|
|
|
|
release cycle be adopted, the versioning question will be dealt with in
|
|
|
|
|
a separate PEP.
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
Non-risks
|
|
|
|
|
---------
|
|
|
|
|
|
2019-09-13 12:41:32 -04:00
|
|
|
|
This change does not shorten the currently documented support calendar
|
|
|
|
|
for a Python release, both in terms of bugfix releases and security
|
|
|
|
|
fixes.
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
This change does not accelerate the velocity of development. Python is
|
|
|
|
|
not going to become incompatible faster or accrue new features faster.
|
|
|
|
|
It's just that features are going to be released more gradually as they
|
|
|
|
|
are developed.
|
|
|
|
|
|
|
|
|
|
Consequently, while this change introduces the ability for users to
|
|
|
|
|
upgrade much faster, it does not require them to do so. Say, if they
|
|
|
|
|
upgrade every second release, their experience with Python is going to
|
2019-09-13 12:41:32 -04:00
|
|
|
|
be similar to the current situation.
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
Risks
|
|
|
|
|
-----
|
|
|
|
|
|
2019-09-13 12:41:32 -04:00
|
|
|
|
Python redistribution
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
2019-09-10 05:28:08 -04:00
|
|
|
|
This requires changes to how integrators, like Linux distributions,
|
|
|
|
|
release Python within their systems.
|
|
|
|
|
|
2019-09-13 12:41:32 -04:00
|
|
|
|
The testing matrix
|
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
2019-09-10 05:28:08 -04:00
|
|
|
|
This eventually increases the testing matrix for library and application
|
|
|
|
|
maintainers that want to support all actively supported Python versions
|
2019-09-10 09:26:39 -04:00
|
|
|
|
by one or two:
|
|
|
|
|
|
|
|
|
|
.. figure:: pep-0602-overlapping-support-matrix.png
|
|
|
|
|
:align: center
|
2019-09-13 12:41:32 -04:00
|
|
|
|
:width: 50%
|
2019-09-10 09:26:39 -04:00
|
|
|
|
|
|
|
|
|
Figure 2. Testing matrix in the 18-month cadence vs. the 12-month
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
2019-09-13 12:41:32 -04:00
|
|
|
|
The "extended bugfix support at the discretion of the Release Manager"
|
2022-01-21 06:03:51 -05:00
|
|
|
|
stage of the current release cycle is not codified. If fact, :pep:`101`
|
2019-09-13 12:41:32 -04:00
|
|
|
|
currently states that after the release of Python 3.(X+1).0 only one
|
|
|
|
|
last bugfix release is made for Python 3.X.0. However, in practice at
|
|
|
|
|
least the last four versions of Python 3 overlapped with stable releases
|
|
|
|
|
of the next version for around six months. Figure 2 is including
|
|
|
|
|
this information to demonstrate that overlap between stable version
|
|
|
|
|
releases with the 12-month release cadence will be nothing new.
|
|
|
|
|
|
2019-10-24 06:09:50 -04:00
|
|
|
|
Other policies may depend on the release cadence
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2019-09-13 12:41:32 -04:00
|
|
|
|
|
2019-10-24 06:09:50 -04:00
|
|
|
|
Although identified dependent policies were addressed in a previous
|
|
|
|
|
section, it is entirely possible there are some other areas which
|
|
|
|
|
implicitly rely on the timing of Python releases.
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rejected Ideas
|
|
|
|
|
--------------
|
|
|
|
|
|
|
|
|
|
Keep the current 18 month release cadence
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
This is undesirable both for core developers and end users. From the
|
|
|
|
|
perspective of the core developer:
|
|
|
|
|
|
2019-09-13 12:41:32 -04:00
|
|
|
|
- it makes contribution scheduling harder due to irregular release
|
|
|
|
|
dates every year;
|
|
|
|
|
|
2019-09-10 05:28:08 -04:00
|
|
|
|
- it creates a surge of rushed commits before (and even after!) Beta 1
|
|
|
|
|
due to the stress involved with "missing a release";
|
|
|
|
|
|
|
|
|
|
- ironically, after Beta 1 it creates a false sense of having "plenty of
|
|
|
|
|
time" before the next release, time that passes quickly regardless;
|
|
|
|
|
|
|
|
|
|
- it causes certain elements of the workflow to be executed so rarely
|
|
|
|
|
that they are not explicitly documented, let alone automated.
|
|
|
|
|
|
|
|
|
|
More importantly, from the perspective of the user:
|
|
|
|
|
|
|
|
|
|
- it creates releases with many new features, some being explicitly
|
|
|
|
|
incompatible and some being accidentally incompatible, which makes
|
|
|
|
|
the upgrade cost relatively high every time;
|
|
|
|
|
|
|
|
|
|
- it sits on features and incompatible bug fixes for over a year before
|
|
|
|
|
becoming available to the user; and more specifically
|
|
|
|
|
|
|
|
|
|
- it causes every "point zero" release to be extra risky for users.
|
|
|
|
|
While we provide and recommend testing with alphas and betas,
|
|
|
|
|
"point zero" is the first release of a given Python version for many
|
|
|
|
|
users. The bigger a release is feature-wise, the more potential
|
|
|
|
|
problems are hiding in "point zero releases".
|
|
|
|
|
|
2023-06-18 06:27:14 -04:00
|
|
|
|
Double the release cadence to achieve 9 months between feature versions
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
2022-01-21 06:03:51 -05:00
|
|
|
|
This was originally proposed in :pep:`596` and rejected as both too
|
2019-11-06 07:44:55 -05:00
|
|
|
|
irregular and too short. This would not give any of the benefits of
|
|
|
|
|
a regular release calendar but it would shorten all development phases,
|
|
|
|
|
especially the beta + RC phases. This was considered dangerous.
|
|
|
|
|
|
|
|
|
|
Keep "4 betas over 4 months and a final month for the release candidate"
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
While this would make the release calendar a bit cleaner, `it would make
|
|
|
|
|
it very hard for external distributors like Fedora
|
|
|
|
|
<https://discuss.python.org/t/pep-602-annual-release-cycle-for-python/2296/79?u=ambv>`_
|
|
|
|
|
to release the newest version of Python as soon as possible. We are
|
|
|
|
|
adjusting Python's calendar here in the hope that this will enable
|
|
|
|
|
Fedora to integrate the newest version of Python with the newest version
|
|
|
|
|
of Fedora *as both are being developed* which makes both projects
|
|
|
|
|
better.
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
Slow down releases but don't freeze feature development with Beta 1
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
2022-01-21 06:03:51 -05:00
|
|
|
|
This is described in :pep:`598`. This proposal includes non-standard
|
2019-09-10 05:28:08 -04:00
|
|
|
|
concepts like the "incremental feature release" which makes it hard
|
|
|
|
|
to understand. The presented advantages are unclear while the
|
|
|
|
|
unfamiliarity of the scheme poses a real risk of user and integrator
|
|
|
|
|
confusion.
|
|
|
|
|
|
2019-09-13 12:41:32 -04:00
|
|
|
|
Long-Term Support Releases
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
Each version of Python is effectively long-term support: it's supported
|
|
|
|
|
for five years, with the first eighteen months allowing regular bug
|
|
|
|
|
fixes and security updates. For the remaining time security updates are
|
|
|
|
|
accepted and promptly released.
|
|
|
|
|
|
|
|
|
|
No extended support in the vein of Python 2.7 is planned going forward.
|
|
|
|
|
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
Copyright
|
|
|
|
|
=========
|
|
|
|
|
|
2019-09-10 06:22:49 -04:00
|
|
|
|
This document is placed in the public domain or under the
|
|
|
|
|
CC0-1.0-Universal license, whichever is more permissive.
|
2019-09-10 05:28:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
..
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: indented-text
|
|
|
|
|
indent-tabs-mode: nil
|
|
|
|
|
sentence-end-double-space: t
|
|
|
|
|
fill-column: 72
|
|
|
|
|
coding: utf-8
|
|
|
|
|
End:
|