Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e97c21c

Browse files
committed
Clean up release doc
1 parent 78166dd commit e97c21c

File tree

1 file changed

+39
-108
lines changed

1 file changed

+39
-108
lines changed

doc/devel/guidelines/make_release.rst

Lines changed: 39 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ Release checklist
4545

4646
where ``0.2.0`` was the last release tag name.
4747

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.
5050

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``.
5353

5454
* Add any new authors to the ``AUTHORS`` file. Add any new entries to the
5555
``THANKS`` file.
@@ -66,9 +66,10 @@ Release checklist
6666
because this will be the output used by PyPI_
6767

6868
* 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.
7273

7374
* Check the examples in python 2 and python 3, by
7475
running something like::
@@ -79,51 +80,13 @@ Release checklist
7980
in a Python 2 and python 3 virtualenv. Review the output in (e.g.)
8081
``~/tmp/eg_logs``. The output file ``summary.txt`` will have the pass file
8182
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.
8484

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::
12287

12388
diff -r nipy-examples-2.7 nipy-examples-3.5 | less
12489

125-
* Do a final check on the `nipy buildbot`_
126-
12790
* If you have travis-ci_ building set up on your own fork
12891
of Nipy you might want to push the code in its current
12992
state to a branch that will build, e.g::
@@ -137,39 +100,6 @@ Release checklist
137100

138101
./tools/nicythize
139102

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.
173103
* Check the documentation doctests pass from
174104
http://nipy.bic.berkeley.edu/builders/nipy-doc-builder
175105

@@ -179,11 +109,9 @@ Release checking - buildbots
179109
text files (if present) with the branch or commit for the release, commit
180110
and then push back up to github. This will trigger a wheel build and test
181111
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.
187115

188116
Doing the release
189117
=================
@@ -227,40 +155,43 @@ Doing the release
227155

228156
make upload-html
229157

230-
* Set up maintenance / development branches
158+
* Set up maintenance / development branches
231159

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.
235163

236-
* Branch to maintenance::
164+
* Branch to maintenance::
237165

238-
git co -b maint/0.5.x
166+
git co -b maint/0.5.x
239167

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::
244172

245-
git push upstream maint/0.2.x --set-upstream
173+
git push upstream maint/0.2.x --set-upstream
246174

247-
* Start next development series::
175+
* Start next development series::
248176

249-
git co main-master
177+
git co main-master
250178

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'.
254183

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::
256186

257-
git merge -s ours maint/0.3.x
187+
git merge -s ours maint/0.3.x
258188

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.
261192

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``.
264195

265196
* Push tags::
266197

0 commit comments

Comments
 (0)