@@ -45,11 +45,11 @@ Release checklist
45
45
46
46
where ``0.2.0 `` was the last release tag name.
47
47
48
- Then manually go over ``git shortlog 0.2.0.. `` to make sure the release notes
49
- are as complete as possible and that every contributor was recognized.
48
+ Then manually go over ``git shortlog 0.2.0.. `` to make sure the release
49
+ notes are as complete as possible and that every contributor was recognized.
50
50
51
- * Use the opportunity to update the ``.mailmap `` file if there are any duplicate
52
- authors listed from ``git shortlog -ns ``.
51
+ * Use the opportunity to update the ``.mailmap `` file if there are any
52
+ duplicate authors listed from ``git shortlog -ns ``.
53
53
54
54
* Add any new authors to the ``AUTHORS `` file. Add any new entries to the
55
55
``THANKS `` file.
@@ -66,9 +66,10 @@ Release checklist
66
66
because this will be the output used by PyPI _
67
67
68
68
* Check the dependencies listed in ``nipy/info.py `` (e.g.
69
- ``NUMPY_MIN_VERSION ``) and in ``doc/users/installation.rst ``. They should
70
- at least match. Do they still hold? Make sure ``.travis.yml `` is testing
71
- these minimum dependencies specifically.
69
+ ``NUMPY_MIN_VERSION ``) and in ``requirements.txt `` and in
70
+ ``doc/users/installation.rst ``. They should at least match. Do they still
71
+ hold? Make sure ``.travis.yml `` is testing these minimum dependencies
72
+ specifically.
72
73
73
74
* Check the examples in python 2 and python 3, by
74
75
running something like::
@@ -79,51 +80,13 @@ Release checklist
79
80
in a Python 2 and python 3 virtualenv. Review the output in (e.g.)
80
81
``~/tmp/eg_logs ``. The output file ``summary.txt `` will have the pass file
81
82
printout that the ``run_log_examples.py `` script puts onto stdout while
82
- running. You can run the examples via the buildbot by triggering builds
83
- for:
83
+ running.
84
84
85
- * https://nipy.bic.berkeley.edu/builders/nipy-examples-2.7
86
- * https://nipy.bic.berkeley.edu/builders/nipy-examples-3.5
87
-
88
- The matching outputs appear at:
89
-
90
- * https://nipy.bic.berkeley.edu/nipy-examples-2.7
91
- * https://nipy.bic.berkeley.edu/nipy-examples-3.5
92
-
93
- I use the following commands to get the output to my laptop and review with
94
- vim::
95
-
96
- PY_VER=2.7
97
-
98
- Then::
99
-
100
-
101
- scp -r ${BB_SSH}:nibotmi/public_html/nipy-examples-${PY_VER} .
102
- cd nipy-examples-${PY_VER}
103
- # Delete empty files
104
- find . -size 0 -exec rm {} \;
105
- # Review stderr; :bd to close buffer once reviewed
106
- vim *.stderr
107
-
108
- Then::
109
-
110
- # Review stdout
111
- vim *.stdout
112
-
113
- Finally::
114
-
115
- cd ..
116
-
117
- Likewise for::
118
-
119
- PY_VER=3.5
120
-
121
- I also did a by-eye comparison between the 2.7 and 3.4 files with::
85
+ You might want to do a by-eye comparison between the 2.7 and 3.x files
86
+ with::
122
87
123
88
diff -r nipy-examples-2.7 nipy-examples-3.5 | less
124
89
125
- * Do a final check on the `nipy buildbot `_
126
-
127
90
* If you have travis-ci _ building set up on your own fork
128
91
of Nipy you might want to push the code in its current
129
92
state to a branch that will build, e.g::
@@ -137,39 +100,6 @@ Release checklist
137
100
138
101
./tools/nicythize
139
102
140
- Release checking - buildbots
141
- ============================
142
-
143
- * Check all the buildbots pass
144
- * Run the builder and review the possibly green output from
145
- http://nipy.bic.berkeley.edu/builders/nipy-release-checks
146
-
147
- This runs all of::
148
-
149
- make distclean
150
- python -m compileall .
151
- make sdist-tests
152
- make check-version-info
153
- make check-files
154
-
155
- * You need to review the outputs for errors; at the moment this buildbot builder
156
- does not check whether these tests passed or failed.
157
- * ``make check-version-info `` checks how the commit hash is stored in the
158
- installed files. You should see something like this::
159
-
160
- {'sys_version': '2.6.6 (r266:84374, Aug 31 2010, 11:00:51) \n[GCC 4.0.1 (Apple Inc. build 5493)]', 'commit_source': 'archive substitution', 'np_version': '1.5.0', 'commit_hash': '25b4125', 'pkg_path': '/var/folders/jg/jgfZ12ZXHwGSFKD85xLpLk+++TI/-Tmp-/tmpGPiD3E/pylib/nipy', 'sys_executable': '/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python', 'sys_platform': 'darwin'}
161
- /var/folders/jg/jgfZ12ZXHwGSFKD85xLpLk+++TI/-Tmp-/tmpGPiD3E/pylib/nipy/__init__.pyc
162
- {'sys_version': '2.6.6 (r266:84374, Aug 31 2010, 11:00:51) \n[GCC 4.0.1 (Apple Inc. build 5493)]', 'commit_source': 'installation', 'np_version': '1.5.0', 'commit_hash': '25b4125', 'pkg_path': '/var/folders/jg/jgfZ12ZXHwGSFKD85xLpLk+++TI/-Tmp-/tmpGPiD3E/pylib/nipy', 'sys_executable': '/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python', 'sys_platform': 'darwin'}
163
- /Users/mb312/dev_trees/nipy/nipy/__init__.pyc
164
- {'sys_version': '2.6.6 (r266:84374, Aug 31 2010, 11:00:51) \n[GCC 4.0.1 (Apple Inc. build 5493)]', 'commit_source': 'repository', 'np_version': '1.5.0', 'commit_hash': '25b4125', 'pkg_path': '/Users/mb312/dev_trees/nipy/nipy', 'sys_executable': '/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python', 'sys_platform': 'darwin'}
165
-
166
- * ``make check-files `` checks if the source distribution is picking up all the
167
- library and script files. Look for output at the end about missed files, such
168
- as::
169
-
170
- Missed script files: /Users/mb312/dev_trees/nipy/bin/nib-dicomfs, /Users/mb312/dev_trees/nipy/bin/nifti1_diagnose.py
171
-
172
- Fix ``setup.py `` to carry across any files that should be in the distribution.
173
103
* Check the documentation doctests pass from
174
104
http://nipy.bic.berkeley.edu/builders/nipy-doc-builder
175
105
@@ -179,11 +109,9 @@ Release checking - buildbots
179
109
text files (if present) with the branch or commit for the release, commit
180
110
and then push back up to github. This will trigger a wheel build and test
181
111
on OSX, Linux and Windows. Check the build has passed on on the Travis-CI
182
- interface at https://travis-ci.org/MacPython/nipy-wheels. You'll need commit
183
- privileges to the ``dipy-wheels `` repo; ask Matthew Brett or on the mailing
184
- list if you do not have them.
185
-
186
- * The release should now be ready.
112
+ interface at https://travis-ci.org/MacPython/nipy-wheels. You'll need
113
+ commit privileges to the ``nipy-wheels `` repo; ask Matthew Brett or on the
114
+ mailing list if you do not have them.
187
115
188
116
Doing the release
189
117
=================
@@ -227,40 +155,43 @@ Doing the release
227
155
228
156
make upload-html
229
157
230
- * Set up maintenance / development branches
158
+ * Set up maintenance / development branches
231
159
232
- If this is this is a full release you need to set up two branches, one for
233
- further substantial development (often called 'trunk') and another for
234
- maintenance releases.
160
+ If this is this is a full release you need to set up two branches, one for
161
+ further substantial development (often called 'trunk') and another for
162
+ maintenance releases.
235
163
236
- * Branch to maintenance::
164
+ * Branch to maintenance::
237
165
238
- git co -b maint/0.5.x
166
+ git co -b maint/0.5.x
239
167
240
- Set ``_version_extra`` back to ``.dev `` and bump ``_version_micro`` by 1.
241
- Thus the maintenance series will have version numbers like - say - '0.5.1.dev'
242
- until the next maintenance release - say '0.5.1'. Commit. Don't forget to
243
- push upstream with something like::
168
+ Set ``_version_extra`` back to ``.dev1 `` and bump ``_version_micro`` by
169
+ 1. Thus the maintenance series will have version numbers like - say
170
+ - '0.5.1.dev1' until the next maintenance release - say '0.5.1'.
171
+ Commit. Don't forget to push upstream with something like::
244
172
245
- git push upstream maint/0.2.x --set-upstream
173
+ git push upstream maint/0.2.x --set-upstream
246
174
247
- * Start next development series::
175
+ * Start next development series::
248
176
249
- git co main-master
177
+ git co main-master
250
178
251
- then restore ``.dev`` to ``_version_extra``, and bump ``_version_minor`` by 1.
252
- Thus the development series ('trunk') will have a version number here of
253
- '0.3.0.dev' and the next full release will be '0.3.0'.
179
+ then restore ``.dev`` to ``_version_extra``, and bump
180
+ ``_version_minor`` by 1. Thus the development series ('trunk') will
181
+ have a version number here of '0.3.0.dev' and the next full release
182
+ will be '0.3.0'.
254
183
255
- * Merge ``-s ours `` the version number changes from the maint release, e.g::
184
+ * Merge ``-s ours `` the version number changes from the maint release,
185
+ e.g::
256
186
257
- git merge -s ours maint/0.3.x
187
+ git merge -s ours maint/0.3.x
258
188
259
- This marks the version number changes commit as merged, so we can merge any
260
- changes we need from the maintenance branch without merge conflicts.
189
+ This marks the version number changes commit as merged, so we can
190
+ merge any changes we need from the maintenance branch without merge
191
+ conflicts.
261
192
262
- If this is just a maintenance release from ``maint/0.2.x `` or similar, just
263
- tag and set the version number to - say - ``0.2.1.dev ``.
193
+ If this is just a maintenance release from ``maint/0.2.x `` or similar, just
194
+ tag and set the version number to - say - ``0.2.1.dev ``.
264
195
265
196
* Push tags::
266
197
0 commit comments