@@ -4,14 +4,14 @@ _machine_defaults: &machine_defaults
4
4
TZ : " /usr/share/zoneinfo/America/Los_Angeles"
5
5
SCRATCH : " /scratch"
6
6
machine :
7
- image : ubuntu-2204:2023.04.2
7
+ image : default
8
8
docker_layer_caching : true
9
9
working_directory : /tmp/src/fmriprep
10
10
resource_class : large
11
11
12
12
_python_defaults : &python_defaults
13
13
docker :
14
- - image : cimg/python:3.10.9
14
+ - image : cimg/python:3.12
15
15
working_directory : /tmp/src/fmriprep
16
16
17
17
_docker_auth : &docker_auth
@@ -80,9 +80,7 @@ _check_skip_job: &check_skip_job
80
80
_setup_fmriprep_docker : &setup_fmriprep_docker
81
81
name : Install fMRIPrep's docker wrapper
82
82
command : |
83
- export PY3=$(pyenv versions | grep '3\.' |
84
- sed -e 's/.* 3\./3./' -e 's/ .*//')
85
- pyenv local $PY3
83
+ pyenv local 3
86
84
pip install --upgrade pip
87
85
pip install --upgrade /tmp/src/fmriprep/wrapper/
88
86
@@ -132,9 +130,7 @@ jobs:
132
130
name : Build Docker image
133
131
no_output_timeout : 60m
134
132
command : |
135
- export PY3=$(pyenv versions | grep '3\.' |
136
- sed -e 's/.* 3\./3./' -e 's/ .*//')
137
- pyenv local $PY3
133
+ pyenv local 3
138
134
pip install hatch
139
135
# Get version, update files
140
136
THISVERSION=$( hatch version )
@@ -174,9 +170,7 @@ jobs:
174
170
name : Build Docker image
175
171
no_output_timeout : 60m
176
172
command : |
177
- export PY3=$(pyenv versions | grep '3\.' |
178
- sed -e 's/.* 3\./3./' -e 's/ .*//')
179
- pyenv local $PY3
173
+ pyenv local 3
180
174
pip install hatch
181
175
# Get version, update files.
182
176
THISVERSION=$( hatch version )
@@ -199,9 +193,6 @@ jobs:
199
193
- run :
200
194
name : Check Docker image
201
195
command : |
202
- export PY3=$(pyenv versions | grep '3\.' |
203
- sed -e 's/.* 3\./3./' -e 's/ .*//')
204
- pyenv local $PY3
205
196
# Get version, update files.
206
197
THISVERSION=$( hatch version )
207
198
BUILT_VERSION=$( docker run --rm nipreps/fmriprep:latest --version )
@@ -384,17 +375,12 @@ jobs:
384
375
- run :
385
376
name : Build fmriprep-docker wheel
386
377
command : |
387
- export PY3=$(pyenv versions | grep '3\.' |
388
- sed -e 's/.* 3\./3./' -e 's/ .*//')
389
- pyenv local $PY3
378
+ pyenv local 3
390
379
pip install --upgrade pip build
391
380
python -m build wrapper/
392
381
- run :
393
382
name : Install and test fmriprep-docker (Python 3)
394
383
command : |
395
- export PY3=$(pyenv versions | grep '3\.' |
396
- sed -e 's/.* 3\./3./' -e 's/ .*//')
397
- pyenv local $PY3
398
384
echo -n "Python version: "
399
385
python --version
400
386
pip install --upgrade wrapper/
@@ -405,9 +391,7 @@ jobs:
405
391
- run :
406
392
name : Install and test fmriprep-docker (Python 2)
407
393
command : |
408
- export PY2=$(pyenv versions | grep '2\.' |
409
- sed -e 's/.* 2\./2./' -e 's/ .*//')
410
- pyenv local $PY2
394
+ pyenv local 2.7
411
395
echo -n "Python version: "
412
396
python --version
413
397
pip install --upgrade "pip<21"
0 commit comments