Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit 524c3ae

Browse files
dfanglalexrashed
andauthored
upgrade to Python 3.13 and Debian Trixie (#13037)
Co-authored-by: Alexander Rashed <alexander.rashed@localstack.cloud>
1 parent 329a337 commit 524c3ae

20 files changed

Lines changed: 30 additions & 156 deletions

.github/workflows/asf-updates.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ jobs:
1919
sudo apt-get update
2020
sudo apt-get install jq
2121
22-
- name: Set up Python 3.11
22+
- name: Set up Python
2323
id: setup-python
2424
uses: actions/setup-python@v6
25-
with:
26-
python-version: '3.11'
2725

2826
- name: Install release helper dependencies
2927
run: pip install --upgrade setuptools setuptools_scm uv

.github/workflows/aws-main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ jobs:
105105
- name: Set up Python
106106
uses: actions/setup-python@v6
107107
with:
108-
python-version-file: '.python-version'
109108
cache: 'pip'
110109
cache-dependency-path: 'requirements-dev.txt'
111110

.github/workflows/aws-tests-s3-image.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ jobs:
115115

116116
- name: Set up Python
117117
uses: actions/setup-python@v6
118-
with:
119-
python-version: '3.11'
120118

121119
- name: Install docker build dependencies
122120
run: pip install --upgrade setuptools setuptools_scm

.github/workflows/aws-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ jobs:
281281
- 'tests/aws/services/sns/**' # todo: potentially add more locations (lambda/sqs tests?)
282282
283283
- name: Run Unit Tests
284-
timeout-minutes: 8
284+
timeout-minutes: 20
285285
env:
286286
# add the GitHub API token to avoid rate limit issues
287287
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/marker-report.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ jobs:
4545
- name: Set up Python
4646
id: setup-python
4747
uses: actions/setup-python@v6
48-
with:
49-
python-version: "3.11"
5048

5149
- name: Cache LocalStack community dependencies (venv)
5250
uses: actions/cache@v4

.github/workflows/tests-bin.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
3131
- name: Set up Python
3232
uses: actions/setup-python@v6
33-
with:
34-
python-version: '3.11'
3533

3634
- name: Install helper script dependencies
3735
run: pip install --upgrade setuptools setuptools_scm

.github/workflows/tests-podman.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ jobs:
4141

4242
- name: Set up Python
4343
uses: actions/setup-python@v6
44-
with:
45-
python-version: "3.11"
4644

4745
- name: Install podman and test dependencies
4846
run: |

.github/workflows/tests-pro-integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,17 +209,17 @@ jobs:
209209
id: setup-python
210210
uses: actions/setup-python@v6
211211
with:
212-
python-version: '3.11'
212+
python-version-file: 'localstack/.python-version'
213213

214214
- name: Set up Node 22.x
215215
uses: actions/setup-node@v5
216216
with:
217217
node-version: 22.x
218218

219-
- name: Set up JDK 11
219+
- name: Set up JDK 21
220220
uses: actions/setup-java@v5
221221
with:
222-
java-version: '11'
222+
java-version: '21'
223223
distribution: 'temurin'
224224

225225
- name: Set up Terraform

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11
1+
3.13

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# base: Stage which installs necessary runtime dependencies (OS packages, etc.)
33
#
4-
FROM python:3.11.13-slim-bookworm@sha256:873f91540d53b36327ed4fb018c9669107a4e2a676719720edb4209c4b15d029 AS base
4+
FROM python:3.13.7-slim-trixie@sha256:58c30f5bfaa718b5803a53393190b9c68bd517c44c6c94c1b6c8c172bcfad040 AS base
55
ARG TARGETARCH
66

77
# Install runtime OS package dependencies
@@ -161,9 +161,9 @@ RUN --mount=type=cache,target=/root/.cache \
161161
chmod -R 777 /usr/lib/localstack
162162

163163
# link the python package installer virtual environments into the localstack venv
164-
RUN echo /var/lib/localstack/lib/python-packages/lib/python3.11/site-packages > localstack-var-python-packages-venv.pth && \
164+
RUN echo /var/lib/localstack/lib/python-packages/lib/python3.13/site-packages > localstack-var-python-packages-venv.pth && \
165165
mv localstack-var-python-packages-venv.pth .venv/lib/python*/site-packages/
166-
RUN echo /usr/lib/localstack/python-packages/lib/python3.11/site-packages > localstack-static-python-packages-venv.pth && \
166+
RUN echo /usr/lib/localstack/python-packages/lib/python3.13/site-packages > localstack-static-python-packages-venv.pth && \
167167
mv localstack-static-python-packages-venv.pth .venv/lib/python*/site-packages/
168168

169169
# expose edge service, external service ports, and debugpy

0 commit comments

Comments
 (0)