@@ -339,9 +339,25 @@ jobs:
339
339
- run :
340
340
name : Check pypi preconditions
341
341
command : |
342
- pip install twine future wheel readme_renderer
342
+ pip install --upgrade twine future wheel readme_renderer setuptools
343
343
python setup.py check -r -s
344
344
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"
359
+ - store_artifacts :
360
+ path : /home/circleci/nipype/dist
345
361
346
362
deploy_pypi :
347
363
machine : *machine_kwds
@@ -352,7 +368,7 @@ jobs:
352
368
- run :
353
369
name : Deploy to PyPI
354
370
command : |
355
- pip install twine future wheel readme_renderer
371
+ pip install --upgrade twine future wheel readme_renderer setuptools
356
372
python setup.py check -r -s
357
373
python setup.py sdist bdist_wheel
358
374
twine upload dist/*
@@ -393,6 +409,7 @@ workflows:
393
409
version : 2
394
410
build_test_deploy :
395
411
jobs :
412
+ - pypi_precheck
396
413
- compare_base_dockerfiles :
397
414
filters :
398
415
tags :
@@ -428,6 +445,7 @@ workflows:
428
445
tags :
429
446
only : /.*/
430
447
requires :
448
+ - pypi_precheck
431
449
- test_pytest
432
450
- update_feedstock :
433
451
context : nipybot
@@ -436,7 +454,3 @@ workflows:
436
454
only : /rel\/.*/
437
455
tags :
438
456
only : /.*/
439
- - pypi_precheck :
440
- filters :
441
- branches :
442
- only : /rel\/.*/
0 commit comments