Skip to content

Commit

Permalink
Switch to python 3.12.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jcristau committed Jan 9, 2025
1 parent 8f0df87 commit 78e6ff2
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# WARNING: Update taskcluster/docker/k8s-image/Dockerfile file when you update
# this one. Or better, find a way to use the same Dockerfile
FROM python:3.9
FROM python:3.12

RUN groupadd --gid 10001 app && \
useradd -g app --uid 10001 --shell /usr/sbin/nologin --create-home --home-dir /app app
Expand Down
2 changes: 1 addition & 1 deletion api/Dockerfile.public
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# WARNING: Update taskcluster/docker/k8s-image/Dockerfile file when you update
# this one. Or better, find a way to use the same Dockerfile
FROM python:3.9
FROM python:3.12

RUN groupadd --gid 10001 app && \
useradd -g app --uid 10001 --shell /usr/sbin/nologin --create-home --home-dir /app app
Expand Down
6 changes: 3 additions & 3 deletions api/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ passenv =
PYTHON_VERSION
TOXENV
setenv =
PYTHON_VERSION=3.9.18
TOXENV=check,py39
PYTHON_VERSION=3.12.8
TOXENV=check,py312
deps =
usedevelop = false
depends =
Expand Down Expand Up @@ -46,7 +46,7 @@ passenv = COVERAGE_REPORT_COMMAND
commands =
poetry install --only test
poetry run {env:COVERAGE_REPORT_COMMAND:coverage report}
depends = py39
depends = py312
parallel_show_output = true

[testenv:check]
Expand Down
8 changes: 8 additions & 0 deletions taskcluster/kinds/docker-image/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ tasks:
definition: python
args:
PYTHON_VERSION: "3.9.13"
python312:
definition: python
args:
PYTHON_VERSION: "3.12.8"
python313:
definition: python
args:
PYTHON_VERSION: "3.13.1"
node14:
definition: node
args:
Expand Down
4 changes: 2 additions & 2 deletions taskcluster/kinds/k8s-image/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tasks:
shipit-admin:
definition: shipit
args:
PYTHON_VERSION: "3.9"
PYTHON_VERSION: "3.12"
APP_TYPE: admin
# Use plain text "<self>" instead of using {"task-reference":
# "<self>"}, because the docker_image transform expects args to be
Expand All @@ -25,7 +25,7 @@ tasks:
shipit-public:
definition: shipit
args:
PYTHON_VERSION: "3.9"
PYTHON_VERSION: "3.12"
APP_TYPE: public
# Use plain text "<self>" instead of using {"task-reference":
# "<self>"}, because the docker_image transform expects args to be
Expand Down
3 changes: 2 additions & 1 deletion taskcluster/kinds/tests/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ tasks:
api-python:
description: "{name} tox-py{substitute_version}"
substitute-versions:
- 39
- 312
- 313
attributes:
artifact_prefix: public
worker:
Expand Down

0 comments on commit 78e6ff2

Please sign in to comment.