Skip to content

Commit 10ec7d9

Browse files
committed
CI: Check installation for futures, update deploy
1 parent 8f744ec commit 10ec7d9

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.circleci/config.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,20 @@ jobs:
342342
pip install --upgrade twine future wheel readme_renderer setuptools
343343
python setup.py check -r -s
344344
python setup.py sdist bdist_wheel
345+
- run:
346+
name: Validate Python 2 installation
347+
command: |
348+
pyenv local 2.7.12
349+
pip install dist/nipype-*-py2.py3-none-any.whl
350+
# Futures should install in Python 2
351+
pip show futures 2>/dev/null | grep "Name: futures"
352+
- run:
353+
name: Validate Python 3 installation
354+
command: |
355+
pyenv local 3.5.2
356+
pip install dist/nipype-*-py2.py3-none-any.whl
357+
# Futures should not install in Python 3
358+
test $(pip show futures 2>/dev/null | wc -l) = "0"
345359
- store_artifacts:
346360
path: /home/circleci/nipype/dist
347361

@@ -354,7 +368,7 @@ jobs:
354368
- run:
355369
name: Deploy to PyPI
356370
command: |
357-
pip install twine future wheel readme_renderer
371+
pip install --upgrade twine future wheel readme_renderer setuptools
358372
python setup.py check -r -s
359373
python setup.py sdist bdist_wheel
360374
twine upload dist/*
@@ -395,6 +409,7 @@ workflows:
395409
version: 2
396410
build_test_deploy:
397411
jobs:
412+
- pypi_precheck
398413
- compare_base_dockerfiles:
399414
filters:
400415
tags:
@@ -430,6 +445,7 @@ workflows:
430445
tags:
431446
only: /.*/
432447
requires:
448+
- pypi_precheck
433449
- test_pytest
434450
- update_feedstock:
435451
context: nipybot
@@ -438,4 +454,3 @@ workflows:
438454
only: /rel\/.*/
439455
tags:
440456
only: /.*/
441-
- pypi_precheck

0 commit comments

Comments
 (0)