Skip to content

Commit 29a2ff6

Browse files
committed
Further changes for 3.9 to 3.10
Signed-off-by: Eric Kerfoot <[email protected]>
1 parent 4d58d5b commit 29a2ff6

File tree

15 files changed

+91
-34
lines changed

15 files changed

+91
-34
lines changed

.github/workflows/conda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
os: [ubuntu-latest]
22-
python-version: ["3.9", "3.10"]
22+
python-version: ["3.10", "3.11"]
2323
runs-on: ${{ matrix.os }}
2424
timeout-minutes: 46 # equal to max + 3*std over the last 600 successful runs
2525
env:

.github/workflows/cron-ngc-bundle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v5
21-
- name: Set up Python 3.9
21+
- name: Set up Python 3.10
2222
uses: actions/setup-python@v6
2323
with:
24-
python-version: '3.9'
24+
python-version: '3.10'
2525
- name: cache weekly timestamp
2626
id: pip-cache
2727
run: echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
with:
2727
ref: dev
2828
fetch-depth: 0
29-
- name: Set up Python 3.9
29+
- name: Set up Python 3.10
3030
uses: actions/setup-python@v6
3131
with:
32-
python-version: '3.9'
32+
python-version: '3.10'
3333
- shell: bash
3434
run: |
3535
git describe

.github/workflows/pythonapp-gpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
5454
if [ ${{ matrix.environment }} = "PT230+CUDA124" ]
5555
then
56-
PYVER=3.9 PYSFX=3 DISTUTILS=python3-distutils && \
56+
PYVER=3.10 PYSFX=3 DISTUTILS=python3-distutils && \
5757
apt-get update && apt-get install -y --no-install-recommends \
5858
curl \
5959
pkg-config \

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ['3.9', '3.10', '3.11']
16+
python-version: ['3.10', '3.11', '3.12']
1717
steps:
1818
- uses: actions/checkout@v5
1919
with:
@@ -64,22 +64,22 @@ jobs:
6464
env:
6565
QUICKTEST: True
6666

67-
- if: matrix.python-version == '3.9' && startsWith(github.ref, 'refs/tags/')
67+
- if: matrix.python-version == '3.10' && startsWith(github.ref, 'refs/tags/')
6868
name: Upload artifacts
6969
uses: actions/upload-artifact@v5
7070
with:
7171
name: dist
7272
path: dist/
7373

74-
- if: matrix.python-version == '3.9' && startsWith(github.ref, 'refs/tags/')
74+
- if: matrix.python-version == '3.10' && startsWith(github.ref, 'refs/tags/')
7575
name: Check artifacts
7676
run: |
7777
ls -al dist/
7878
rm dist/monai*.tar.gz
7979
ls -al dist/
8080
8181
# remove publishing to Test PyPI as it is moved to blossom
82-
# - if: matrix.python-version == '3.9' && startsWith(github.ref, 'refs/tags/')
82+
# - if: matrix.python-version == '3.10' && startsWith(github.ref, 'refs/tags/')
8383
# name: Publish to Test PyPI
8484
# uses: pypa/gh-action-pypi-publish@release/v1
8585
# with:
@@ -97,10 +97,10 @@ jobs:
9797
# full history so that we can git describe
9898
with:
9999
fetch-depth: 0
100-
- name: Set up Python 3.9
100+
- name: Set up Python 3.10
101101
uses: actions/setup-python@v6
102102
with:
103-
python-version: '3.9'
103+
python-version: '3.10'
104104
- shell: bash
105105
run: |
106106
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;

.github/workflows/setupapp.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
runs-on: ubuntu-latest
8282
strategy:
8383
matrix:
84-
python-version: ['3.9', '3.10', '3.11']
84+
python-version: ['3.10', '3.11', '3.12']
8585
steps:
8686
- uses: actions/checkout@v5
8787
with:
@@ -127,10 +127,10 @@ jobs:
127127
install: # pip install from github url, the default branch is dev
128128
runs-on: ubuntu-latest
129129
steps:
130-
- name: Set up Python 3.9
130+
- name: Set up Python 3.10
131131
uses: actions/setup-python@v6
132132
with:
133-
python-version: '3.9'
133+
python-version: '3.10'
134134
- name: cache weekly timestamp
135135
id: pip-cache
136136
run: |

.github/workflows/weekly-preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
opt: ["codeformat", "pytype", "mypy"]
1313
steps:
1414
- uses: actions/checkout@v5
15-
- name: Set up Python 3.9
15+
- name: Set up Python 3.10
1616
uses: actions/setup-python@v6
1717
with:
18-
python-version: '3.9'
18+
python-version: '3.10'
1919
- name: cache weekly timestamp
2020
id: pip-cache
2121
run: |
@@ -46,10 +46,10 @@ jobs:
4646
with:
4747
ref: dev
4848
fetch-depth: 0
49-
- name: Set up Python 3.9
49+
- name: Set up Python 3.10
5050
uses: actions/setup-python@v6
5151
with:
52-
python-version: '3.9'
52+
python-version: '3.10'
5353
- name: Install setuptools
5454
run: |
5555
python -m pip install --user --upgrade setuptools wheel packaging

docs/.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version: 2
66
build:
77
os: ubuntu-22.04
88
tools:
9-
python: "3.9"
9+
python: "3.10"
1010
sphinx:
1111
configuration: docs/source/conf.py
1212
python:

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ itk>=5.2
66
nibabel
77
parameterized
88
scikit-image>=0.19.0
9-
scipy>=1.12.0; python_version >= '3.9'
9+
scipy>=1.12.0
1010
tensorboard
1111
commonmark==0.9.1
1212
recommonmark==0.6.0

docs/source/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
---
2121

22-
MONAI's core functionality is written in Python 3 (>= 3.9) and only requires [Numpy](https://numpy.org/) and [Pytorch](https://pytorch.org/).
22+
MONAI's core functionality is written in Python 3 (>= 3.10) and only requires [Numpy](https://numpy.org/) and [Pytorch](https://pytorch.org/).
2323

2424
The package is currently distributed via Github as the primary source code repository,
2525
and the Python package index (PyPI). The pre-built Docker images are made available on DockerHub.
@@ -245,7 +245,7 @@ this will install PyTorch as well as `pytorch-cuda`, please follow https://pytor
245245
```bash
246246
git clone https://github.com/Project-MONAI/MONAI.git
247247
cd MONAI/
248-
conda create -n <name> python=<ver> # eg 3.9
248+
conda create -n <name> python=<ver> # eg 3.10
249249
conda env update -n <name> -f environment-dev.yml
250250
```
251251

0 commit comments

Comments
 (0)