Skip to content

Commit 7006e38

Browse files
committed
CI: Use recent Python image to build packages
1 parent c7c428c commit 7006e38

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.circleci/config.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ jobs:
260260

261261
build_docs:
262262
docker:
263-
- image: python:latest
263+
- image: python:latest
264264
working_directory: /tmp/src/fmriprep
265265
environment:
266266
- FSLOUTPUTTYPE: 'NIFTI'
@@ -771,16 +771,15 @@ jobs:
771771
fi
772772
773773
test_deploy_pypi:
774-
machine:
775-
image: circleci/classic:201711-01
774+
docker:
775+
- image: circleci/python:3.7.4
776776
working_directory: /tmp/src/fmriprep
777777
steps:
778778
- checkout
779779
- run:
780780
name: Build fMRIPrep
781781
command: |
782-
pyenv local 3.5.2
783-
pip install twine # For use in checking distributions
782+
pip install --user twine # For use in checking distributions
784783
THISVERSION=$( python get_version.py )
785784
THISVERSION=${THISVERSION%.dirty*}
786785
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
@@ -795,7 +794,6 @@ jobs:
795794
- run:
796795
name: Check sdist distribution
797796
command: |
798-
pyenv local 3.5.2
799797
THISVERSION=$( python get_version.py )
800798
THISVERSION=${THISVERSION%.dirty*}
801799
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
@@ -814,7 +812,6 @@ jobs:
814812
- run:
815813
name: Check wheel distribution
816814
command: |
817-
pyenv local 3.5.2
818815
THISVERSION=$( python get_version.py )
819816
THISVERSION=${THISVERSION%.dirty*}
820817
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
@@ -832,7 +829,6 @@ jobs:
832829
- run:
833830
name: Build fmriprep-docker
834831
command: |
835-
pyenv local 3.5.2
836832
THISVERSION=$( python get_version.py )
837833
THISVERSION=${THISVERSION%.dirty*}
838834
cd wrapper
@@ -846,15 +842,14 @@ jobs:
846842
path: /tmp/src/fmriprep/wrapper/dist
847843

848844
deploy_pypi:
849-
machine:
850-
image: circleci/classic:201711-01
845+
docker:
846+
- image: circleci/python:3.7.4
851847
working_directory: /tmp/src/fmriprep
852848
steps:
853849
- checkout
854850
- run:
855851
name: Build fMRIPrep
856852
command: |
857-
pyenv local 3.5.2
858853
THISVERSION=$( python get_version.py )
859854
virtualenv --python=python build
860855
source build/bin/activate
@@ -866,7 +861,6 @@ jobs:
866861
- run:
867862
name: Build fmriprep-docker
868863
command: |
869-
pyenv local 3.5.2
870864
THISVERSION=$( python get_version.py )
871865
cd wrapper
872866
virtualenv --python=python build
@@ -878,8 +872,7 @@ jobs:
878872
- run:
879873
name: Upload packages to PyPI
880874
command: |
881-
pyenv local 3.5.2
882-
pip install twine
875+
pip install --user twine
883876
twine upload dist/fmriprep* wrapper/dist/fmriprep*
884877
885878
deployable:

0 commit comments

Comments
 (0)