Skip to content

Commit 797841b

Browse files
committed
Merge branch 'master' into dev/2.0
Curated by CJM
2 parents 7baa6d3 + ab78dbb commit 797841b

File tree

180 files changed

+1774
-15684
lines changed

Some content is hidden

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

180 files changed

+1774
-15684
lines changed

.circleci/config.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,14 @@ jobs:
316316
- run:
317317
name: Check pypi preconditions
318318
command: |
319-
pyenv local 3.5.2
319+
pyenv local 3.6.5
320320
pip install --upgrade pip twine future wheel readme_renderer setuptools
321-
python setup.py check -r -s
322321
python setup.py sdist bdist_wheel
322+
twine check dist/*
323323
- run:
324324
name: Validate Python 3 installation
325325
command: |
326-
pyenv local 3.5.2
326+
pyenv local 3.6.5
327327
pip install --upgrade pip
328328
pip install dist/nipype-*-py3-none-any.whl
329329
- run:
@@ -336,6 +336,14 @@ jobs:
336336
pip install dist/nipype-*-py3-none-any.whl
337337
# Numpy should be upgraded to >= 1.15.3
338338
test "$(pip show numpy | grep Version)" \> "Version: 1.15.2"
339+
- run:
340+
name: Check python_requires prevents installation on Python 3.3
341+
command: |
342+
pyenv install 3.3.7
343+
pyenv local 3.3.7
344+
FAIL=false
345+
pip install dist/nipype-*-py2.py3-none-any.whl || FAIL=true
346+
$FAIL
339347
- store_artifacts:
340348
path: /home/circleci/nipype/dist
341349

@@ -348,7 +356,7 @@ jobs:
348356
- run:
349357
name: Deploy to PyPI
350358
command: |
351-
pyenv local 3.5.2
359+
pyenv local 3.6.5
352360
pip install --upgrade twine wheel readme_renderer setuptools
353361
python setup.py check -r -s
354362
python setup.py sdist bdist_wheel

.et

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{ "bad_versions" : [ "1.2.1",
2+
"1.2.3"]
3+
}

.mailmap

Lines changed: 170 additions & 188 deletions
Large diffs are not rendered by default.

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v2.0.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- repo: https://github.com/psf/black
12+
rev: 19.3b0
13+
hooks:
14+
- id: black

.travis.yml

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
- EXTRA_WHEELS="https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com"
1616
- PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com"
1717
- EXTRA_PIP_FLAGS="--find-links=$EXTRA_WHEELS"
18+
- CHECK_TYPE=test
1819
matrix:
1920
- INSTALL_DEB_DEPENDECIES=true
2021
NIPYPE_EXTRAS="doc,tests,nipy,profiler"
@@ -30,35 +31,12 @@ env:
3031
EXTRA_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS"
3132
CI_SKIP_TEST=1
3233

33-
# Python 3.4 is only available on Trusty, so we need to duplicate the
34-
# env matrix specifically for it.
3534
matrix:
3635
include:
37-
- python: 3.4
38-
dist: trusty
36+
- python: 3.7
3937
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
38+
- NIPYPE_EXTRAS=dev
39+
CHECK_TYPE=specs
6240

6341
addons:
6442
apt:
@@ -93,7 +71,16 @@ install:
9371
- travis_retry pip install pytest-xdist
9472

9573
script:
96-
- py.test -v --cov nipype --cov-config .coveragerc --cov-report xml:cov.xml -c nipype/pytest.ini --doctest-modules nipype -n auto
74+
- |
75+
if [ "$CHECK_TYPE" = "test" ]; then
76+
py.test -v --cov nipype --cov-config .coveragerc --cov-report xml:cov.xml -c nipype/pytest.ini --doctest-modules nipype -n auto
77+
fi
78+
- |
79+
if [ "$CHECK_TYPE" = "specs" ]; then
80+
make specs
81+
git add nipype
82+
test "$( git diff --cached | wc -l )" -eq 0 || ( git diff --cached && false )
83+
fi
9784
9885
after_script:
9986
- codecov --file cov.xml --flags unittests -e TRAVIS_JOB_NUMBER

0 commit comments

Comments
 (0)