Debian Codegraph @

docs/make_release.txt

raw
1 Short checklist and instructions how to make release
2 ====================================================
3
4 When you're ready to make release X.Y.Z you need to do
5 following steps.
6
7 Prepare code
8 ------------
9 1. Update ./NEWS.txt with descriptions of user-visible changes.
10 2. Update version numbers in following places:
11
12 * ./__init__.py: at the beginning of file::
13
14 version_info = (X, Y, Z, 'final', 0)
15
16 * ./setup.py: function setup() at the end of file, argument version::
17
18 version='X.Y.Z',
19
20 * ./installer/qbzr-setup.iss: at the beginning of file::
21
22 AppVerName=QBzr X.Y.Z
23 OutputBaseFilename=qbzr-setup-X.Y.Z
24
25 3. Commit this changes and tag the revision with label: release-X.Y.Z
26 4. Push the code to Launchpad
27
28
29 Prepare translations (optionally)
30 ---------------------------------
31 * It makes sense to download fresh translations from Launchpad just before
32 major releases, or on regular basis.
33 * To do so, go to translation page
34 https://translations.launchpad.net/qbzr
35 * Select series for which you want to get translations, usually it's ok
36 to go straight to trunk series:
37 https://translations.launchpad.net/qbzr/trunk/+translations
38 * And in Manual Synchronization section select "download"
39 https://translations.launchpad.net/qbzr/trunk/+export
40 You need PO format of files.
41 * After some time you'll get an e-mail with download link.
42
43 * Download that tarball and place it to the root of your qbzr development tree,
44 then execute command::
45
46 python setup.py import_po
47
48 * Inspect changes, run::
49
50 make mo
51
52 to ensure that everything is OK.
53
54 * If there are new translation files for new languages appear (not under
55 version control) - ensure you're `bzr add` them before commit
56 (NOTE in NEWS.txt about new translations are very welcome).
57 * Commit updated translations and push to Launchpad.
58 * You'd better update transaltions before starting release process.
59
60
61 Register release at Launchpad
62 -----------------------------
63 1. Make corresponding page for new release on Launchpad:
64
65 https://launchpad.net/qbzr/trunk/+addrelease
66
67 2. Put info about release from ./NEWS.txt to "Release notes" section.
68 You can leave Changelog section empty.
69
70
71 Build distribution files
72 ------------------------
73 Building + signing distribution files now possible to do in semi-automated way
74 using make utility.
75
76 Run command::
77
78 make release RELEASE=X.Y.Z
79
80 This command will create sources tarball (qbzr-X.Y.Z.tar.gz) and windows
81 universal installer (qbzr-setup-X.Y.Z.exe) and will sign both with GPG.
82
83 Upload tarball and installer with their gpg-signatures to Launchpad:
84
85 https://launchpad.net/qbzr/trunk/X.Y.Z/+adddownloadfile
86
87 Building distribution files under the hood
88 ******************************************
89
90 1. Make source code tarball::
91
92 bzr export --root=qbzr qbzr-X.Y.Z.tar.gz
93
94 The file qbzr-X.Y.Z.tar.gz will be created in tree root directory.
95 Sign this file with your GPG key::
96
97 gpg -ab qbzr-X.Y.Z.tar.gz
98
99 2. Build binary translations files::
100
101 python setup.py build_mo -f
102
103 3. Make Windows universal installer:
104
105 a. Run Inno Setup script compiler::
106
107 iscc installer/qbzr-setup.iss
108
109 This command will produce qbzr-setup-X.Y.Z.exe file in tree root directory.
110
111 b. Sign this file with your GPG key::
112
113 gpg -ab qbzr-setup-X.Y.Z.exe
114
115
116 Make announcement
117 -----------------
118 1. Send short e-mail with announcement to:
119 * <[email protected]>
120 * <[email protected]> (optionally for beta releases,
121 mandatory for final releases)
122 * <[email protected]>
123
124 2. Also make announcement about release via Launchpad RSS:
125
126 https://launchpad.net/qbzr/+announce
127
128
129 Finishing stuff at Launchpad
130 ----------------------------
131 * Mark all bugs targeted to X.Y.Z milestone as Fix Released.
132
133
134 Create deb packages with Launchpad PPA
135 --------------------------------------
136 ???