@@ -10,33 +10,19 @@ jobs:
10
10
11
11
steps :
12
12
- checkout
13
- - restore_cache :
14
- keys :
15
- - env-v6-{{ .Branch }}-
16
- - env-v6-master-
17
- - env-v6-
13
+ - run :
14
+ name : Ensure uv is present
15
+ command : uv -V || curl -LsSf https://astral.sh/uv/install.sh | sh
18
16
- run :
19
17
name : Setup git-annex
20
18
command : |
21
- sudo apt update && sudo apt-get install apt-transport-https ca-certificates -y && sudo update-ca-certificates
22
- if [[ ! -d /opt/circleci/git-annex.linux ]]; then
23
- cd /tmp
24
- wget https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz
25
- tar xzf git-annex-standalone-amd64.tar.gz -C /opt/circleci/
26
- fi
19
+ uv tool install git-annex
27
20
git config --global user.name 'NiPy'
28
21
git config --global user.email '[email protected] '
29
22
- run :
30
23
name : Setup DataLad
31
24
command : |
32
- python3 -m pip install --no-cache-dir -U pip "setuptools >= 45.0" "setuptools_scm[toml] >= 6.2"
33
- python3 -m pip install --no-cache-dir -U datalad datalad-osf
34
-
35
- - save_cache :
36
- key : env-v6-{{ .Branch }}-{{ .BuildNum }}
37
- paths :
38
- - /opt/circleci/git-annex.linux
39
- - /opt/circleci/.pyenv/versions
25
+ uv tool install --with-executables-from=datalad-osf,datalad-next datalad
40
26
41
27
- restore_cache :
42
28
keys :
46
32
- run :
47
33
name : Install test data from GIN
48
34
command : |
49
- export PATH=/opt/circleci/git-annex.linux:$PATH
50
- pyenv local 3
51
- eval "$(pyenv init --path)"
52
35
mkdir -p /tmp/data
53
36
cd /tmp/data
54
37
datalad install -r https://gin.g-node.org/oesteban/nitransforms-tests
99
82
-t nitransforms:latest \
100
83
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
101
84
--build-arg VCS_REF=`git rev-parse --short HEAD` \
102
- --build-arg VERSION=$( python3 -m setuptools_scm ) . \
85
+ --build-arg VERSION=$( uv run --no-project -w setuptools_scm -m setuptools_scm ) . \
103
86
&& e=0 && break || sleep 15
104
87
done && [ "$e" -eq "0" ]
105
88
docker tag nitransforms:latest localhost:5000/nitransforms
116
99
- run :
117
100
name : Check version packaged in Docker image
118
101
command : |
119
- THISVERSION=${CIRCLE_TAG:-$(python3 - m setuptools_scm)}
102
+ THISVERSION=${CIRCLE_TAG:-$( uv run --no-project -w setuptools_scm - m setuptools_scm )}
120
103
INSTALLED_VERSION=$(\
121
104
docker run -it --rm --entrypoint=python nitransforms \
122
105
-c 'import nitransforms as nit; print(nit.__version__, end="")' )
0 commit comments