File tree 7 files changed +24
-26
lines changed
7 files changed +24
-26
lines changed Original file line number Diff line number Diff line change 22
22
continue-on-error : true
23
23
strategy :
24
24
matrix :
25
- python-version : [3.8 ]
26
- install : ['setup ']
25
+ python-version : ["3.10" ]
26
+ install : ['pip ']
27
27
check : ['style', 'doc']
28
28
pip-flags : ['']
29
29
depends : ['REQUIREMENTS']
Original file line number Diff line number Diff line change 28
28
os : ['ubuntu-latest', 'windows-latest', 'macos-latest']
29
29
python-version : ["3.9", "3.10"]
30
30
architecture : ['x64', 'x86']
31
- install : ['setup ']
31
+ install : ['pip ']
32
32
check : ['test']
33
33
pip-flags : ['PRE_PIP_FLAGS']
34
34
depends : ['REQUIREMENTS']
37
37
# Pydicom master
38
38
- os : ubuntu-latest
39
39
python-version : " 3.10"
40
- install : setup
40
+ install : pip
41
41
check : test
42
42
pip-flags : ' '
43
43
depends : REQUIREMENTS
Original file line number Diff line number Diff line change @@ -40,23 +40,23 @@ jobs:
40
40
# Basic dependencies only
41
41
- os : ubuntu-latest
42
42
python-version : 3.7
43
- install : setup
43
+ install : pip
44
44
check : test
45
45
pip-flags : ' '
46
46
depends : REQUIREMENTS
47
47
optional-depends : ' '
48
48
# Absolute minimum dependencies
49
49
- os : ubuntu-latest
50
50
python-version : 3.7
51
- install : setup
51
+ install : pip
52
52
check : test
53
53
pip-flags : ' '
54
54
depends : MIN_REQUIREMENTS
55
55
optional-depends : ' '
56
56
# Absolute minimum dependencies plus old MPL, Pydicom, Pillow
57
57
- os : ubuntu-latest
58
58
python-version : 3.7
59
- install : setup
59
+ install : pip
60
60
check : test
61
61
pip-flags : ' '
62
62
depends : MIN_REQUIREMENTS
Original file line number Diff line number Diff line change 17
17
- DEPENDS="REQUIREMENTS"
18
18
- OPTIONAL_DEPENDS="DEFAULT_OPT_DEPENDS"
19
19
- EXTRA_PIP_FLAGS=""
20
- - INSTALL_TYPE="setup "
20
+ - INSTALL_TYPE="pip "
21
21
- CHECK_TYPE="test"
22
22
23
23
python :
@@ -35,7 +35,6 @@ before_install:
35
35
# command to install dependencies
36
36
install :
37
37
- tools/ci/install.sh
38
- - if [ "$CHECK_TYPE" == "skiptests" ]; then exit 0; fi
39
38
40
39
# command to run tests, e.g. python setup.py test
41
40
script :
Original file line number Diff line number Diff line change @@ -11,18 +11,21 @@ echo "INSTALL_TYPE = $INSTALL_TYPE"
11
11
12
12
set -x
13
13
14
- if [ " $INSTALL_TYPE " == " sdist" ]; then
15
- python setup.py egg_info # check egg_info while we're here
16
- python setup.py sdist
17
- export ARCHIVE=$( ls dist/* .tar.gz )
18
- elif [ " $INSTALL_TYPE " == " wheel" ]; then
19
- python setup.py bdist_wheel
20
- export ARCHIVE=$( ls dist/* .whl )
21
- elif [ " $INSTALL_TYPE " == " archive" ]; then
22
- export ARCHIVE=" package.tar.gz"
14
+ if [ " $INSTALL_TYPE " = " sdist" -o " $INSTALL_TYPE " = " wheel" ]; then
15
+ python -m build
16
+ elif [ " $INSTALL_TYPE " = " archive" ]; then
17
+ ARCHIVE=" package.tar.gz"
23
18
git archive -o $ARCHIVE HEAD
24
- elif [ " $INSTALL_TYPE " == " pip" ]; then
25
- export ARCHIVE=" ."
26
19
fi
27
20
21
+ if [ " $INSTALL_TYPE " = " sdist" ]; then
22
+ ARCHIVE=$( ls dist/* .tar.gz )
23
+ elif [ " $INSTALL_TYPE " = " wheel" ]; then
24
+ ARCHIVE=$( ls dist/* .whl )
25
+ elif [ " $INSTALL_TYPE " = " pip" ]; then
26
+ ARCHIVE=" ."
27
+ fi
28
+
29
+ export ARCHIVE
30
+
28
31
set +eux
Original file line number Diff line number Diff line change 1
- SETUP_REQUIRES=" pip setuptools>=30.3.0 wheel "
1
+ SETUP_REQUIRES=" pip build "
2
2
3
3
# Minimum requirements
4
4
REQUIREMENTS=" -r requirements.txt"
Original file line number Diff line number Diff line change @@ -18,11 +18,7 @@ if [ -n "$EXTRA_PIP_FLAGS" ]; then
18
18
EXTRA_PIP_FLAGS=${! EXTRA_PIP_FLAGS}
19
19
fi
20
20
21
- if [ " $INSTALL_TYPE " == " setup" ]; then
22
- python setup.py install
23
- else
24
- pip install $EXTRA_PIP_FLAGS $ARCHIVE
25
- fi
21
+ pip install $EXTRA_PIP_FLAGS $ARCHIVE
26
22
27
23
# Basic import check
28
24
python -c ' import nibabel; print(nibabel.__version__)'
You can’t perform that action at this time.
0 commit comments