diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a6b91a52ab..4380612287 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -57,8 +57,9 @@ Make sure to [keep your fork up to date][link_updateupstreamwiki] with the maste If you're adding a new tool from an existing neuroimaging toolkit (e.g., 3dDeconvolve from AFNI), check out the [guide for adding new interfaces to Nipype][link_new_interfaces]. To confirm that your changes worked as intended, [clone your fork][link_cloning] to create a local directory. -In this local directory, run `python setup.py develop`. -This will add your version of nipype to your local python environment. +In this local directory, run `pip install -e .[dev]`. +This will add your version of nipype to your local python environment and +install dependencies needed for development. Then, in this local nipype directory, run `make check-before-commit`. If you get no errors, you're ready to submit your changes! diff --git a/nipype/info.py b/nipype/info.py index 7cee71d6bd..0964d69dbf 100644 --- a/nipype/info.py +++ b/nipype/info.py @@ -167,7 +167,15 @@ def get_nipype_gitversion(): # 'mesh': ['mayavi'] # Enable when it works } + +def _list_union(iterable): + return list(set(sum(iterable, []))) + + # Enable a handle to install all extra dependencies at once -EXTRA_REQUIRES['all'] = [val for _, val in list(EXTRA_REQUIRES.items())] +EXTRA_REQUIRES['all'] = _list_union(EXTRA_REQUIRES.values()) +# dev = doc + tests + specs +EXTRA_REQUIRES['dev'] = _list_union(val for key, val in EXTRA_REQUIRES.items() + if key in ('doc', 'tests', 'specs')) STATUS = 'stable'