2008-09-19 21:44:10 +02:00
|
|
|
========================
|
|
|
|
Django's release process
|
|
|
|
========================
|
|
|
|
|
|
|
|
.. _official-releases:
|
|
|
|
|
|
|
|
Official releases
|
|
|
|
=================
|
|
|
|
|
2011-07-19 15:16:09 +02:00
|
|
|
Since version 1.0, Django's release numbering works as follows:
|
2008-09-19 21:44:10 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Versions are numbered in the form ``A.B`` or ``A.B.C``.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* ``A`` is the *major version* number, which is only incremented for major
|
|
|
|
changes to Django, and these changes are not necessarily
|
|
|
|
backwards-compatible. That is, code you wrote for Django 1.2 may break
|
|
|
|
when we release Django 2.0.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* ``B`` is the *minor version* number, which is incremented for large yet
|
|
|
|
backwards compatible changes. Code written for Django 1.2 will continue
|
|
|
|
to work under Django 1.3. Exceptions to this rule will be listed in the
|
|
|
|
release notes.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* ``C`` is the *micro version* number, which is incremented for bug and
|
|
|
|
security fixes. A new micro-release will be 100% backwards-compatible with
|
|
|
|
the previous micro-release. The only exception is when a security issue
|
|
|
|
can't be fixed without breaking backwards-compatibility. If this happens,
|
|
|
|
the release notes will provide detailed upgrade instructions.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* In some cases, we'll make alpha, beta, or release candidate releases.
|
|
|
|
These are of the form ``A.B alpha/beta/rc N``, which means the ``Nth``
|
|
|
|
alpha/beta/release candidate of version ``A.B``.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
2012-08-07 22:06:34 +02:00
|
|
|
In git, each Django release will have a tag indicating its version
|
|
|
|
number, signed with the Django release key. Additionally, each release
|
|
|
|
series (X.Y) has its own branch, and bugfix/security releases will be
|
|
|
|
issued from those branches.
|
|
|
|
|
|
|
|
For more information about how the Django project issues new releases
|
|
|
|
for security purposes, please see :doc:`our security policies
|
|
|
|
<security>`.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
|
|
|
Major releases
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Major releases (1.0, 2.0, etc.) will happen very infrequently (think "years",
|
|
|
|
not "months"), and will probably represent major, sweeping changes to Django.
|
|
|
|
|
|
|
|
Minor releases
|
|
|
|
--------------
|
|
|
|
|
2010-05-06 03:20:11 +02:00
|
|
|
Minor release (1.1, 1.2, etc.) will happen roughly every nine months -- see
|
2009-07-21 03:51:40 +02:00
|
|
|
`release process`_, below for details.
|
|
|
|
|
|
|
|
.. _internal-release-deprecation-policy:
|
2008-09-19 21:44:10 +02:00
|
|
|
|
|
|
|
These releases will contain new features, improvements to existing features, and
|
|
|
|
such. A minor release may deprecate certain features from previous releases. If a
|
|
|
|
feature in version ``A.B`` is deprecated, it will continue to work in version
|
|
|
|
``A.B+1``. In version ``A.B+2``, use of the feature will raise a
|
2009-10-24 16:10:00 +02:00
|
|
|
``DeprecationWarning`` but will continue to work. Version ``A.B+3`` will
|
2009-07-21 03:51:40 +02:00
|
|
|
remove the feature entirely.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
|
|
|
So, for example, if we decided to remove a function that existed in Django 1.0:
|
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Django 1.1 will contain a backwards-compatible replica of the function
|
|
|
|
which will raise a ``PendingDeprecationWarning``. This warning is silent
|
|
|
|
by default; you need to explicitly turn on display of these warnings.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Django 1.2 will contain the backwards-compatible replica, but the warning
|
|
|
|
will be promoted to a full-fledged ``DeprecationWarning``. This warning is
|
|
|
|
*loud* by default, and will likely be quite annoying.
|
2009-07-21 03:51:40 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Django 1.3 will remove the feature outright.
|
2009-07-21 03:51:40 +02:00
|
|
|
|
2008-09-19 21:44:10 +02:00
|
|
|
Micro releases
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Micro releases (1.0.1, 1.0.2, 1.1.1, etc.) will be issued at least once half-way
|
|
|
|
between minor releases, and probably more often as needed.
|
|
|
|
|
2011-07-19 15:16:09 +02:00
|
|
|
These releases will be 100% compatible with the associated minor release, unless
|
|
|
|
this is impossible for security reasons. So the answer to "should I upgrade to
|
|
|
|
the latest micro release?" will always be "yes."
|
2008-09-19 21:44:10 +02:00
|
|
|
|
|
|
|
Each minor release of Django will have a "release maintainer" appointed. This
|
|
|
|
person will be responsible for making sure that bug fixes are applied to both
|
|
|
|
trunk and the maintained micro-release branch. This person will also work with
|
|
|
|
the release manager to decide when to release the micro releases.
|
|
|
|
|
2012-06-07 18:48:29 +02:00
|
|
|
.. _backwards-compatibility-policy:
|
|
|
|
|
2008-09-19 21:44:10 +02:00
|
|
|
Supported versions
|
|
|
|
==================
|
|
|
|
|
|
|
|
At any moment in time, Django's developer team will support a set of releases to
|
|
|
|
varying levels:
|
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* The current development trunk will get new features and bug fixes
|
|
|
|
requiring major refactoring.
|
2009-07-21 03:51:40 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Patches applied to the trunk will also be applied to the last minor
|
|
|
|
release, to be released as the next micro release, when they fix critical
|
|
|
|
problems:
|
2011-07-19 15:16:09 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Security issues.
|
2011-07-19 15:16:09 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Data-loss bugs.
|
2011-07-19 15:16:09 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Crashing bugs.
|
2011-07-19 15:16:09 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Major functionality bugs in newly-introduced features.
|
2011-07-19 15:16:09 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
The rule of thumb is that fixes will be backported to the last minor
|
|
|
|
release for bugs that would have prevented a release in the first place.
|
2009-07-21 03:51:40 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Security fixes will be applied to the current trunk and the previous two
|
|
|
|
minor releases.
|
2009-07-21 03:51:40 +02:00
|
|
|
|
2011-12-30 21:39:08 +01:00
|
|
|
* Documentation fixes generally will be more freely backported to the last
|
|
|
|
release branch, at the discretion of the committer, and they don't need to
|
|
|
|
meet the "critical fixes only" bar. That's because it's highly advantageous
|
|
|
|
to have the docs for the last release be up-to-date and correct, and the
|
|
|
|
downside of backporting (risk of introducing regressions) is much less of a
|
|
|
|
concern.
|
2011-12-30 16:30:51 +01:00
|
|
|
|
2008-09-19 21:44:10 +02:00
|
|
|
As a concrete example, consider a moment in time halfway between the release of
|
|
|
|
Django 1.3 and 1.4. At this point in time:
|
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Features will be added to development trunk, to be released as Django 1.4.
|
2009-07-21 03:51:40 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Critical bug fixes will be applied to a ``1.3.X`` branch, and released as
|
|
|
|
1.3.1, 1.3.2, etc.
|
2009-07-21 03:51:40 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* Security fixes will be applied to trunk, a ``1.3.X`` branch and a
|
|
|
|
``1.2.X`` branch. They will trigger the release of ``1.3.1``, ``1.2.1``,
|
|
|
|
etc.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
2011-12-30 21:39:08 +01:00
|
|
|
* Documentation fixes will be applied to trunk, and, if easily backported, to
|
2011-12-30 16:30:51 +01:00
|
|
|
the ``1.3.X`` branch.
|
|
|
|
|
2008-09-19 21:44:10 +02:00
|
|
|
.. _release-process:
|
|
|
|
|
|
|
|
Release process
|
|
|
|
===============
|
|
|
|
|
|
|
|
Django uses a time-based release schedule, with minor (i.e. 1.1, 1.2, etc.)
|
2010-05-06 03:20:11 +02:00
|
|
|
releases every nine months, or more, depending on features.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
2011-07-19 15:16:09 +02:00
|
|
|
After each release, and after a suitable cooling-off period of a few weeks, the
|
|
|
|
core development team will examine the landscape and announce a timeline for the
|
|
|
|
next release. Most releases will be scheduled in the 6-9 month range, but if we
|
|
|
|
have bigger features to development we might schedule a longer period to allow
|
|
|
|
for more ambitious work.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
|
|
|
Release cycle
|
|
|
|
-------------
|
|
|
|
|
|
|
|
Each release cycle will be split into three periods, each lasting roughly
|
|
|
|
one-third of the cycle:
|
|
|
|
|
|
|
|
Phase one: feature proposal
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
The first phase of the release process will be devoted to figuring out what
|
|
|
|
features to include in the next version. This should include a good deal of
|
|
|
|
preliminary work on those features -- working code trumps grand design.
|
|
|
|
|
|
|
|
At the end of part one, the core developers will propose a feature list for the
|
|
|
|
upcoming release. This will be broken into:
|
|
|
|
|
|
|
|
* "Must-have": critical features that will delay the release if not finished
|
|
|
|
* "Maybe" features: that will be pushed to the next release if not finished
|
|
|
|
* "Not going to happen": features explicitly deferred to a later release.
|
|
|
|
|
|
|
|
Anything that hasn't got at least some work done by the end of the first third
|
|
|
|
isn't eligible for the next release; a design alone isn't sufficient.
|
|
|
|
|
|
|
|
Phase two: development
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
The second third of the release schedule is the "heads-down" working period.
|
|
|
|
Using the roadmap produced at the end of phase one, we'll all work very hard to
|
|
|
|
get everything on it done.
|
|
|
|
|
|
|
|
Longer release schedules will likely spend more than a third of the time in this
|
|
|
|
phase.
|
|
|
|
|
|
|
|
At the end of phase two, any unfinished "maybe" features will be postponed until
|
|
|
|
the next release. Though it shouldn't happen, any "must-have" features will
|
|
|
|
extend phase two, and thus postpone the final release.
|
|
|
|
|
|
|
|
Phase two will culminate with an alpha release.
|
|
|
|
|
|
|
|
Phase three: bugfixes
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
The last third of a release is spent fixing bugs -- no new features will be
|
|
|
|
accepted during this time. We'll release a beta release about halfway through,
|
|
|
|
and an rc complete with string freeze two weeks before the end of the schedule.
|
|
|
|
|
|
|
|
Bug-fix releases
|
|
|
|
----------------
|
|
|
|
|
2012-06-08 11:26:22 +02:00
|
|
|
After a minor release (e.g. 1.1), the previous release will go into bugfix
|
2011-07-19 15:16:09 +02:00
|
|
|
mode.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
|
|
|
A branch will be created of the form ``branches/releases/1.0.X`` to track
|
2012-06-08 11:26:22 +02:00
|
|
|
bugfixes to the previous release. Critical bugs fixed on trunk must
|
|
|
|
*also* be fixed on the bugfix branch; this means that commits need to cleanly
|
2009-07-21 03:51:40 +02:00
|
|
|
separate bug fixes from feature additions. The developer who commits a fix to
|
2012-06-08 11:26:22 +02:00
|
|
|
trunk will be responsible for also applying the fix to the current bugfix
|
|
|
|
branch. Each bugfix branch will have a maintainer who will work with the
|
2008-12-08 18:15:56 +01:00
|
|
|
committers to keep them honest on backporting bug fixes.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
|
|
|
How this all fits together
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
Let's look at a hypothetical example for how this all first together. Imagine,
|
|
|
|
if you will, a point about halfway between 1.1 and 1.2. At this point,
|
|
|
|
development will be happening in a bunch of places:
|
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* On trunk, development towards 1.2 proceeds with small additions, bugs
|
|
|
|
fixes, etc. being checked in daily.
|
2009-07-21 03:51:40 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* On the branch "branches/releases/1.1.X", fixes for critical bugs found in
|
|
|
|
the 1.1 release are checked in as needed. At some point, this branch will
|
|
|
|
be released as "1.1.1", "1.1.2", etc.
|
2008-09-19 21:44:10 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* On the branch "branches/releases/1.0.X", security fixes are made if
|
|
|
|
needed and released as "1.0.2", "1.0.3", etc.
|
2009-07-21 03:51:40 +02:00
|
|
|
|
2011-10-14 02:12:01 +02:00
|
|
|
* On feature branches, development of major features is done. These
|
|
|
|
branches will be merged into trunk before the end of phase two.
|