Skip to content

Commit 9a04df3

Browse files
committed
fix: resolved conflict
2 parents e2a6083 + 0d0d73a commit 9a04df3

File tree

1,273 files changed

+150938
-19444
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,273 files changed

+150938
-19444
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/nipype/build
66
/nipype/nipype.egg-info
77
/doc/_build
8+
/doc/preproc
89
/doc/users/examples
910
/doc/api/generated
1011
*.pyc
@@ -14,3 +15,13 @@
1415
.pydevproject
1516
.idea/
1617
/documentation.zip
18+
.DS_Store
19+
nipype/testing/data/von-ray_errmap.nii.gz
20+
nipype/testing/data/von_errmap.nii.gz
21+
crash*.pklz
22+
.coverage
23+
htmlcov/
24+
__pycache__/
25+
*~
26+
.ipynb_checkpoints/
27+
.ruby-version

.mailmap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Cindee Madison <[email protected]> cindeem
44
Chris Filo Gorgolewski <[email protected]> filo <filo@filo-Precision-M6500>
55
Chris Filo Gorgolewski <[email protected]> Krzysztof Gorgolewski <[email protected]>
66
Erik Ziegler <[email protected]> erikz <[email protected]>
7-
Michael Waskom <[email protected]> mwaskom <[email protected]> Michael Waskom <[email protected]> mwaskom <[email protected]>
7+
Michael Waskom <[email protected]> mwaskom <[email protected]> Michael Waskom <[email protected]> mwaskom <[email protected]>
88
Gael Varoquaux <[email protected]> GaelVaroquaux
99
Gael Varoquaux <[email protected]> GaelVaroquaux <[email protected]>
1010
Daniel Ginsburg <[email protected]> danginsburg <[email protected]>

.noserc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[nosetests]
2+
verbosity=3
3+
4+
with-coverage=1
5+
cover-branches=1
6+
cover-xml=1
7+
cover-xml-file=./coverage.xml
8+
cover-min-percentage=50
9+
10+
11+
with-xunit=1

.travis.yml

Lines changed: 64 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,72 @@
11
cache:
2-
- apt
2+
- apt
33
language: python
44
python:
5-
- 2.7
5+
- 2.7
6+
- 3.4
7+
- 3.5
68
env:
7-
- INSTALL_DEB_DEPENDECIES=true
8-
- INSTALL_DEB_DEPENDECIES=false
9-
# Setup anaconda
9+
- INSTALL_DEB_DEPENDECIES=true
10+
- INSTALL_DEB_DEPENDECIES=false
1011
before_install:
11-
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.6.0-Linux-x86_64.sh -O miniconda.sh; fi
12-
- chmod +x miniconda.sh
13-
- ./miniconda.sh -b
14-
- export PATH=/home/travis/miniconda/bin:$PATH
15-
- if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi
16-
- if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi
17-
- if $INSTALL_DEB_DEPENDECIES; then bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh); fi
18-
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq --no-install-recommends fsl afni elastix; fi
19-
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq fsl-atlases; fi
20-
- if $INSTALL_DEB_DEPENDECIES; then source /etc/fsl/fsl.sh; fi
21-
22-
# Install packages
12+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
13+
-O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
14+
-O miniconda.sh; fi
15+
- chmod +x miniconda.sh
16+
- "./miniconda.sh -b"
17+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then export PATH=/home/travis/miniconda2/bin:$PATH; else export PATH=/home/travis/miniconda3/bin:$PATH; fi
18+
- if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi
19+
- if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi
20+
- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
21+
- sudo apt-get update
22+
- sudo apt-get install xvfb
23+
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq --no-install-recommends
24+
fsl afni elastix; fi
25+
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq fsl-atlases;
26+
fi
27+
- if $INSTALL_DEB_DEPENDECIES; then source /etc/fsl/fsl.sh; fi
28+
- if $INSTALL_DEB_DEPENDECIES; then source /etc/afni/afni.sh; fi
29+
- export FSLOUTPUTTYPE=NIFTI_GZ
30+
# Install vtk and fix numpy installation problem
31+
# Fix numpy problem: https://github.com/enthought/enable/issues/34#issuecomment-2029381
32+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then travis_retry sudo apt-get install -qq libx11-dev swig;
33+
echo '[x11]' >> $HOME/.numpy-site.cfg;
34+
echo 'library_dirs = /usr/lib64:/usr/lib:/usr/lib/x86_64-linux-gnu' >> $HOME/.numpy-site.cfg;
35+
echo 'include_dirs = /usr/include:/usr/include/X11' >> $HOME/.numpy-site.cfg;
36+
fi
2337
install:
24-
- conda update --yes conda
25-
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
26-
- source activate testenv
27-
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install ordereddict; fi
28-
- conda install --yes numpy scipy nose traits networkx dateutil
29-
- pip install nibabel --use-mirrors
30-
- pip install python-coveralls --use-mirrors
31-
- pip install nose-cov --use-mirrors
32-
- pip install https://github.com/RDFLib/rdflib/archive/master.zip
33-
- pip install https://github.com/trungdong/prov/archive/rdf.zip
34-
- python setup.py install
35-
36-
# Run test
38+
- sudo apt-get install fusefat
39+
- conda update --yes conda
40+
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
41+
- source activate testenv
42+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install ordereddict; fi
43+
- conda install --yes numpy scipy nose networkx python-dateutil
44+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes traits; else pip install traits; fi
45+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes vtk; fi
46+
- pip install python-coveralls
47+
- pip install nose-cov
48+
# Add tvtk (PIL is required by blockcanvas)
49+
# Install mayavi (see https://github.com/enthought/mayavi/issues/271)
50+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
51+
pip install http://effbot.org/downloads/Imaging-1.1.7.tar.gz;
52+
pip install -e git+https://github.com/enthought/etsdevtools.git#egg=etsdevtools;
53+
pip install -e git+https://github.com/enthought/blockcanvas.git#egg=blockcanvas;
54+
pip install -e git+https://github.com/enthought/etsproxy.git#egg=etsproxy;
55+
pip install https://github.com/dmsurti/mayavi/archive/4d4aaf315a29d6a86707dd95149e27d9ed2225bf.zip;
56+
pip install -e git+https://github.com/enthought/ets.git#egg=ets;
57+
fi
58+
- pip install -e .
3759
script:
38-
- nosetests --with-doctest --with-cov --cov nipype --cov-config .coveragerc --logging-level=INFO
39-
40-
# Calculate coverage
60+
- python -W once:FSL:UserWarning:nipype `which nosetests` --with-doctest --with-cov --cover-package nipype --cov-config .coveragerc --logging-level=DEBUG --verbosity=3
4161
after_success:
42-
- coveralls --config_file .coveragerc
62+
- coveralls --config_file .coveragerc
63+
deploy:
64+
provider: pypi
65+
user: satra
66+
password:
67+
secure: OCO0FXb4f+pH4Uw7zWCIRp3qOJ1t7rhky4K8MjNU8tyVCJgd6O/Bv8GJgceS0LktPodlAAjB8SxAhTORPAQZ1D/44PJYy3NQIisvej1zjLpaA9TEGfl6W7MqhDpRyMHW+cnSi/n84SAmdr+Z4vOxScDHdwr13EPmGyOIlHMAGnE=
68+
on:
69+
tags: true
70+
repo: nipy/nipype
71+
branch: master
72+
distributions: "sdist bdist_wheel"

CHANGES

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,79 @@
1-
Next release
1+
Release 0.12.0-rc1 (April 20, 2016)
22
============
33

4+
* FIX: Selecting "gamma" in FSL Level1Design now does what the name says (https://github.com/nipy/nipype/pull/1500)
5+
* ENH: Added grad_dev input to fsl.dti.bedpostx5 interface(https://github.com/nipy/nipype/pull/1493)
6+
* ENH: ResourceMultiProc plugin to support resource allocation (https://github.com/nipy/nipype/pull/1372)
7+
* ENH: Added dcm2niix interface (https://github.com/nipy/nipype/pull/1435)
8+
* ENH: Add nipype_crash_search command (https://github.com/nipy/nipype/pull/1422)
9+
* ENH: Created interface for BrainSuite Cortical Surface Extraction command line tools (https://github.com/nipy/nipype/pull/1305)
10+
* FIX: job execution on systems/approaches where locale is undefined (https://github.com/nipy/nipype/pull/1401)
11+
* FIX: Clean up byte/unicode issues using subprocess (https://github.com/nipy/nipype/pull/1394)
12+
* FIX: Prevent crash when tvtk is loaded - ETS_TOOLKIT=null (https://github.com/nipy/nipype/pull/973)
13+
* ENH: New interfaces in dipy: RESTORE, EstimateResponseSH, CSD and StreamlineTractography
14+
(https://github.com/nipy/nipype/pull/1090)
15+
* ENH: Added interfaces of AFNI (https://github.com/nipy/nipype/pull/1360,
16+
https://github.com/nipy/nipype/pull/1361, https://github.com/nipy/nipype/pull/1382)
17+
* ENH: Provides a Nipype wrapper for antsJointFusion (https://github.com/nipy/nipype/pull/1351)
18+
* ENH: Added support for PETPVC (https://github.com/nipy/nipype/pull/1335)
19+
* ENH: Merge S3DataSink into DataSink, added AWS documentation (https://github.com/nipy/nipype/pull/1316)
20+
* TST: Cache APT in CircleCI (https://github.com/nipy/nipype/pull/1333)
21+
* ENH: Add new flags to the BRAINSABC for new features (https://github.com/nipy/nipype/pull/1322)
22+
* ENH: Provides a Nipype wrapper for ANTs DenoiseImage (https://github.com/nipy/nipype/pull/1291)
23+
* FIX: Minor bugfix logging hash differences (https://github.com/nipy/nipype/pull/1298)
24+
* FIX: Use released Prov python library (https://github.com/nipy/nipype/pull/1279)
25+
* ENH: Support for Python 3 (https://github.com/nipy/nipype/pull/1221)
26+
* FIX: VTK version check missing when using tvtk (https://github.com/nipy/nipype/pull/1219)
27+
* ENH: Added an OAR scheduler plugin (https://github.com/nipy/nipype/pull/1259)
28+
* ENH: New ANTs interface: antsBrainExtraction (https://github.com/nipy/nipype/pull/1231)
29+
* API: Default model level for the bedpostx workflow has been set to "2" following FSL 5.0.9 lead
30+
* ENH: New interfaces for interacting with AWS S3: S3DataSink and S3DataGrabber (https://github.com/nipy/nipype/pull/1201)
31+
* ENH: Interfaces for MINC tools (https://github.com/nipy/nipype/pull/1304)
32+
* FIX: Use realpath to determine hard link source (https://github.com/nipy/nipype/pull/1388)
33+
* FIX: Correct linking/copying fallback behavior (https://github.com/nipy/nipype/pull/1391)
34+
* ENH: Nipype workflow and interfaces for FreeSurfer's recon-all (https://github.com/nipy/nipype/pull/1326)
35+
* FIX: Permit relative path for concatenated_file input to Concatenate() (https://github.com/nipy/nipype/pull/1411)
36+
* ENH: Makes ReconAll workflow backwards compatible with FreeSurfer 5.3.0 (https://github.com/nipy/nipype/pull/1434)
37+
* ENH: Added interfaces for AFNI 3dDegreeCentrality, 3dECM, 3dLFCD, 3dClipLevel, 3dmask_tool, and 3dSeg
38+
(https://github.com/nipy/nipype/pull/1460)
39+
40+
Release 0.11.0 (September 15, 2015)
41+
============
42+
43+
* API: Change how hash values are computed (https://github.com/nipy/nipype/pull/1174)
44+
* ENH: New algorithm: mesh.WarpPoints applies displacements fields to point sets
45+
(https://github.com/nipy/nipype/pull/889).
46+
* ENH: New interfaces for MRTrix3 (https://github.com/nipy/nipype/pull/1126)
47+
* ENH: New option in afni.3dRefit - zdel, ydel, zdel etc. (https://github.com/nipy/nipype/pull/1079)
48+
* FIX: ants.Registration composite transform outputs are no longer returned as lists (https://github.com/nipy/nipype/pull/1183)
49+
* BUG: ANTs Registration interface failed with multi-modal inputs
50+
(https://github.com/nipy/nipype/pull/1176) (https://github.com/nipy/nipype/issues/1175)
51+
* ENH: dipy.TrackDensityMap interface now accepts a reference image (https://github.com/nipy/nipype/pull/1091)
52+
* FIX: Bug in XFibres5 (https://github.com/nipy/nipype/pull/1168)
53+
* ENH: Attempt to use hard links for data sink.
54+
(https://github.com/nipy/nipype/pull/1161)
55+
* FIX: Updates to SGE Plugins
56+
(https://github.com/nipy/nipype/pull/1129)
57+
* ENH: Add ants JointFusion() node with testing
58+
(https://github.com/nipy/nipype/pull/1160)
59+
* ENH: Add --float option for antsRegistration calls
60+
(https://github.com/nipy/nipype/pull/1159)
61+
* ENH: Added interface to simulate DWIs using the multi-tensor model
62+
(https://github.com/nipy/nipype/pull/1085)
63+
* ENH: New interface for FSL fslcpgeom utility (https://github.com/nipy/nipype/pull/1152)
64+
* ENH: Added SLURMGraph plugin for submitting jobs to SLURM with dependencies (https://github.com/nipy/nipype/pull/1136)
65+
* FIX: Enable absolute path definitions in DCMStack (https://github.com/nipy/nipype/pull/1089,
66+
replaced by https://github.com/nipy/nipype/pull/1093)
67+
* ENH: New mesh.MeshWarpMaths to operate on surface-defined warpings
68+
(https://github.com/nipy/nipype/pull/1016)
69+
* FIX: Refactor P2PDistance, change name to ComputeMeshWarp, add regression tests,
70+
fix bug in area weighted distance, and added optimizations
71+
(https://github.com/nipy/nipype/pull/1016)
72+
* ENH: Add an option not to resubmit Nodes that finished running when using SGEGraph (https://github.com/nipy/nipype/pull/1002)
73+
* FIX: FUGUE is now properly listing outputs. (https://github.com/nipy/nipype/pull/978)
474
* ENH: Improved FieldMap-Based (FMB) workflow for correction of susceptibility distortions in EPI seqs.
575
(https://github.com/nipy/nipype/pull/1019)
76+
* FIX: In the FSLXcommand _list_outputs function fixed for loop range (https://github.com/nipy/nipype/pull/1071)
677
* ENH: Dropped support for now 7 years old Python 2.6 (https://github.com/nipy/nipype/pull/1069)
778
* FIX: terminal_output is not mandatory anymore (https://github.com/nipy/nipype/pull/1070)
879
* ENH: Added "nipype_cmd" tool for running interfaces from the command line (https://github.com/nipy/nipype/pull/795)
@@ -42,6 +113,15 @@ Next release
42113
* ENH: Usability improvements in cluster environments (https://github.com/nipy/nipype/pull/1025)
43114
* ENH: ANTs JointFusion() (https://github.com/nipy/nipype/pull/1042)
44115
* ENH: Added csvReader() utility (https://github.com/nipy/nipype/pull/1044)
116+
* FIX: typo in nipype.interfaces.freesurfer.utils.py Tkregister2 (https://github.com/nipy/nipype/pull/1083)
117+
* FIX: SSHDataGrabber outputs now return full path to the grabbed/downloaded files. (https://github.com/nipy/nipype/pull/1086)
118+
* FIX: Add QA output for TSNR to resting workflow (https://github.com/nipy/nipype/pull/1088)
119+
* FIX: Change N4BiasFieldCorrection to use short tag for dimensionality (backward compatible) (https://github.com/nipy/nipype/pull/1096)
120+
* ENH: Added -newgrid input to Warp in AFNI (3dWarp wrapper) (https://github.com/nipy/nipype/pull/1128)
121+
* FIX: Fixed AFNI Copy interface to use positional inputs as required (https://github.com/nipy/nipype/pull/1131)
122+
* ENH: Added a check in Dcm2nii to check if nipype created the config.ini file and remove if true (https://github.com/nipy/nipype/pull/1132)
123+
* ENH: Use a while loop to wait for Xvfb (up to a max wait time "xvfb_max_wait" in config file, default 10)
124+
(https://github.com/nipy/nipype/pull/1142)
45125

46126
Release 0.10.0 (October 10, 2014)
47127
============

CONTRIBUTING.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@
1010
* Pull Requests should be tested, if feasible:
1111
- bugfixes should include regression tests
1212
- new behavior should at least get minimal exercise
13-
* Use a descriptive prefix for your PR: ENH, FIX, TST, DOC, STY, REF (refactor), WIP (Work in progress)
14-
* After submiting the PR, include an update to the CHANGES file: prefix: description (URL of pull request)
13+
* Use a descriptive prefix for your PR: ENH (enhancement), FIX, TST, DOC, STY, REF (refactor), WIP (Work in progress)
14+
* After submitting the PR, include an update to the CHANGES file: prefix: description (URL of pull request)
1515
* `make specs`
1616
* do: `make check-before-commit` before submitting the PR. This will require you to either install or be in developer mode with: `python setup.py install/develop`.
17+
* In general, do not catch exceptions without good reason.
18+
* catching non-fatal exceptions.
19+
Log the exception as a warning.
20+
* adding more information about what may have caused the error.
21+
Raise a new exception using ``raise_from(NewException("message"), oldException)`` from ``future``.
22+
Do not log this, as it creates redundant/confusing logs.
1723

1824
## Contributing issues
1925

2026
When opening a new Issue, please take the following steps:
2127

22-
1. Search GitHub and/or [Neurostars](neurostars.org) for your issue to avoid duplicate reports.
28+
1. Search GitHub and/or [Neurostars](http://neurostars.org) for your issue to avoid duplicate reports.
2329
Keyword searches for your error messages are most helpful.
2430
2. If possible, try updating to master and reproducing your issue,
2531
because we may have already fixed it.

LICENSE

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,15 @@
1-
Copyright (c) 2009-2014, NIPY Developers
2-
All rights reserved.
1+
Copyright (c) 2009-2016, Nipype developers
32

4-
Redistribution and use in source and binary forms, with or without
5-
modification, are permitted provided that the following conditions are
6-
met:
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
76

8-
* Redistributions of source code must retain the above copyright
9-
notice, this list of conditions and the following disclaimer.
7+
http://www.apache.org/licenses/LICENSE-2.0
108

11-
* Redistributions in binary form must reproduce the above
12-
copyright notice, this list of conditions and the following
13-
disclaimer in the documentation and/or other materials provided
14-
with the distribution.
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
1514

16-
* Neither the name of the NIPY Developers nor the names of any
17-
contributors may be used to endorse or promote products derived
18-
from this software without specific prior written permission.
19-
20-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15+
Prior to release 0.12, Nipype was licensed under a BSD license.

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ include doc/documentation.zip
1010
include nipype/COMMIT_INFO.txt
1111

1212
recursive-include doc *
13-
recursive-include matlabscripts *
1413
recursive-include tools *

Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
PYTHON ?= python
66
NOSETESTS ?= nosetests
77

8+
.PHONY: zipdoc sdist egg upload_to_pypi trailing-spaces clean-pyc clean-so clean-build clean-ctags clean in inplace test-code test-doc test-coverage test html specs check-before-commit check
9+
810
zipdoc: html
911
zip documentation.zip doc/_build/html
1012

@@ -13,8 +15,6 @@ sdist: zipdoc
1315
python setup.py sdist
1416
@echo "Done building source distribution."
1517
# XXX copy documentation.zip to dist directory.
16-
# XXX Somewhere the doc/_build directory is removed and causes
17-
# this script to fail.
1818

1919
egg: zipdoc
2020
@echo "Building egg..."
@@ -26,7 +26,7 @@ upload_to_pypi: zipdoc
2626
python setup.py sdist --formats=zip,gztar upload
2727

2828
trailing-spaces:
29-
find . -name "*.py" | xargs perl -pi -e 's/[ \t]*$$//'
29+
find . -name "*[.py|.rst]" -type f | xargs perl -pi -e 's/[ \t]*$$//'
3030
@echo "Reverting test_docparse"
3131
git checkout nipype/utils/tests/test_docparse.py
3232

@@ -43,7 +43,10 @@ clean-build:
4343
clean-ctags:
4444
rm -f tags
4545

46-
clean: clean-build clean-pyc clean-so clean-ctags
46+
clean-doc:
47+
rm -rf doc/_build
48+
49+
clean: clean-build clean-pyc clean-so clean-ctags clean-doc
4750

4851
in: inplace # just a shortcut
4952
inplace:
@@ -64,12 +67,13 @@ test: clean test-code
6467

6568
html:
6669
@echo "building docs"
67-
make -C doc clean html
70+
make -C doc clean htmlonly
6871

6972
specs:
7073
@echo "Checking specs and autogenerating spec tests"
7174
python tools/checkspecs.py
7275

76+
check: check-before-commit # just a shortcut
7377
check-before-commit: specs trailing-spaces html test
7478
@echo "removed spaces"
7579
@echo "built docs"

0 commit comments

Comments
 (0)