2
0

release-process.txt 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. .. _internals-release-process:
  2. ========================
  3. Django's release process
  4. ========================
  5. .. _official-releases:
  6. Official releases
  7. =================
  8. Django's release numbering works as follows:
  9. * Versions are numbered in the form ``A.B`` or ``A.B.C``.
  10. * ``A`` is the *major version* number, which is only incremented for major
  11. changes to Django, and these changes are not necessarily
  12. backwards-compatible. That is, code you wrote for Django 6.0 may break
  13. when we release Django 7.0.
  14. * ``B`` is the *minor version* number, which is incremented for large yet
  15. backwards compatible changes. Code written for Django 6.4 will continue
  16. to work under Django 6.5.
  17. * ``C`` is the *micro version* number which, is incremented for bug and
  18. security fixes. A new micro-release will always be 100%
  19. backwards-compatible with the previous micro-release.
  20. * In some cases, we'll make alpha, beta, or release candidate releases.
  21. These are of the form ``A.B alpha/beta/rc N``, which means the ``Nth``
  22. alpha/beta/release candidate of version ``A.B``.
  23. An exception to this version numbering scheme is the pre-1.0 Django code.
  24. There's no guarantee of backwards-compatibility until the 1.0 release.
  25. In Subversion, each Django release will be tagged under ``tags/releases``. If
  26. it's necessary to release a bug fix release or a security release that doesn't
  27. come from the trunk, we'll copy that tag to ``branches/releases`` to make the
  28. bug fix release.
  29. Major releases
  30. --------------
  31. Major releases (1.0, 2.0, etc.) will happen very infrequently (think "years",
  32. not "months"), and will probably represent major, sweeping changes to Django.
  33. Minor releases
  34. --------------
  35. Minor release (1.1, 1.2, etc.) will happen roughly every six months -- see
  36. `release process`_, below for details.
  37. .. _internal-release-deprecation-policy:
  38. These releases will contain new features, improvements to existing features, and
  39. such. A minor release may deprecate certain features from previous releases. If a
  40. feature in version ``A.B`` is deprecated, it will continue to work in version
  41. ``A.B+1``. In version ``A.B+2``, use of the feature will raise a
  42. ``PendingDeprecationWarning`` but will continue to work. Version ``A.B+3`` will
  43. remove the feature entirely.
  44. So, for example, if we decided to remove a function that existed in Django 1.0:
  45. * Django 1.1 will contain a backwards-compatible replica of the function
  46. which will raise a ``PendingDeprecationWarning``. This warning is silent
  47. by default; you need to explicitly turn on display of these warnings.
  48. * Django 1.2 will contain the backwards-compatible replica, but the warning
  49. will be promoted to a full-fledged ``DeprecationWarning``. This warning is
  50. *loud* by default, and will likely be quite annoying.
  51. * Django 1.3 will remove the feature outright.
  52. Micro releases
  53. --------------
  54. Micro releases (1.0.1, 1.0.2, 1.1.1, etc.) will be issued at least once half-way
  55. between minor releases, and probably more often as needed.
  56. These releases will always be 100% compatible with the associated minor release
  57. -- the answer to "should I upgrade to the latest micro release?" will always be
  58. "yes."
  59. Each minor release of Django will have a "release maintainer" appointed. This
  60. person will be responsible for making sure that bug fixes are applied to both
  61. trunk and the maintained micro-release branch. This person will also work with
  62. the release manager to decide when to release the micro releases.
  63. Supported versions
  64. ==================
  65. At any moment in time, Django's developer team will support a set of releases to
  66. varying levels:
  67. * The current development trunk will get new features and bug fixes
  68. requiring major refactoring.
  69. * All bug fixes applied to the trunk will also be applied to the last
  70. minor release, to be released as the next micro release.
  71. * Security fixes will be applied to the current trunk and the previous two
  72. minor releases.
  73. As a concrete example, consider a moment in time halfway between the release of
  74. Django 1.3 and 1.4. At this point in time:
  75. * Features will be added to development trunk, to be released as Django 1.4.
  76. * Bug fixes will be applied to a ``1.3.X`` branch, and released as 1.3.1,
  77. 1.3.2, etc.
  78. * Security releases will be applied to trunk, a ``1.3.X`` branch and a
  79. ``1.2.X`` branch. Security fixes will trigger the release of ``1.3.1``,
  80. ``1.2.1``, etc.
  81. .. _release-process:
  82. Release process
  83. ===============
  84. Django uses a time-based release schedule, with minor (i.e. 1.1, 1.2, etc.)
  85. releases every six months, or more, depending on features.
  86. After each previous release (and after a suitable cooling-off period of a week
  87. or two), the core development team will examine the landscape and announce a
  88. timeline for the next release. Most releases will be scheduled in the 6-9 month
  89. range, but if we have bigger features to development we might schedule a longer
  90. period to allow for more ambitious work.
  91. Release cycle
  92. -------------
  93. Each release cycle will be split into three periods, each lasting roughly
  94. one-third of the cycle:
  95. Phase one: feature proposal
  96. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  97. The first phase of the release process will be devoted to figuring out what
  98. features to include in the next version. This should include a good deal of
  99. preliminary work on those features -- working code trumps grand design.
  100. At the end of part one, the core developers will propose a feature list for the
  101. upcoming release. This will be broken into:
  102. * "Must-have": critical features that will delay the release if not finished
  103. * "Maybe" features: that will be pushed to the next release if not finished
  104. * "Not going to happen": features explicitly deferred to a later release.
  105. Anything that hasn't got at least some work done by the end of the first third
  106. isn't eligible for the next release; a design alone isn't sufficient.
  107. Phase two: development
  108. ~~~~~~~~~~~~~~~~~~~~~~
  109. The second third of the release schedule is the "heads-down" working period.
  110. Using the roadmap produced at the end of phase one, we'll all work very hard to
  111. get everything on it done.
  112. Longer release schedules will likely spend more than a third of the time in this
  113. phase.
  114. At the end of phase two, any unfinished "maybe" features will be postponed until
  115. the next release. Though it shouldn't happen, any "must-have" features will
  116. extend phase two, and thus postpone the final release.
  117. Phase two will culminate with an alpha release.
  118. Phase three: bugfixes
  119. ~~~~~~~~~~~~~~~~~~~~~
  120. The last third of a release is spent fixing bugs -- no new features will be
  121. accepted during this time. We'll release a beta release about halfway through,
  122. and an rc complete with string freeze two weeks before the end of the schedule.
  123. Bug-fix releases
  124. ----------------
  125. After a minor release (i.e 1.1), the previous release will go into bug-fix mode.
  126. A branch will be created of the form ``branches/releases/1.0.X`` to track
  127. bug-fixes to the previous release. When possible, bugs fixed on trunk must
  128. *also* be fixed on the bug-fix branch; this means that commits need to cleanly
  129. separate bug fixes from feature additions. The developer who commits a fix to
  130. trunk will be responsible for also applying the fix to the current bug-fix
  131. branch. Each bug-fix branch will have a maintainer who will work with the
  132. committers to keep them honest on backporting bug fixes.
  133. How this all fits together
  134. --------------------------
  135. Let's look at a hypothetical example for how this all first together. Imagine,
  136. if you will, a point about halfway between 1.1 and 1.2. At this point,
  137. development will be happening in a bunch of places:
  138. * On trunk, development towards 1.2 proceeds with small additions, bugs
  139. fixes, etc. being checked in daily.
  140. * On the branch "branches/releases/1.1.X", bug fixes found in the 1.1
  141. release are checked in as needed. At some point, this branch will be
  142. released as "1.1.1", "1.1.2", etc.
  143. * On the branch "branches/releases/1.0.X", security fixes are made if
  144. needed and released as "1.0.2", "1.0.3", etc.
  145. * On feature branches, development of major features is done. These
  146. branches will be merged into trunk before the end of phase two.