Skip to content

Commit

Permalink
ENH: Drop Python 3.7 and add 3.10 to testing matrix
Browse files Browse the repository at this point in the history
Drop Python 3.7 and add 3.10 to testing matrix: the end-of-life of 3.7
is expected in 6 months (27 Jun 2023):
https://devguide.python.org/versions/#supported-versions

Enclose Python version numbers in quotes, as otherwise 3.10 is taken as
3.1 as otherwise YAML parses them as numbers and trims 3.10 to 3.1:
https://github.com/carpentries-incubator/SDC-BIDS-dMRI/actions/runs/3773615353

Documentation:
https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#using-the-python-version-input

Upgrade to DIPY 1.5.0 as previous versions are not compatible with
Python 3.10.

Specify a Python version for Binder through the `runtime.txt` file. The
current default Python version for Binder is 3.7, and hence the
notebooks would fail unless a newer version is specified as we are
dropping support for Python 3.7.

Documentation:
https://mybinder.readthedocs.io/en/latest/howto/languages.html#python
  • Loading branch information
jhlegarreta committed Dec 26, 2022
1 parent 181406f commit 9142561
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ['3.8', '3.9', '3.10']
env:
ANTSPATH: /opt/ants
FSLPATH: /opt/fsl
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dipy==1.4.1
dipy==1.5.0
fury==0.7.1
matplotlib==3.5.3
nilearn==0.7.0
Expand Down
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.10

0 comments on commit 9142561

Please sign in to comment.