Skip to content

Commit bf5faf4

Browse files
authored
Merge pull request #824 from effigies/mnt/py310
MNT: Test on Python 3.10, various CI updates
2 parents 4b19b36 + 03314f8 commit bf5faf4

File tree

7 files changed

+24
-35
lines changed

7 files changed

+24
-35
lines changed

.github/workflows/package.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
include:
2323
- os: ubuntu-latest
24-
python-version: 3.8
24+
python-version: "3.10"
2525
steps:
2626
- uses: actions/checkout@v2
2727
with:
@@ -33,16 +33,10 @@ jobs:
3333
python-version: ${{ matrix.python-version }}
3434
- name: Display Python version
3535
run: python -c "import sys; print(sys.version)"
36-
- name: Create virtual environment
37-
run: tools/ci/create_venv.sh
38-
- name: Build sdist
39-
run: tools/ci/build_archive.sh
40-
env:
41-
INSTALL_TYPE: sdist
42-
- name: Build wheel
43-
run: tools/ci/build_archive.sh
44-
env:
45-
INSTALL_TYPE: wheel
36+
- name: Install build
37+
run: python -m pip install build
38+
- name: Build sdist and wheel
39+
run: python -m build
4640
- name: Test PyPI upload
4741
uses: pypa/gh-action-pypi-publish@master
4842
with:

.github/workflows/pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
matrix:
2626
os: ['ubuntu-latest', 'macos-latest']
27-
python-version: [3.8, 3.9]
27+
python-version: [3.8, 3.9, "3.10"]
2828
install: ['pip']
2929
check: ['ci_tests']
3030
pip-flags: ['PRE_PIP_FLAGS']

.github/workflows/stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
os: ['ubuntu-latest', 'macos-latest']
29-
python-version: [3.6, 3.7, 3.8, 3.9]
29+
python-version: [3.7, 3.8, 3.9, "3.10"]
3030
install: ['pip']
3131
check: ['ci_tests']
3232
pip-flags: ['']

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ classifiers =
2020
Topic :: Scientific/Engineering
2121

2222
[options]
23-
python_requires = >=3.6
23+
python_requires = >=3.7
2424
install_requires =
2525
numpy
2626
scipy

tools/ci/build_archive.sh

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,22 @@ echo "INSTALL_TYPE = $INSTALL_TYPE"
1111

1212
set -x
1313

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="/tmp/package.tar.gz"
2318
git archive -o $ARCHIVE HEAD
24-
elif [ "$INSTALL_TYPE" == "pip" ]; then
25-
export ARCHIVE="."
2619
fi
2720

28-
if [ "${ARCHIVE:0:5}" = "dist/" ]; then
21+
if [ "$INSTALL_TYPE" = "sdist" ]; then
22+
ARCHIVE=$( ls $PWD/dist/*.tar.gz )
23+
elif [ "$INSTALL_TYPE" = "wheel" ]; then
24+
ARCHIVE=$( ls $PWD/dist/*.whl )
25+
elif [ "$INSTALL_TYPE" = "pip" ]; then
26+
ARCHIVE="$PWD"
27+
fi
28+
29+
if [ "$INSTALL_TYPE" = "sdist" -o "$INSTALL_TYPE" = "wheel" ]; then
2930
python -m pip install twine
3031
python -m twine check $ARCHIVE
3132
fi

tools/ci/env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SETUP_REQUIRES="pip setuptools>=30.3.0,!=61.0.0 wheel"
1+
SETUP_REQUIRES="pip build"
22

33
# Numpy and scipy upload nightly/weekly/intermittent wheels
44
NIGHTLY_WHEELS="https://pypi.anaconda.org/scipy-wheels-nightly/simple"

tools/ci/install.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
echo Installing nibabel
3+
echo Installing pybids
44

55
source tools/ci/activate.sh
66
source tools/ci/env.sh
@@ -27,12 +27,6 @@ fi
2727
# Basic import check
2828
python -c 'import bids; print(bids.__version__)'
2929

30-
if [ "$CHECK_TYPE" == "skiptests" ]; then
31-
exit 0
32-
fi
33-
34-
pip install $EXTRA_PIP_FLAGS "pybids[$CHECK_TYPE]"
35-
3630
set +eux
3731

38-
echo Done installing nibabel
32+
echo Done installing pybids

0 commit comments

Comments
 (0)