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

Commit 9bfb77e

Browse files
committed
chore: update Python version
1 parent 1414fb5 commit 9bfb77e

7 files changed

Lines changed: 19 additions & 23 deletions

File tree

.github/actions/setup-python/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ runs:
1818
env:
1919
PYTHON_REQUIREMENTS_PATHS: ${{ inputs.python-requirements-paths }}
2020
with:
21-
python-version: "3.12.11"
21+
python-version: "3.13.11"
2222
cache: "pip"
2323
cache-dependency-path: ${{ env.PYTHON_REQUIREMENTS_PATHS }}
24+
- name: Install system dependencies
25+
shell: bash
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y libxml2-dev libxslt1-dev python3-dev
2429
- name: Install Python dependencies
2530
if: ${{ inputs.install-dependencies == 'true' }}
2631
shell: bash

engine/Dockerfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12.11-alpine3.21@sha256:aed27d7387bcf51a8f43b4a5b998857591c7933caa405920267ad42fb609a6d5 AS base
1+
FROM python:3.13.11-alpine3.22 AS base
22
ARG TARGETPLATFORM
33

44
# Create a group and user to run an app
@@ -13,22 +13,18 @@ RUN apk add bash \
1313
pcre-dev \
1414
mariadb-connector-c-dev \
1515
libffi-dev \
16+
libxslt-dev \
17+
libxml2-dev \
1618
git \
1719
postgresql-dev
1820

1921
WORKDIR /etc/app
2022
COPY ./requirements.txt ./
21-
COPY ./grpcio-1.64.1-cp312-cp312-linux_aarch64.whl ./
22-
23-
# grpcio is not available for arm64 on pypi, so we need to install it from a local wheel
24-
# this can be removed once https://github.com/grpc/grpc/issues/34998 is resolved
25-
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
26-
pip install grpcio-1.64.1-cp312-cp312-linux_aarch64.whl \
27-
&& rm grpcio-1.64.1-cp312-cp312-linux_aarch64.whl; \
28-
fi
2923

3024
RUN pip install -U uv setuptools pip
3125

26+
RUN uv python pin 3.13.11
27+
3228
# TODO: figure out how to get this to work.. see comment in .github/workflows/e2e-tests.yml
3329
# https://stackoverflow.com/a/71846527
3430
# RUN --mount=type=cache,target=/root/.cache/pip,from=pip_cache pip install -r requirements.txt

engine/grpcio-1.64.1-cp312-cp312-linux_aarch64.whl

Lines changed: 0 additions & 3 deletions
This file was deleted.

engine/requirements.in

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ djangorestframework==3.15.2
2525
factory-boy<3.0
2626
drf-spectacular==0.28.0
2727
emoji==2.4.0
28-
# If the version of grpcio is changed
29-
# upload a new arm64 wheel instead of /engine/grpcio-1.57.0-cp311-cp311-linux_aarch64.whl
30-
grpcio==1.64.1
28+
grpcio==1.76.0
3129
fcm-django @ https://github.com/grafana/fcm-django/archive/refs/tags/v1.0.12r1.tar.gz#sha256=7ec7cd9d353fc9edf19a4acd4fa14090a31d83d02ac986c5e5e081dea29f564f
3230
hiredis==2.2.3
3331
humanize==4.10.0
@@ -46,7 +44,7 @@ opentelemetry-instrumentation-django==0.47b0
4644
phonenumbers==8.10.0
4745
prometheus_client==0.16.0
4846
psutil==5.9.4
49-
psycopg2==2.9.3
47+
psycopg2==2.9.11
5048
pymdown-extensions==10.0
5149
PyMySQL==1.1.1
5250
python-telegram-bot==22.5
@@ -59,7 +57,7 @@ slack_sdk==3.21.3
5957
social-auth-app-django==5.4.1
6058
twilio~=6.37.0
6159
urllib3==2.6.3
62-
uwsgi==2.0.28
60+
uwsgi==2.0.31
6361
whitenoise==5.3.0
6462
google-api-python-client==2.122.0
6563
google-auth-httplib2==0.2.0

engine/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ googleapis-common-protos==1.70.0
202202
# opentelemetry-exporter-otlp-proto-grpc
203203
gprof2dot==2025.4.14
204204
# via django-silk
205-
grpcio==1.64.1
205+
grpcio==1.76.0
206206
# via
207207
# -r requirements.in
208208
# google-api-core
@@ -350,7 +350,7 @@ protobuf==4.25.8
350350
# proto-plus
351351
psutil==5.9.4
352352
# via -r requirements.in
353-
psycopg2==2.9.3
353+
psycopg2==2.9.11
354354
# via -r requirements.in
355355
pyasn1==0.6.1
356356
# via
@@ -481,7 +481,7 @@ urllib3==2.6.3
481481
# botocore
482482
# django-anymail
483483
# requests
484-
uwsgi==2.0.28
484+
uwsgi==2.0.31
485485
# via -r requirements.in
486486
vine==5.1.0
487487
# via

tools/migrators/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12.11-alpine3.21@sha256:aed27d7387bcf51a8f43b4a5b998857591c7933caa405920267ad42fb609a6d5
1+
FROM python:3.13.11-alpine3.22
22

33
ENV PYTHONUNBUFFERED=1
44
WORKDIR /app

tools/migrators/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ six==1.17.0
6060
# via
6161
# kubernetes
6262
# python-dateutil
63-
urllib3==2.6.0
63+
urllib3==2.6.3
6464
# via
6565
# kubernetes
6666
# pdpyras

0 commit comments

Comments
 (0)