Skip to content

Commit

Permalink
Merge pull request #1790 from effigies/ci/upgrade_package_build_env
Browse files Browse the repository at this point in the history
CI: Use recent Python image to build packages
  • Loading branch information
effigies committed Sep 25, 2019
2 parents c7c428c + 7006e38 commit cc49139
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ jobs:

build_docs:
docker:
- image: python:latest
- image: python:latest
working_directory: /tmp/src/fmriprep
environment:
- FSLOUTPUTTYPE: 'NIFTI'
Expand Down Expand Up @@ -771,16 +771,15 @@ jobs:
fi
test_deploy_pypi:
machine:
image: circleci/classic:201711-01
docker:
- image: circleci/python:3.7.4
working_directory: /tmp/src/fmriprep
steps:
- checkout
- run:
name: Build fMRIPrep
command: |
pyenv local 3.5.2
pip install twine # For use in checking distributions
pip install --user twine # For use in checking distributions
THISVERSION=$( python get_version.py )
THISVERSION=${THISVERSION%.dirty*}
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
Expand All @@ -795,7 +794,6 @@ jobs:
- run:
name: Check sdist distribution
command: |
pyenv local 3.5.2
THISVERSION=$( python get_version.py )
THISVERSION=${THISVERSION%.dirty*}
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
Expand All @@ -814,7 +812,6 @@ jobs:
- run:
name: Check wheel distribution
command: |
pyenv local 3.5.2
THISVERSION=$( python get_version.py )
THISVERSION=${THISVERSION%.dirty*}
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
Expand All @@ -832,7 +829,6 @@ jobs:
- run:
name: Build fmriprep-docker
command: |
pyenv local 3.5.2
THISVERSION=$( python get_version.py )
THISVERSION=${THISVERSION%.dirty*}
cd wrapper
Expand All @@ -846,15 +842,14 @@ jobs:
path: /tmp/src/fmriprep/wrapper/dist

deploy_pypi:
machine:
image: circleci/classic:201711-01
docker:
- image: circleci/python:3.7.4
working_directory: /tmp/src/fmriprep
steps:
- checkout
- run:
name: Build fMRIPrep
command: |
pyenv local 3.5.2
THISVERSION=$( python get_version.py )
virtualenv --python=python build
source build/bin/activate
Expand All @@ -866,7 +861,6 @@ jobs:
- run:
name: Build fmriprep-docker
command: |
pyenv local 3.5.2
THISVERSION=$( python get_version.py )
cd wrapper
virtualenv --python=python build
Expand All @@ -878,8 +872,7 @@ jobs:
- run:
name: Upload packages to PyPI
command: |
pyenv local 3.5.2
pip install twine
pip install --user twine
twine upload dist/fmriprep* wrapper/dist/fmriprep*
deployable:
Expand Down

0 comments on commit cc49139

Please sign in to comment.