From 8bcee060af518c937da28bcdd0bd2934a7575bc3 Mon Sep 17 00:00:00 2001 From: Akifumi Imanishi Date: Tue, 17 Oct 2023 07:05:53 +0000 Subject: [PATCH] Support Python 3.12 --- .pfnci/coverage.rst | 36 +++++++++++++++++++-- .pfnci/linux/tests/cuda122.Dockerfile | 4 +-- .pfnci/linux/tests/cuda122.multi.Dockerfile | 4 +-- .pfnci/matrix.yaml | 2 +- .pfnci/schema.yaml | 8 +++-- 5 files changed, 44 insertions(+), 10 deletions(-) diff --git a/.pfnci/coverage.rst b/.pfnci/coverage.rst index 209cce309f7..908b597ab9a 100644 --- a/.pfnci/coverage.rst +++ b/.pfnci/coverage.rst @@ -1257,7 +1257,7 @@ CuPy CI Test Coverage - * - - 3.11 - - 15 + - 13 - - - @@ -1276,17 +1276,49 @@ CuPy CI Test Coverage - - ✅ - ✅ + - + - + - + - - ✅ - ✅ - + - ✅ - - ✅ - ✅ + * - + - 3.12 + - 2 + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - ✅ - - ✅ - ✅ + - + - + - + - + - + - + - + - + - * - - pre - 🚨 diff --git a/.pfnci/linux/tests/cuda122.Dockerfile b/.pfnci/linux/tests/cuda122.Dockerfile index b61b4bd4bac..7c5119987ea 100644 --- a/.pfnci/linux/tests/cuda122.Dockerfile +++ b/.pfnci/linux/tests/cuda122.Dockerfile @@ -24,8 +24,8 @@ RUN /update-alternatives-cutensor.sh RUN git clone https://github.com/pyenv/pyenv.git /opt/pyenv ENV PYENV_ROOT "/opt/pyenv" ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}" -RUN pyenv install 3.11.0 && \ - pyenv global 3.11.0 && \ +RUN pyenv install 3.12.0 && \ + pyenv global 3.12.0 && \ pip install -U setuptools pip wheel RUN pip install -U 'numpy==1.26.*' 'scipy==1.11.*' 'optuna==3.*' 'cython==0.29.*' diff --git a/.pfnci/linux/tests/cuda122.multi.Dockerfile b/.pfnci/linux/tests/cuda122.multi.Dockerfile index bf3ce009807..5ca508efb15 100644 --- a/.pfnci/linux/tests/cuda122.multi.Dockerfile +++ b/.pfnci/linux/tests/cuda122.multi.Dockerfile @@ -24,8 +24,8 @@ RUN /update-alternatives-cutensor.sh RUN git clone https://github.com/pyenv/pyenv.git /opt/pyenv ENV PYENV_ROOT "/opt/pyenv" ENV PATH "${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}" -RUN pyenv install 3.11.0 && \ - pyenv global 3.11.0 && \ +RUN pyenv install 3.12.0 && \ + pyenv global 3.12.0 && \ pip install -U setuptools pip wheel RUN pip install -U 'numpy==1.26.*' 'scipy==1.11.*' 'optuna==3.*' 'mpi4py==3.*' 'cython==0.29.*' diff --git a/.pfnci/matrix.yaml b/.pfnci/matrix.yaml index ae6074a59e3..15f63d250fc 100644 --- a/.pfnci/matrix.yaml +++ b/.pfnci/matrix.yaml @@ -286,7 +286,7 @@ cutensor: "1.7" cusparselt: "0.2.0" cudnn: "8.8" - python: "3.11" + python: "3.12" numpy: "1.26" scipy: "1.11" optuna: "3" diff --git a/.pfnci/schema.yaml b/.pfnci/schema.yaml index 4efaf9c3fc2..6708e0861d7 100644 --- a/.pfnci/schema.yaml +++ b/.pfnci/schema.yaml @@ -224,8 +224,10 @@ python: spec: "3.10.0" "3.11": spec: "3.11.0" + "3.12": + spec: "3.12.0" "pre": - spec: "3.12.0a1" # note that dependency python libraies may not work + spec: "3.13.0a1" # note that dependency python libraies may not work ############################################################################### # Python Libraries @@ -267,7 +269,7 @@ numpy: - "3.9" - "3.10" - "3.11" - # - "3.12" + - "3.12" "pre": spec: ">=0a0" # latest, including pre-releases scipy: @@ -340,7 +342,7 @@ scipy: - "3.9" - "3.10" - "3.11" - # - "3.12" + - "3.12" numpy: # - "1.21" - "1.22"