3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
1 |
Releasing Bazaar |
2 |
================ |
|
3 |
||
4 |
This document describes the processes for making and announcing a Bazaar |
|
3778.2.1
by Martin Pool
Updated release process documentation. |
5 |
release, and managing the release process. This is just one phase of the |
6 |
`overall development cycle <cycle.html>`_, but it's the most complex part. |
|
7 |
This document gives a checklist you can follow from start to end in one |
|
8 |
go. |
|
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
9 |
|
10 |
.. contents:: |
|
11 |
||
3383.2.4
by Martin Pool
Trim from the release instructions things that are now automated or unnecessary |
12 |
Preparing the tree for release |
13 |
------------------------------ |
|
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
14 |
|
15 |
.. Was previously at http://bazaar-vcs.org/ReleaseChecklist |
|
16 |
||
3464.3.6
by Martin Pool
Release process updates |
17 |
#. Make a local branch for preparing this release. (Only for the first |
18 |
release in a series, otherwise you should already have a branch.) :: |
|
19 |
||
20 |
bzr branch trunk prepare-1.6 |
|
21 |
||
22 |
#. Configure pqm-submit for this branch, with a section like this in |
|
23 |
``~/.bazaar/locations.conf``:: |
|
24 |
||
25 |
[/home/mbp/bzr/prepare-1.4] |
|
26 |
pqm_email = Canonical PQM <pqm@bazaar-vcs.org> |
|
27 |
submit_branch = http://bazaar-vcs.org/bzr/bzr.1.4 |
|
28 |
submit_to = bazaar@lists.canonical.com |
|
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
29 |
|
3464.3.1
by Martin Pool
Tweak release docs re version numbers |
30 |
#. In the release branch, update ``version_info`` in |
3778.2.1
by Martin Pool
Updated release process documentation. |
31 |
``./bzrlib/__init__.py``. Check the output of ``bzr --version``. |
32 |
||
33 |
#. Add the date and release number to ``./NEWS`` |
|
34 |
||
35 |
#. Summarize into one or two paragraphs what's new in this release. |
|
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
36 |
|
37 |
#. Commit these changes to the release branch, using a command like:: |
|
38 |
||
3464.3.6
by Martin Pool
Release process updates |
39 |
bzr commit -m "Release 0.12rc1." |
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
40 |
|
41 |
The diff before you commit will be something like:: |
|
42 |
||
43 |
=== modified file 'NEWS' |
|
44 |
--- NEWS 2006-10-23 13:11:17 +0000 |
|
45 |
+++ NEWS 2006-10-23 22:50:50 +0000 |
|
46 |
@@ -1,4 +1,4 @@ |
|
47 |
-IN DEVELOPMENT |
|
48 |
+bzr 0.12rc1 2006-10-23 |
|
49 |
||
50 |
IMPROVEMENTS: |
|
51 |
||
52 |
||
53 |
=== modified file 'bzrlib/__init__.py' |
|
54 |
--- bzrlib/__init__.py 2006-10-16 01:47:43 +0000 |
|
55 |
+++ bzrlib/__init__.py 2006-10-23 22:49:46 +0000 |
|
56 |
@@ -35,7 +35,7 @@ |
|
57 |
# Python version 2.0 is (2, 0, 0, 'final', 0)." Additionally we use a |
|
58 |
# releaselevel of 'dev' for unreleased under-development code. |
|
59 |
||
60 |
-version_info = (0, 12, 0, 'dev', 0) |
|
61 |
+version_info = (0, 12, 0, 'candidate', 1) |
|
62 |
||
63 |
if version_info[3] == 'final': |
|
64 |
version_string = '%d.%d.%d' % version_info[:3] |
|
65 |
||
3383.2.5
by Martin Pool
merge trunk |
66 |
#. Submit those changes to PQM for merge into the appropriate release |
3464.3.6
by Martin Pool
Release process updates |
67 |
branch:: |
68 |
||
69 |
bzr push |
|
70 |
bzr pqm-submit -m "(mbp) prepare 1.6" |
|
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
71 |
|
72 |
#. When PQM succeeds, pull down the master release branch. |
|
73 |
||
3464.3.6
by Martin Pool
Release process updates |
74 |
|
3383.2.4
by Martin Pool
Trim from the release instructions things that are now automated or unnecessary |
75 |
Making the source tarball |
76 |
------------------------- |
|
77 |
||
3408.1.3
by Martin Pool
More release process updates |
78 |
#. Change into the source directory and run :: |
3383.2.4
by Martin Pool
Trim from the release instructions things that are now automated or unnecessary |
79 |
|
80 |
make dist |
|
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
81 |
|
3408.1.3
by Martin Pool
More release process updates |
82 |
#. Now we'll try expanding this tarball and running the test suite |
83 |
to check for packaging problems:: |
|
84 |
||
85 |
make check-dist-tarball |
|
3383.2.5
by Martin Pool
merge trunk |
86 |
|
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
87 |
|
88 |
Publishing the release |
|
89 |
---------------------- |
|
90 |
||
91 |
Now you have the releasable product. The next step is making it |
|
92 |
available to the world. |
|
93 |
||
94 |
#. In <https://launchpad.net/bzr/> click the "Release series" for this |
|
95 |
series, to take you to e.g. <https://launchpad.net/bzr/1.1>. Then |
|
96 |
click "Register a release", and add information about this release. |
|
97 |
||
98 |
#. Within that release, upload the source tarball and the GPG signature. |
|
99 |
||
100 |
#. Link from http://bazaar-vcs.org/Download to the tarball and signature. |
|
101 |
||
3778.2.1
by Martin Pool
Updated release process documentation. |
102 |
#. Announce on the `Bazaar home page <http://bazaar-vcs.org/>`_. |
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
103 |
|
3778.2.1
by Martin Pool
Updated release process documentation. |
104 |
#. Check that the documentation for this release is available in |
105 |
<http://doc.bazaar-vcs.org>. It should be automatically build when the |
|
106 |
branch is created, by a cron script ``update-bzr-docs`` on |
|
107 |
``escudero``. |
|
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
108 |
|
109 |
||
110 |
Announcing the release |
|
111 |
---------------------- |
|
112 |
||
113 |
Now that the release is publicly available, tell people about it. |
|
114 |
||
3778.2.1
by Martin Pool
Updated release process documentation. |
115 |
#. Make an announcement mail. |
116 |
||
117 |
For release candidates, this is sent to the ``bazaar-announce`` and |
|
118 |
``bazaar`` lists. For final releases, it should also be cc'd to |
|
119 |
``info-gnu@gnu.org``, ``python-announce-list@python.org``, |
|
120 |
``bug-directory@gnu.org``. |
|
121 |
||
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
122 |
The announce mail will look something like this: |
123 |
||
3778.2.1
by Martin Pool
Updated release process documentation. |
124 |
| Subject: bzr x.yy released! |
125 |
| |
|
126 |
| <<Summary paragraph from news>> |
|
127 |
| |
|
128 |
| Thanks to everyone who contributed patches, suggestions, and |
|
129 |
| feedback. |
|
130 |
| |
|
131 |
| bzr x.yy is now available for download from |
|
132 |
| http://bazaar-vcs.org/Download as a source tarball; packages |
|
133 |
| for various systems will be available soon. |
|
134 |
| |
|
135 |
| <<NEWS section from this release back to the last major release>> |
|
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
136 |
|
137 |
#. Update the IRC channel topic. Use the ``/topic`` command to do this, ensuring the new topic text keeps the project name, web site link, etc. |
|
138 |
||
139 |
#. Announce on http://freshmeat.net/projects/bzr/ |
|
140 |
||
141 |
This should be done for both release candidates and final releases. If you do not have a Freshmeat account yet, ask one of the existing admins. |
|
142 |
||
3464.3.6
by Martin Pool
Release process updates |
143 |
#. Update http://en.wikipedia.org/wiki/Bzr -- this should be done for final releases but not for Release Candidates. |
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
144 |
|
145 |
#. Update the python package index: <http://pypi.python.org/pypi/bzr> - best |
|
146 |
done by running :: |
|
147 |
||
148 |
python setup.py register |
|
149 |
||
150 |
Remember to check the results afterwards. |
|
151 |
||
3408.1.3
by Martin Pool
More release process updates |
152 |
To be able to register the release you must create an account on |
153 |
<http://pypi.python.org/pypi> and have one of the existing owners of |
|
154 |
the project add you to the group. |
|
155 |
||
3383.2.3
by Martin Pool
Separate out and update the release manager instructions |
156 |
|
3383.2.5
by Martin Pool
merge trunk |
157 |
Merging the released code back to trunk |
158 |
--------------------------------------- |
|
159 |
||
160 |
Merge the release branch back into the trunk. Check that changes in NEWS |
|
161 |
were merged into the right sections. If it's not already done, advance |
|
162 |
the version number in ``bzr`` and ``bzrlib/__init__.py``. Submit this |
|
163 |
back into pqm for bzr.dev. |
|
164 |
||
165 |
||
3549.3.1
by Martin Pool
Updated instructions in packaging into the PPA |
166 |
See also |
167 |
-------- |
|
168 |
||
169 |
* `Packaging into the bzr PPA <ppa.html>`_ to make and publish Ubuntu |
|
170 |
packages. |
|
3778.2.1
by Martin Pool
Updated release process documentation. |
171 |
* `Bazaar Developer Document Catalog <index.html>`_ |
172 |
* `Development cycles <cycle.html>`_: things that happen during the cycle |
|
173 |
before the actual release. |
|
174 |
||
3464.3.6
by Martin Pool
Release process updates |
175 |
|
176 |
.. |
|
3464.3.8
by Martin Pool
Doc updates re PPAs |
177 |
vim: filetype=rst textwidth=74 ai shiftwidth=4 |