<commit_before>========================
Django's release process
========================

.. _official-releases:

Official releases
=================

Since version 1.0, Django's release numbering works as follows:

* Versions are numbered in the form ``A.B`` or ``A.B.C``.

* ``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.6 may break
  when we release Django 2.0.

* ``B`` is the *minor version* number, which is incremented for large yet
  backwards compatible changes.  Code written for Django 1.6 will continue
  to work under Django 1.7. Exceptions to this rule will be listed in the
  release notes.

* ``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.

* Before a new minor release, we'll make alpha, beta, and 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``.

In git, each Django release will have a tag indicating its version number,
signed with the Django release key. Additionally, each release series has its
own branch, called ``stable/A.B.x``, 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>`.

.. glossary::

  Major release
    Major releases (1.0, 2.0, etc.) will happen very infrequently (think "years",
    not "months"), and may represent major, sweeping changes to Django.

  Minor release
    Minor release (1.5, 1.6, etc.) will happen roughly every nine months -- see
    `release process`_, below for details. These releases will contain new
    features, improvements to existing features, and such.

    .. _internal-release-deprecation-policy:

    A minor release may deprecate certain features from previous releases. If a
    feature is deprecated in version ``A.B``, it will continue to work in versions
    ``A.B`` and  ``A.B+1`` but raise warnings. It will be removed in version
    ``A.B+2``.

    So, for example, if we decided to start the deprecation of a function in
    Django 1.5:

    * Django 1.5 will contain a backwards-compatible replica of the function which
      will raise a ``PendingDeprecationWarning``. This warning is silent by
      default; you can turn on display of these warnings with the ``-Wd`` option
      of Python.

    * Django 1.6 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.

    * Django 1.7 will remove the feature outright.

  Micro release
    Micro releases (1.5.1, 1.6.2, 1.6.1, etc.) will be issued as needed, often to
    fix security issues.

    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."

.. _backwards-compatibility-policy:

Supported versions
==================

At any moment in time, Django's developer team will support a set of releases to
varying levels:

* The current development master will get new features and bug fixes
  requiring major refactoring.

* Patches applied to the master branch must also be applied to the last minor
  release, to be released as the next micro release, when they fix critical
  problems:

  * Security issues.

  * Data-loss bugs.

  * Crashing bugs.

  * Major functionality bugs in newly-introduced features.

  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 (release
  blockers).

* Security fixes will be applied to the current master and the previous two
  minor releases.

* Committers may choose to backport bugfixes at their own discretion,
  provided they do not introduce backwards incompatibilities.

* Documentation fixes generally will be more freely backported to the last
  release branch. That's because it's highly advantageous to have the docs for
  the last release be up-to-date and correct, and the risk of introducing
  regressions is much less of a concern.

As a concrete example, consider a moment in time halfway between the release of
Django 1.6 and 1.7. At this point in time:

* Features will be added to development master, to be released as Django 1.7.

* Critical bug fixes will be applied to the ``stable/1.6.x`` branch, and
  released as 1.6.1, 1.6.2, etc.

* Security fixes will be applied to ``master``, to the ``stable/1.6.x``
  branch, and to the ``stable/1.5.x`` branch. They will trigger the release of
  ``1.6.1``, ``1.5.1``, etc.

* Documentation fixes will be applied to master, and, if easily backported, to
  the ``1.6.x`` branch. Bugfixes may also be backported.
<commit_msg>Added a note about LTS releases.<commit_after>========================
Django's release process
========================

.. _official-releases:

Official releases
=================

Since version 1.0, Django's release numbering works as follows:

* Versions are numbered in the form ``A.B`` or ``A.B.C``.

* ``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.6 may break
  when we release Django 2.0.

* ``B`` is the *minor version* number, which is incremented for large yet
  backwards compatible changes.  Code written for Django 1.6 will continue
  to work under Django 1.7. Exceptions to this rule will be listed in the
  release notes.

* ``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.

* Before a new minor release, we'll make alpha, beta, and 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``.

In git, each Django release will have a tag indicating its version number,
signed with the Django release key. Additionally, each release series has its
own branch, called ``stable/A.B.x``, 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>`.

.. glossary::

  Major release
    Major releases (1.0, 2.0, etc.) will happen very infrequently (think "years",
    not "months"), and may represent major, sweeping changes to Django.

  Minor release
    Minor release (1.5, 1.6, etc.) will happen roughly every nine months -- see
    `release process`_, below for details. These releases will contain new
    features, improvements to existing features, and such.

    .. _internal-release-deprecation-policy:

    A minor release may deprecate certain features from previous releases. If a
    feature is deprecated in version ``A.B``, it will continue to work in versions
    ``A.B`` and  ``A.B+1`` but raise warnings. It will be removed in version
    ``A.B+2``.

    So, for example, if we decided to start the deprecation of a function in
    Django 1.5:

    * Django 1.5 will contain a backwards-compatible replica of the function which
      will raise a ``PendingDeprecationWarning``. This warning is silent by
      default; you can turn on display of these warnings with the ``-Wd`` option
      of Python.

    * Django 1.6 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.

    * Django 1.7 will remove the feature outright.

  Micro release
    Micro releases (1.5.1, 1.6.2, 1.6.1, etc.) will be issued as needed, often to
    fix security issues.

    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."

.. _backwards-compatibility-policy:

Supported versions
==================

At any moment in time, Django's developer team will support a set of releases to
varying levels:

* The current development master will get new features and bug fixes
  requiring major refactoring.

* Patches applied to the master branch must also be applied to the last minor
  release, to be released as the next micro release, when they fix critical
  problems:

  * Security issues.

  * Data-loss bugs.

  * Crashing bugs.

  * Major functionality bugs in newly-introduced features.

  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 (release
  blockers).

* Security fixes will be applied to the current master and the previous two
  minor releases.

* Committers may choose to backport bugfixes at their own discretion,
  provided they do not introduce backwards incompatibilities.

* Documentation fixes generally will be more freely backported to the last
  release branch. That's because it's highly advantageous to have the docs for
  the last release be up-to-date and correct, and the risk of introducing
  regressions is much less of a concern.

As a concrete example, consider a moment in time halfway between the release of
Django 1.6 and 1.7. At this point in time:

* Features will be added to development master, to be released as Django 1.7.

* Critical bug fixes will be applied to the ``stable/1.6.x`` branch, and
  released as 1.6.1, 1.6.2, etc.

* Security fixes will be applied to ``master``, to the ``stable/1.6.x``
  branch, and to the ``stable/1.5.x`` branch. They will trigger the release of
  ``1.6.1``, ``1.5.1``, etc.

* Documentation fixes will be applied to master, and, if easily backported, to
  the ``1.6.x`` branch. Bugfixes may also be backported.

.. _lts-releases:

Long-term support (LTS) releases
================================

Additionally, the Django team will occasionally designate certain releases
to be "Long-term support" (LTS) releases. LTS releases will get security fixes
applied for a guaranteed period of time, typically 3+ years, regardless of
the pace of releases afterwards.

The follow releases have been designated for long-term support:

    * Django 1.4, supported until at least March 2015.

{'fraction_non_alphanumeric': 0.08568848758465011, 'fraction_numerical': 0.01309255079006772, 'mean_word_length': 3.7192160204516402, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6868211', 'n_tokens_mistral': 3071, 'n_tokens_neox': 2862, 'n_words': 1555}