Skip to content

Commit 3497cab

Browse files
Bump Python 3 to 3.13 (DataDog#21160)
* Bump Python to 3.13 * Add changelog * Add 3.13 to test-all.yaml * Bump freezegun to 1.5.5 for Python 3.13 (DataDog#21162) * Fix Harbor SSL errors (DataDog#21176) * Add hatch-requirements-txt * lxml bump (DataDog#21230) * Force Update dep resolution * Fix sonatype_nexus project metadata * Fix kafka_consumer hatch.toml * Update docs and new integrations to use Python 3.13 * Update ddev tests --------- Co-authored-by: Steven Yuen <steven.yuen@datadoghq.com>
1 parent 5664f98 commit 3497cab

725 files changed

Lines changed: 1141 additions & 740 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.builders/deps/build_dependencies.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
hatchling==1.21.1
2+
hatch-requirements-txt
23
setuptools==75.6.0
34
wheel==0.38.4
45
setuptools-scm

.builders/images/linux-aarch64/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ RUN yum install -y perl-IPC-Cmd perl-CPANPLUS && \
3636
ldconfig
3737

3838
# Compile and install Python 3
39-
ENV PYTHON3_VERSION=3.12.10
39+
ENV PYTHON3_VERSION=3.13.7
4040
RUN yum install -y libffi-devel && \
4141
DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \
4242
VERSION="${PYTHON3_VERSION}" \
43-
SHA256="15d9c623abfd2165fe816ea1fb385d6ed8cf3c664661ab357f1782e3036a6dac" \
43+
SHA256="6c9d80839cfa20024f34d9a6dd31ae2a9cd97ff5e980e969209746037a5153b2" \
4444
RELATIVE_PATH="Python-{{version}}" \
4545
bash install-from-source.sh \
4646
--prefix=/opt/python/${PYTHON3_VERSION} \

.builders/images/linux-x86_64/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ RUN yum install -y perl-IPC-Cmd perl-CPANPLUS && \
3535
ldconfig
3636

3737
# Compile and install Python 3
38-
ENV PYTHON3_VERSION=3.12.10
38+
ENV PYTHON3_VERSION=3.13.7
3939
RUN yum install -y libffi-devel && \
4040
DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \
4141
VERSION="${PYTHON3_VERSION}" \
42-
SHA256="15d9c623abfd2165fe816ea1fb385d6ed8cf3c664661ab357f1782e3036a6dac" \
42+
SHA256="6c9d80839cfa20024f34d9a6dd31ae2a9cd97ff5e980e969209746037a5153b2" \
4343
RELATIVE_PATH="Python-{{version}}" \
4444
bash install-from-source.sh --prefix=/opt/python/${PYTHON3_VERSION} --with-ensurepip=yes --enable-ipv6 --with-dbmliborder=
4545
ENV PATH="/opt/python/${PYTHON3_VERSION}/bin:${PATH}"

.builders/images/windows-x86_64/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,17 @@ RUN Get-RemoteFile `
8585
Approve-File -Path $($Env:USERPROFILE + '\.cargo\bin\rustc.exe') -Hash $Env:RUSTC_HASH
8686

8787
# Install Python 3
88-
ENV PYTHON_VERSION="3.12.10"
88+
ENV PYTHON_VERSION="3.13.7"
8989
RUN Get-RemoteFile `
9090
-Uri https://www.python.org/ftp/python/$Env:PYTHON_VERSION/python-$Env:PYTHON_VERSION-amd64.exe `
9191
-Path python-$Env:PYTHON_VERSION-amd64.exe `
92-
-Hash '67b5635e80ea51072b87941312d00ec8927c4db9ba18938f7ad2d27b328b95fb'; `
92+
-Hash 'b12e2e82461ac8e51fc43289050bc8eb937a32d84ce4d242e2c88258c37cf2bb'; `
9393
Start-Process -Wait python-$Env:PYTHON_VERSION-amd64.exe -ArgumentList '/quiet', 'InstallAllUsers=1'; `
9494
Remove-Item python-$Env:PYTHON_VERSION-amd64.exe; `
95-
& 'C:\Program Files\Python312\python.exe' -m pip install --no-warn-script-location --upgrade pip; `
96-
& 'C:\Program Files\Python312\python.exe' -m pip install --no-warn-script-location virtualenv; `
97-
& 'C:\Program Files\Python312\python.exe' -m virtualenv 'C:\py3'; `
98-
Add-ToPath -Append 'C:\Program Files\Python312'
95+
& 'C:\Program Files\Python313\python.exe' -m pip install --no-warn-script-location --upgrade pip; `
96+
& 'C:\Program Files\Python313\python.exe' -m pip install --no-warn-script-location virtualenv; `
97+
& 'C:\Program Files\Python313\python.exe' -m virtualenv 'C:\py3'; `
98+
Add-ToPath -Append 'C:\Program Files\Python313'
9999

100100
# Install IBM MQ
101101
ENV IBM_MQ_VERSION="9.2.4.0"

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This dockerfile is used to build the devcontainer environment.
22
# more info about vscode devcontainer: https://code.visualstudio.com/docs/devcontainers/containers
3-
FROM mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
3+
FROM mcr.microsoft.com/devcontainers/python:1-3.13-bullseye
44
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y liblz4-dev libunwind-dev ca-certificates curl gnupg
55
# Docker and docker-compose installation
66
RUN install -m 0755 -d /etc/apt/keyrings

.devcontainer/dbm/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This dockerfile is used to build the devcontainer environment.
22
# more info about vscode devcontainer: https://code.visualstudio.com/docs/devcontainers/containers
3-
FROM mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
3+
FROM mcr.microsoft.com/devcontainers/python:1-3.13-bullseye
44
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y liblz4-dev libunwind-dev ca-certificates curl gnupg
55
# Docker and docker-compose installation
66
RUN install -m 0755 -d /etc/apt/keyrings

.devcontainer/dbm/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"privileged": true,
99
"features": {
1010
"ghcr.io/devcontainers/features/python:1": {
11-
"version": "3.12"
11+
"version": "3.13"
1212
}
1313
},
1414
"customizations": {

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// When updating it, modify both the base Dockerfile and the devcontainer.json reference.
1717
// Ref: https://github.com/devcontainers/features/blob/562305d37b97d47331d96306ffc2a0a3cce55e64/src/python/install.sh#L10
1818
"ghcr.io/devcontainers/features/python:1": {
19-
"version": "3.12"
19+
"version": "3.13"
2020
}
2121
},
2222

.github/workflows/build-ddev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defaults:
2424

2525
env:
2626
APP_NAME: ddev
27-
PYTHON_VERSION: "3.12"
27+
PYTHON_VERSION: "3.13"
2828
PYOXIDIZER_VERSION: "0.24.0"
2929

3030
jobs:

.github/workflows/cache-shared-deps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
os: [ubuntu-22.04, windows-2022]
1717

1818
env:
19-
PYTHON_VERSION: "3.12"
19+
PYTHON_VERSION: "3.13"
2020

2121
steps:
2222
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)