1 Here are the steps to follow to create a new notmuch release.
3 These steps assume that a process (not described here) has already
4 been followed to determine the features and bug fixes to be included
5 in a release, and that adequate testing by the community has already
6 been performed. The little bit of testing performed here is a safety
7 check, and not a substitute for wider testing.
9 OK, so the code to be released is present and committed to your git
10 repository. From here, there are just a few steps to release:
12 1) Verify that the NEWS file is up to date.
14 Read through the entry at the top of the NEWS file and see if
15 you are aware of any major features recently added that are
16 not mentioned there. If so, please add them, (and ask the
17 authors of the commits to update NEWS in the future).
19 2) Verify that the library version in lib/Makefile.local is correct
21 See the instructions there for how to increment it.
23 The version should have been updated with any commits that
24 added API, but do check that that is the case. The command
25 below can be useful for inspecting header-file changes since
28 git diff X.Y..HEAD -- lib/notmuch.h
30 Note: We currently don't plan to increment
31 LIBNOTMUCH_VERSION_MAJOR beyond 1, so if there *are*
32 incompatible changes to the library interface, then
33 stop. Don't release. Figure out the plan on the notmuch
36 Commit this change, if any.
38 3) Update the debian/libnotmuch1.symbols file
40 If the library version changed at all (step 2) it probably
41 means that symbols have changed/been added, in which case the
42 debian symbols file also needs to be updated:
44 dpkg-buildpackage -uc -us
45 dpkg-gensymbols -plibnotmuch1 | patch -p0
47 Carefully review the changes to debian/libnotmuch1.symbols to
48 make sure there are no unexpected changes.
50 Commit this change, if any.
52 4) Upgrade the version in the file "version"
54 The scheme for the release number is as follows:
56 A major milestone in usability causes an increase in the major
57 number, yielding a two-component version with a minor number
58 of 0, (such as "1.0" or "2.0").
60 Otherwise, releases with changes in features cause an increase
61 in the minor number, yielding a two-component version, (such
64 Finally, releases that do not change "features" but are merely
65 bug fixes either increase the micro number or add it (starting
66 at ".1" if not present). So a bug-fix release from "1.0" would
67 be "1.0.1" and a subsequent bug-fix release would be "1.0.2"
72 5) Create an entry for the new release in debian/changelog
74 The syntax of this file is tightly restricted, but the
75 available emacs mode (see the dpkg-dev-el package) helps.
76 The entries here will be the Debian-relevant single-line
77 description of changes from the NEWS entry. And the version
78 must match the version in the next step.
82 XXX: It would be great if this step were automated as part of
83 release, (taking entries from NEWS and the version from the
84 version file, and creating a new commit, etc.)
86 6) Run "make release" which will perform the following steps.
88 Note: If any problem occurs during the process, (such as a lintian
89 warning that you decide should be fixed), you can abort at the
90 prompt for your GPG passphrase and nothing will have been uploaded
93 * Ensure that the version consists only of digits and periods
94 * Ensure that version and debian/changelog have the same version
95 * Verify that the source tree is clean
96 * Compile the current notmuch code (aborting release if it fails)
97 * Run the notmuch test suite (aborting release if it fails)
98 * Compile a Debian package
99 * Copy the tar file from what was made for Debian package
100 * Generate a .sha1 sum file for the tar file
101 * Sign the sha1sum using your GPG setup (asks for your GPG password)
102 * Check that no release exists with the current version
103 * scp the three files to appear on http://notmuchmail.org/releases
104 * Create a LATEST-notmuch-version file (after deleting any old one)
105 * Place local copies of the tar, sha1, and gpg files into releases
106 * Upload the Debian package
107 * Place a local copy of the Debian package files in releases
108 * Tag the entire source tree with a tag of the form X.Y.Z, and sign
109 the tag with your GPG key (asks for your GPG password, and you
110 may need to set GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL to match
111 your public-key's setting or this fails.)
113 * Provide some text for the release announcement (see below).
115 7) Send a message to notmuch@notmuchmail.org to announce the release.
117 Use the text provided from "make release" above, (if for some
118 reason you lose this message, "make release-message" prints