Skip to content

Commit 315aab9

Browse files
oestebanmgxd
andcommitted
fix: select python without fiddling
Co-authored-by: Mathias Goncalves <[email protected]>
1 parent 4f59910 commit 315aab9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.circleci/config.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ jobs:
4646
- run:
4747
name: Install test data from GIN
4848
command: |
49-
export PATH=/opt/circleci/.pyenv/versions/3.12.2/bin/:/opt/circleci/git-annex.linux:$PATH
49+
export PATH=/opt/circleci/git-annex.linux:$PATH
50+
pyenv local 3
51+
eval "$(pyenv init --path)"
5052
mkdir -p /tmp/data
5153
cd /tmp/data
5254
datalad install -r https://gin.g-node.org/oesteban/nitransforms-tests
@@ -129,7 +131,7 @@ jobs:
129131
echo "cHJpbnRmICJrcnp5c3p0b2YuZ29yZ29sZXdza2lAZ21haWwuY29tXG41MTcyXG4gKkN2dW12RVYzelRmZ1xuRlM1Si8yYzFhZ2c0RVxuIiA+IGxpY2Vuc2UudHh0Cg==" | base64 -d | sh
130132
- run:
131133
name: Get codecov
132-
command: python -m pip install codecov
134+
command: python3 -m pip install codecov
133135
- run:
134136
name: Run unit tests
135137
no_output_timeout: 2h
@@ -147,7 +149,7 @@ jobs:
147149
name: Submit unit test coverage
148150
command: |
149151
cd /tmp/src/nitransforms
150-
python -m codecov --file /tmp/tests/summaries/unittests.xml \
152+
python3 -m codecov --file /tmp/tests/summaries/unittests.xml \
151153
--flags unittests -e CIRCLE_JOB
152154
- run:
153155
name: Clean up tests directory
@@ -176,7 +178,7 @@ jobs:
176178
source /tmp/buildenv/bin/activate
177179
python3 -m pip install "setuptools >= 45.0" wheel "setuptools_scm[toml] >= 6.2" \
178180
"pip>=10.0.1" twine docutils
179-
python setup.py sdist bdist_wheel
181+
python3 -m build
180182
twine check dist/nitransforms*
181183
- store_artifacts:
182184
path: /tmp/src/nitransforms/dist

0 commit comments

Comments
 (0)