From 9c788afe532ca7b96c5e60cb79619cfc55aaa27c Mon Sep 17 00:00:00 2001 From: Kyle-Neale <37895372+Kyle-Neale@users.noreply.github.com> Date: Tue, 11 Nov 2025 15:16:55 +0000 Subject: [PATCH] Upgrade Python version --- .builders/images/linux-aarch64/Dockerfile | 4 ++-- .builders/images/linux-x86_64/Dockerfile | 4 ++-- .builders/images/windows-x86_64/Dockerfile | 4 ++-- .github/workflows/resolve-build-deps.yaml | 2 +- ddev/src/ddev/repo/constants.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.builders/images/linux-aarch64/Dockerfile b/.builders/images/linux-aarch64/Dockerfile index c5a0d0cb2c588..fd749ffd3e566 100644 --- a/.builders/images/linux-aarch64/Dockerfile +++ b/.builders/images/linux-aarch64/Dockerfile @@ -36,11 +36,11 @@ RUN yum install -y perl-IPC-Cmd perl-CPANPLUS perl-core && \ ldconfig # Compile and install Python 3 -ENV PYTHON3_VERSION=3.13.7 +ENV PYTHON3_VERSION=3.13.9 RUN yum install -y libffi-devel && \ DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \ VERSION="${PYTHON3_VERSION}" \ - SHA256="6c9d80839cfa20024f34d9a6dd31ae2a9cd97ff5e980e969209746037a5153b2" \ + SHA256="c4c066af19c98fb7835d473bebd7e23be84f6e9874d47db9e39a68ee5d0ce35c" \ RELATIVE_PATH="Python-{{version}}" \ bash install-from-source.sh \ --prefix=/opt/python/${PYTHON3_VERSION} \ diff --git a/.builders/images/linux-x86_64/Dockerfile b/.builders/images/linux-x86_64/Dockerfile index d14807fd74e14..7925e85790543 100644 --- a/.builders/images/linux-x86_64/Dockerfile +++ b/.builders/images/linux-x86_64/Dockerfile @@ -35,11 +35,11 @@ RUN yum install -y perl-IPC-Cmd perl-CPANPLUS perl-core && \ ldconfig # Compile and install Python 3 -ENV PYTHON3_VERSION=3.13.7 +ENV PYTHON3_VERSION=3.13.9 RUN yum install -y libffi-devel && \ DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \ VERSION="${PYTHON3_VERSION}" \ - SHA256="6c9d80839cfa20024f34d9a6dd31ae2a9cd97ff5e980e969209746037a5153b2" \ + SHA256="c4c066af19c98fb7835d473bebd7e23be84f6e9874d47db9e39a68ee5d0ce35c" \ RELATIVE_PATH="Python-{{version}}" \ bash install-from-source.sh --prefix=/opt/python/${PYTHON3_VERSION} --with-ensurepip=yes --enable-ipv6 --with-dbmliborder= ENV PATH="/opt/python/${PYTHON3_VERSION}/bin:${PATH}" diff --git a/.builders/images/windows-x86_64/Dockerfile b/.builders/images/windows-x86_64/Dockerfile index ae66cdfc396b5..c53170e08caa0 100644 --- a/.builders/images/windows-x86_64/Dockerfile +++ b/.builders/images/windows-x86_64/Dockerfile @@ -85,11 +85,11 @@ RUN Get-RemoteFile ` Approve-File -Path $($Env:USERPROFILE + '\.cargo\bin\rustc.exe') -Hash $Env:RUSTC_HASH # Install Python 3 -ENV PYTHON_VERSION="3.13.7" +ENV PYTHON_VERSION="3.13.9" RUN Get-RemoteFile ` -Uri https://www.python.org/ftp/python/$Env:PYTHON_VERSION/python-$Env:PYTHON_VERSION-amd64.exe ` -Path python-$Env:PYTHON_VERSION-amd64.exe ` - -Hash 'b12e2e82461ac8e51fc43289050bc8eb937a32d84ce4d242e2c88258c37cf2bb'; ` + -Hash '200ddff856bbff949d2cc1be42e8807c07538abd6b6966d5113a094cf628c5c5'; ` Start-Process -Wait python-$Env:PYTHON_VERSION-amd64.exe -ArgumentList '/quiet', 'InstallAllUsers=1'; ` Remove-Item python-$Env:PYTHON_VERSION-amd64.exe; ` & 'C:\Program Files\Python313\python.exe' -m pip install --no-warn-script-location --upgrade pip; ` diff --git a/.github/workflows/resolve-build-deps.yaml b/.github/workflows/resolve-build-deps.yaml index 398e7e3ccba4a..36a527597a900 100644 --- a/.github/workflows/resolve-build-deps.yaml +++ b/.github/workflows/resolve-build-deps.yaml @@ -239,7 +239,7 @@ jobs: - name: Set up Python env: # Despite the name, this is built for the macOS 11 SDK on arm64 and 10.9+ on intel - PYTHON3_DOWNLOAD_URL: "https://www.python.org/ftp/python/3.13.7/python-3.13.7-macos11.pkg" + PYTHON3_DOWNLOAD_URL: "https://www.python.org/ftp/python/3.13.9/python-3.13.9-macos11.pkg" run: |- curl "$PYTHON3_DOWNLOAD_URL" -o python3.pkg sudo installer -pkg python3.pkg -target / diff --git a/ddev/src/ddev/repo/constants.py b/ddev/src/ddev/repo/constants.py index 24fd14fc77705..0d3bc8eada572 100644 --- a/ddev/src/ddev/repo/constants.py +++ b/ddev/src/ddev/repo/constants.py @@ -12,4 +12,4 @@ # This is automatically maintained PYTHON_VERSION = '3.13' -PYTHON_VERSION_FULL = '3.13.7' +PYTHON_VERSION_FULL = '3.13.9'