Skip to content

Commit f31416a

Browse files
committed
Merge remote-tracking branch 'upstream/master' into dev/2.0
Manually curated by CJM
2 parents 938cdf4 + 37f3781 commit f31416a

File tree

8 files changed

+61
-23
lines changed

8 files changed

+61
-23
lines changed

.github/release-drafter.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
template: |
2+
## What's Changed
3+
4+
$CHANGES

.travis.yml

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,65 @@
1-
dist: trusty
2-
sudo: required
1+
dist: xenial
2+
sudo: true
33

44
language: python
55
# our build matrix
66
python:
7-
- 3.4
87
- 3.5
98
- 3.6
10-
- 3.7-dev
9+
- 3.7
1110

11+
# NOTE: Any changes to the matrix section should be duplicated below for
12+
# Python 3.4
1213
env:
1314
global:
1415
- EXTRA_WHEELS="https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com"
1516
- PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com"
1617
- EXTRA_PIP_FLAGS="--find-links=$EXTRA_WHEELS"
1718
matrix:
1819
- INSTALL_DEB_DEPENDECIES=true
19-
NIPYPE_EXTRAS="doc,tests,fmri,profiler"
20+
NIPYPE_EXTRAS="doc,tests,nipy,profiler"
2021
CI_SKIP_TEST=1
2122
- INSTALL_DEB_DEPENDECIES=false
22-
NIPYPE_EXTRAS="doc,tests,fmri,profiler"
23+
NIPYPE_EXTRAS="doc,tests,profiler"
2324
CI_SKIP_TEST=1
2425
- INSTALL_DEB_DEPENDECIES=true
25-
NIPYPE_EXTRAS="doc,tests,fmri,profiler,duecredit,ssh"
26+
NIPYPE_EXTRAS="doc,tests,nipy,profiler,duecredit,ssh"
2627
CI_SKIP_TEST=1
2728
- INSTALL_DEB_DEPENDECIES=true
28-
NIPYPE_EXTRAS="doc,tests,fmri,profiler"
29+
NIPYPE_EXTRAS="doc,tests,nipy,profiler"
2930
EXTRA_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS"
3031
CI_SKIP_TEST=1
3132

33+
# Python 3.4 is only available on Trusty, so we need to duplicate the
34+
# env matrix specifically for it.
35+
matrix:
36+
include:
37+
- python: 3.4
38+
dist: trusty
39+
env:
40+
- INSTALL_DEB_DEPENDECIES=true
41+
NIPYPE_EXTRAS="doc,tests,nipy,profiler"
42+
CI_SKIP_TEST=1
43+
- python: 3.4
44+
dist: trusty
45+
env:
46+
- INSTALL_DEB_DEPENDECIES=false
47+
NIPYPE_EXTRAS="doc,tests,profiler"
48+
CI_SKIP_TEST=1
49+
- python: 3.4
50+
dist: trusty
51+
env:
52+
- INSTALL_DEB_DEPENDECIES=true
53+
NIPYPE_EXTRAS="doc,tests,nipy,profiler,duecredit,ssh"
54+
CI_SKIP_TEST=1
55+
- python: 3.4
56+
dist: trusty
57+
env:
58+
- INSTALL_DEB_DEPENDECIES=true
59+
NIPYPE_EXTRAS="doc,tests,nipy,profiler"
60+
EXTRA_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS"
61+
CI_SKIP_TEST=1
62+
3263
addons:
3364
apt:
3465
packages:

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ To participate in the Nipype development related discussions please use the foll
9090

9191
Please add *[nipype]* to the subject line when posting on the mailing list.
9292

93+
You can even hangout with the Nipype developers in their
94+
`Gitter <https://gitter.im/nipy/nipype>`_ channel or in the BrainHack `Slack <https://brainhack.slack.com/messages/C1FR76RAL>`_ channel. (Click `here <https://brainhack-slack-invite.herokuapp.com>`_ to join the Slack workspace.)
95+
96+
9397
Contributing to the project
9498
---------------------------
9599

doc/_templates/indexsidebar.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ <h3>{{ _('Links') }}</h3>
44
<ul>
55
<li>Docs: <a href="http://nipy.org/nipype">Stable</a> · <a href="http://nipype.readthedocs.org/en/latest/">Dev</a></li>
66
<li>Code: <a href="http://github.com/nipy/nipype">Github</a> · <a href="http://github.com/nipy/nipype/issues">Bugs-Requests</a></li>
7-
<li>Forum: <a href="http://neurostars.org/t/nipype">User</a> · <a href="http://projects.scipy.org/mailman/listinfo/nipy-devel">Developer</a></li>
7+
<li>Forum: <a href="https://neurostars.org/search?q=nipype">User</a> · <a href="https://mail.python.org/mailman/listinfo/neuroimaging">Developer</a></li>
8+
<li>Chat: <a href="https://gitter.im/nipy/nipype">Gitter</a> · <a href="https://brainhack.slack.com/messages/C1FR76RAL">Slack</a></li>
89
<li><a href="about.html#funding">Funding</a> · <a href="http://nipy.org/software/license/index.html"><img src="https://img.shields.io/pypi/l/nipype.svg" alt="License"></a></li>
910
<li><a href="https://travis-ci.org/nipy/nipype"><img src="https://travis-ci.org/nipy/nipype.png?branch=master" alt="travis"></a> · <a href='https://codecov.io/gh/nipy/nipype'><img src='https://codecov.io/gh/nipy/nipype/branch/master/graph/badge.svg' alt='Coverage Status' /></a></li>
1011
<a href='https://pypi.python.org/pypi/nipype/'><img src='https://img.shields.io/pypi/pyversions/nipype.svg' alt='Python Versions' /></a></li>
1112
</ul>
1213

13-
{% endblock %}
14+
{% endblock %}

doc/devel/gitwash/known_projects.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.. PROJECTNAME placeholders
44
.. _PROJECTNAME: http://neuroimaging.scipy.org
55
.. _`PROJECTNAME github`: http://github.com/nipy
6-
.. _`PROJECTNAME mailing list`: http://projects.scipy.org/mailman/listinfo/nipy-devel
6+
.. _`PROJECTNAME mailing list`: https://mail.python.org/mailman/listinfo/neuroimaging
77

88
.. numpy
99
.. _numpy: http://numpy.scipy.org

doc/devel/interface_specs.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ In case of trouble, we encourage you to post on `NeuroStars <https://neurostars.
1212
NeuroStars.org is a platform similar to StackOverflow but dedicated to neuroinformatics.
1313
You can also post on the nipype developers mailing list: http://mail.python.org/mailman/listinfo/neuroimaging.
1414
As we are sharing a mailing list with the nipy community, please add ``[nipype]`` to the message title.
15+
Alternatively, you're welcome to chat with us in the Nipype
16+
`Gitter <https://gitter.im/nipy/nipype>`_ channel or in the
17+
BrainHack `Slack <https://brainhack.slack.com/messages/C1FR76RAL>`_ channel.
18+
(Click `here <https://brainhack-slack-invite.herokuapp.com>`_ to join the Slack workspace.)
1519

1620

1721
Overview

doc/links_names.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
.. _`nipy launchpad`: https://launchpad.net/nipy
3939
.. _launchpad: https://launchpad.net/
4040
.. _`nipy trunk`: https://code.launchpad.net/~nipy-developers/nipy/trunk
41-
.. _`nipy mailing list`: http://projects.scipy.org/mailman/listinfo/nipy-devel
41+
.. _`nipy mailing list`: https://mail.python.org/mailman/listinfo/neuroimaging
4242
.. _`nipy bugs`: https://bugs.launchpad.net/nipy
4343

4444
.. Code support stuff

nipype/interfaces/utility/base.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from ..base import (traits, TraitedSpec, DynamicTraitedSpec, File, Undefined,
1515
isdefined, OutputMultiPath, InputMultiPath, BaseInterface,
16-
BaseInterfaceInputSpec, Str)
16+
BaseInterfaceInputSpec, Str, SimpleInterface)
1717
from ..io import IOBase, add_traits
1818
from ...utils.filemanip import ensure_list, copyfile, split_filename
1919

@@ -197,7 +197,6 @@ def _list_outputs(self):
197197

198198

199199
class RenameInputSpec(DynamicTraitedSpec):
200-
201200
in_file = File(exists=True, mandatory=True, desc="file to rename")
202201
keep_ext = traits.Bool(
203202
desc=("Keep in_file extension, replace "
@@ -211,12 +210,11 @@ class RenameInputSpec(DynamicTraitedSpec):
211210

212211

213212
class RenameOutputSpec(TraitedSpec):
214-
215213
out_file = traits.File(
216214
exists=True, desc="softlink to original file with new name")
217215

218216

219-
class Rename(IOBase):
217+
class Rename(SimpleInterface, IOBase):
220218
"""Change the name of a file based on a mapped format string.
221219
222220
To use additional inputs that will be defined at run-time, the class
@@ -296,15 +294,11 @@ def _rename(self):
296294

297295
def _run_interface(self, runtime):
298296
runtime.returncode = 0
299-
_ = copyfile(self.inputs.in_file,
300-
os.path.join(os.getcwd(), self._rename()))
297+
out_file = os.path.join(runtime.cwd, self._rename())
298+
_ = copyfile(self.inputs.in_file, out_file)
299+
self._results['out_file'] = out_file
301300
return runtime
302301

303-
def _list_outputs(self):
304-
outputs = self._outputs().get()
305-
outputs["out_file"] = os.path.join(os.getcwd(), self._rename())
306-
return outputs
307-
308302

309303
class SplitInputSpec(BaseInterfaceInputSpec):
310304
inlist = traits.List(

0 commit comments

Comments
 (0)