Skip to content

Commit 6ee4374

Browse files
committed
DOC: prepare for release
1 parent a061047 commit 6ee4374

File tree

5 files changed

+65
-47
lines changed

5 files changed

+65
-47
lines changed

Changelog

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ Abbreviated authors are:
3232
* JBP - Jean-Baptiste Poline
3333
* JT - Jonathan Taylor
3434

35+
* 0.4.2 (Saturday 17 February 2018)
36+
37+
Bugfix, refactoring and compatibility release.
38+
39+
* Fixes for compatibility with released versions of Sympy and Numpy,
40+
including some incorrect results from the Euler calculations;
41+
* Fixes for deprecated escape sequences in docstrings (thanks to Klaus
42+
Sembritzki);
43+
* Fixes for compatibility with Windows in various configurations, now
44+
tested with Appveyor builds;
45+
* Various continuous integration and doc build fixes;
46+
* The advent of Windows wheels on release - most credit to the Scipy folks
47+
for building Scipy on Windows.
48+
3549
* 0.4.1 (Friday 10 February 2017)
3650

3751
Bugfix, refactoring and compatibility release.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2006-2017, NIPY Developers
1+
Copyright (c) 2006-2018, NIPY Developers
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
# The master toctree document.
6363
master_doc = 'index'
6464

65-
# copyright = ':ref:`2005-2017, Neuroimaging in Python team.
65+
# copyright = ':ref:`2005-2018, Neuroimaging in Python team.
6666
# <nipy-software-license>`'
6767
copyright = '2005-2017, Neuroimaging in Python team'
6868

doc/devel/guidelines/make_release.rst

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ Release checklist
7575
for:
7676

7777
* https://nipy.bic.berkeley.edu/builders/nipy-examples-2.7
78-
* https://nipy.bic.berkeley.edu/builders/nipy-examples-3.4
78+
* https://nipy.bic.berkeley.edu/builders/nipy-examples-3.5
7979

8080
The matching outputs appear at:
8181

8282
* https://nipy.bic.berkeley.edu/nipy-examples-2.7
83-
* https://nipy.bic.berkeley.edu/nipy-examples-3.4
83+
* https://nipy.bic.berkeley.edu/nipy-examples-3.5
8484

8585
I use the following commands to get the output to my laptop and review with
8686
vim::
@@ -99,11 +99,11 @@ Release checklist
9999

100100
Likewise for::
101101

102-
PY_VER=3.4
102+
PY_VER=3.5
103103

104104
I also did a by-eye comparison between the 2.7 and 3.4 files with::
105105

106-
diff -r nipy-examples-2.7 nipy-examples-3.4 | less
106+
diff -r nipy-examples-2.7 nipy-examples-3.5 | less
107107

108108
* Do a final check on the `nipy buildbot`_
109109

@@ -156,6 +156,18 @@ Release checking - buildbots
156156
* Check the documentation doctests pass from
157157
http://nipy.bic.berkeley.edu/builders/nipy-doc-builder
158158

159+
* Build and test the Nipy wheels. See the `wheel builder README
160+
<https://github.com/MacPython/nipy-wheels>`_ for instructions. In summary,
161+
clone the wheel-building repo, edit the ``.travis.yml`` and ``appveyor.yml``
162+
text files (if present) with the branch or commit for the release, commit
163+
and then push back up to github. This will trigger a wheel build and test
164+
on OSX, Linux and Windows. Check the build has passed on on the Travis-CI
165+
interface at https://travis-ci.org/MacPython/nipy-wheels. You'll need commit
166+
privileges to the ``dipy-wheels`` repo; ask Matthew Brett or on the mailing
167+
list if you do not have them.
168+
169+
* The release should now be ready.
170+
159171
Doing the release
160172
=================
161173

@@ -166,6 +178,13 @@ Doing the release
166178

167179
make source-release
168180

181+
* For the wheel build / upload, follow the `wheel builder README`_
182+
instructions again. Edit the ``.travis.yml`` and ``appveyor.yml`` files (if
183+
present) to give the release tag to build. Check the build has passed on on
184+
the Travis-CI interface at https://travis-ci.org/MacPython/nipy-wheels. Now
185+
follow the instructions in the page above to download the built wheels to
186+
a local machine and upload to PyPI.
187+
169188
* Once everything looks good, you are ready to upload the source release to
170189
PyPi. See `setuptools intro`_. Make sure you have a file ``\$HOME/.pypirc``,
171190
of form::
@@ -178,27 +197,12 @@ Doing the release
178197
username:your.pypi.username
179198
password:your-password
180199

181-
[server-login]
182-
username:your.pypi.username
183-
password:your-password
184-
185200
* Once everything looks good, upload the source release to PyPi. See
186201
`setuptools intro`_::
187202

188203
python setup.py register
189-
python setup.py sdist --formats=gztar,zip upload
190-
191-
* Trigger binary builds for Windows from the buildbots. See builders
192-
``nipy-bdist32-26``, ``nipy-bdist32-27``, ``nipy-bdist32-32``. The ``exe``
193-
builds will appear in http://nipy.bic.berkeley.edu/nipy-dist . Download the
194-
builds and upload to pypi.
195-
196-
* Trigger binary builds for OSX from travis-ci:
197-
198-
* https://travis-ci.org/MacPython/nipy-wheels
199-
* https://github.com/MacPython/nipy-wheels
200-
201-
Upload the resulting wheels to pypi from http://wheels.scipy.org;
204+
python setup.py sdist
205+
twine upload sdist/nipy*.tar.gz
202206

203207
* Tag the release with tag of form ``0.5.0``::
204208

doc/users/installation.rst

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -128,47 +128,47 @@ Now :ref:`install-numpy-scipy`.
128128

129129
.. _install-numpy-scipy:
130130

131-
Install Numpy and Scipy on Linux or macOS
132-
-----------------------------------------
133-
134-
Now you've followed the instructions above, install Numpy and Scipy with:
135-
136-
.. code-block:: bash
137-
138-
pip3 install --user numpy scipy
139-
140131
Install Python 3, Pip, NumPy and Scipy on Windows
141132
-------------------------------------------------
142133

143134
It's worth saying here that very few scientific Python developers use Windows,
144135
so if you're thinking of making the switch to Linux or macOS, now you have
145136
another reason to do that.
146137

147-
That said, if you are installing on Windows, we recommend the Python 3 version
148-
of `Anaconda`_. This is a large installer that will install many scientific
149-
Python packages, as well as Python itself, and Pip, the package manager.
138+
Option 1: Anaconda
139+
^^^^^^^^^^^^^^^^^^
140+
141+
If you are installing on Windows, you might want to use the Python 3 version of
142+
`Anaconda`_. This is a large installer that will install many scientific
143+
Python packages, including NumPy and Scipy, as well as Python itself, and Pip,
144+
the package manager.
150145

151146
The machinery for the Anaconda bundle is not completely open-source, and is
152147
owned by a company, Continuum Analytics. If you would prefer to avoid using
153-
the Anaconda installer:
148+
the Anaconda installer, you can also use the Python standard Pip installer.
149+
150+
Option 2: Standard install
151+
^^^^^^^^^^^^^^^^^^^^^^^^^^
152+
153+
If you don't have Python / Pip, we recommend the instructions `here
154+
<http://docs.python-guide.org/en/latest/starting/install3/win>`_ to install
155+
them. You can also install Python / Pip via the Python 3 installer from the
156+
https://python.org website.
154157

155-
1. Download and install the Python 3 installer from the https://python.org website;
156-
2. Download and install Pip following the instructions at `install pip with
157-
get-pip.py`_;
158-
3. Download and install the `Visual C++ redistributable packages for VC++ 2015
159-
<https://www.microsoft.com/en-us/download/details.aspx?id=53587>`_;
160-
4. Download the following packages from Christoph Gohlke's `unofficial Windows
161-
binaries`_:
158+
If you already have an old Python installation, you don't have Pip, and you
159+
don't want to upgrade, you will need to download and install Pip following the
160+
instructions at `install pip with get-pip.py`_.
162161

163-
* numpy (MKL version);
164-
* scipy (MKL version);
162+
Now open a Cmd or Powershell terminal and run:
165163

166-
and install these packages with Pip.
164+
.. code-block:: bash
165+
166+
pip3 install --user numpy scipy
167167
168168
Install Nipy
169169
============
170170

171-
Now you have Pip:
171+
Now you have Python and Pip:
172172

173173
.. code-block:: bash
174174

0 commit comments

Comments
 (0)