2001-03-15 00:33:51 -05:00
|
|
|
|
PEP: 6
|
2001-04-17 12:55:11 -04:00
|
|
|
|
Title: Bug Fix Releases
|
2001-03-15 00:33:51 -05:00
|
|
|
|
Version: $Revision$
|
|
|
|
|
Author: aahz@pobox.com (Aahz)
|
|
|
|
|
Status: Draft
|
|
|
|
|
Type: Informational
|
|
|
|
|
Created: 15-Mar-2001
|
2001-06-05 12:39:11 -04:00
|
|
|
|
Post-History: 15-Mar-2001 18-Apr-2001
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Abstract
|
|
|
|
|
|
|
|
|
|
Python has historically had only a single fork of development,
|
|
|
|
|
with releases having the combined purpose of adding new features
|
|
|
|
|
and delivering bug fixes (these kinds of releases will be referred
|
|
|
|
|
to as "feature releases"). This PEP describes how to fork off
|
|
|
|
|
patch releases of old versions for the primary purpose of fixing
|
|
|
|
|
bugs.
|
|
|
|
|
|
|
|
|
|
This PEP is not, repeat NOT, a guarantee of the existence of patch
|
|
|
|
|
releases; it only specifies a procedure to be followed if patch
|
|
|
|
|
releases are desired by enough of the Python community willing to
|
|
|
|
|
do the work.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Motivation
|
|
|
|
|
|
|
|
|
|
With the move to SourceForge, Python development has accelerated.
|
|
|
|
|
There is a sentiment among part of the community that there was
|
|
|
|
|
too much acceleration, and many people are uncomfortable with
|
|
|
|
|
upgrading to new versions to get bug fixes when so many features
|
|
|
|
|
have been added, sometimes late in the development cycle.
|
|
|
|
|
|
2001-04-17 12:55:11 -04:00
|
|
|
|
One solution for this issue is to maintain the previous feature
|
|
|
|
|
release, providing bug fixes until the next feature release. This
|
|
|
|
|
should make Python more attractive for enterprise development,
|
|
|
|
|
where Python may need to be installed on hundreds or thousands of
|
2001-03-15 00:33:51 -05:00
|
|
|
|
machines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Prohibitions
|
|
|
|
|
|
2001-04-17 12:55:11 -04:00
|
|
|
|
Patch releases are required to adhere to the following restrictions:
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
1. There must be zero syntax changes. All .pyc and .pyo files
|
|
|
|
|
must work (no regeneration needed) with all patch releases
|
|
|
|
|
forked off from a feature release.
|
|
|
|
|
|
2001-04-17 12:55:11 -04:00
|
|
|
|
2. There must be zero pickle changes.
|
|
|
|
|
|
|
|
|
|
3. There must be no incompatible C API changes. All extensions
|
2001-03-15 00:33:51 -05:00
|
|
|
|
must continue to work without recompiling in all patch releases
|
|
|
|
|
in the same fork as a feature release.
|
|
|
|
|
|
2001-04-17 12:55:11 -04:00
|
|
|
|
Breaking any of these prohibitions requires a BDFL proclamation
|
|
|
|
|
(and a prominent warning in the release notes).
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Version Numbers
|
|
|
|
|
|
|
|
|
|
Starting with Python 2.0, all feature releases are required to
|
2001-04-17 12:55:11 -04:00
|
|
|
|
have a version number the form X.Y; patch releases will always be
|
|
|
|
|
of the form X.Y.Z.
|
|
|
|
|
|
|
|
|
|
The current feature release under development is referred to as
|
|
|
|
|
release N; the just-released feature version is referred to as
|
|
|
|
|
N-1.
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Procedure
|
|
|
|
|
|
2001-04-17 12:55:11 -04:00
|
|
|
|
The process for managing patch releases is modeled in part on the
|
|
|
|
|
Tcl system [1].
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
The Patch Czar is the counterpart to the BDFL for patch releases.
|
|
|
|
|
However, the BDFL and designated appointees retain veto power over
|
2001-04-17 12:55:11 -04:00
|
|
|
|
individual patches.
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
As individual patches get contributed to the feature release fork,
|
2001-04-17 12:55:11 -04:00
|
|
|
|
each patch contributor is requested to consider whether the patch is
|
|
|
|
|
a bug fix suitable for inclusion in a patch release. If the patch is
|
|
|
|
|
considered suitable, the patch contributor will mail the SourceForge
|
|
|
|
|
patch (bug fix?) number to the maintainers' mailing list.
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
In addition, anyone from the Python community is free to suggest
|
|
|
|
|
patches for inclusion. Patches may be submitted specifically for
|
2001-04-17 12:55:11 -04:00
|
|
|
|
patch releases; they should follow the guidelines in PEP 3 [2].
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
The Patch Czar decides when there are a sufficient number of
|
|
|
|
|
patches to warrant a release. The release gets packaged up,
|
2001-04-17 12:55:11 -04:00
|
|
|
|
including a Windows installer, and made public. If any new bugs
|
|
|
|
|
are found, they must be fixed immediately and a new patch release
|
|
|
|
|
publicized (with an incremented version number).
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
2001-04-17 12:55:11 -04:00
|
|
|
|
Patch releases are expected to occur at an interval of roughly one
|
|
|
|
|
month. In general, only the N-1 release will be under active
|
|
|
|
|
maintenance at any time.
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
|
2001-04-17 12:55:11 -04:00
|
|
|
|
Patch Czar History
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
2001-05-08 14:55:57 -04:00
|
|
|
|
Thomas Wouters (thomas@xs4all.net) is the Patch Czar for 2.1.1.
|
|
|
|
|
|
2001-04-17 12:55:11 -04:00
|
|
|
|
Moshe Zadka (moshez@zadka.site.co.il) is the Patch Czar for 2.0.1.
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
|
2001-04-17 12:55:11 -04:00
|
|
|
|
Issues To Be Resolved
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
What is the equivalent of python-dev for people who are
|
|
|
|
|
responsible for maintaining Python? (Aahz proposes either
|
|
|
|
|
python-patch or python-maint, hosted at either python.org or
|
|
|
|
|
xs4all.net.)
|
|
|
|
|
|
|
|
|
|
Does SourceForge make it possible to maintain both separate and
|
|
|
|
|
combined bug lists for multiple forks? If not, how do we mark
|
|
|
|
|
bugs fixed in different forks? (Simplest is to simply generate a
|
|
|
|
|
new bug for each fork that it gets fixed in, referring back to the
|
|
|
|
|
main bug number for details.)
|
|
|
|
|
|
|
|
|
|
|
2001-04-17 12:55:11 -04:00
|
|
|
|
History
|
|
|
|
|
|
|
|
|
|
This PEP started life as a proposal on comp.lang.python. The
|
|
|
|
|
original version suggested a single patch for the N-1 release to
|
|
|
|
|
be released concurrently with the N release. The original version
|
|
|
|
|
also argued for sticking with a strict bug fix policy.
|
|
|
|
|
|
|
|
|
|
Following feedback from the BDFL and others, the draft PEP was
|
|
|
|
|
written containing an expanded patch release cycle that permitted
|
|
|
|
|
any previous feature release to obtain patches and also relaxed
|
|
|
|
|
the strict bug fix requirement (mainly due to the example of PEP
|
|
|
|
|
235 [3], which could be argued as either a bug fix or a feature).
|
|
|
|
|
|
|
|
|
|
Discussion then mostly moved to python-dev, where BDFL finally
|
|
|
|
|
issued a proclamation basing the Python patch release process on
|
|
|
|
|
Tcl's, which essentially returned to the original proposal in
|
|
|
|
|
terms of being only the N-1 release and only bug fixes, but
|
|
|
|
|
allowing multiple patch releases until release N is published.
|
|
|
|
|
|
|
|
|
|
|
2001-03-15 00:33:51 -05:00
|
|
|
|
References
|
|
|
|
|
|
2001-04-17 12:55:11 -04:00
|
|
|
|
[1] http://dev.scriptics.com:8080/cgi-bin/tct/tip/28.html
|
|
|
|
|
|
2001-07-05 14:50:28 -04:00
|
|
|
|
[2] PEP 3, Guidelines for Handling Bug Reports, Hylton
|
|
|
|
|
http://www.python.org/peps/pep-0003.html
|
2001-04-17 12:55:11 -04:00
|
|
|
|
|
2001-07-05 14:50:28 -04:00
|
|
|
|
[3] PEP 235, Import on Case-Insensitive Platforms, Peters
|
|
|
|
|
http://www.python.org/peps/pep-0235.html
|
2001-03-15 00:33:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Copyright
|
|
|
|
|
|
|
|
|
|
This document has been placed in the public domain.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: indented-text
|
|
|
|
|
indent-tabs-mode: nil
|
|
|
|
|
End:
|