Skip to content

Commit

Permalink
Upgrade to Python 3.12 (#657)
Browse files Browse the repository at this point in the history
Update to python 3.12 for all test solutions, verify no regressions in load testing and calibrate accordingly.
  • Loading branch information
taddes committed Mar 15, 2024
1 parent 56658bf commit 293ff3a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 65 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

python-checks:
docker:
- image: python:3.10-slim-bullseye
- image: python:3.12-slim-bullseye
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
Expand All @@ -79,7 +79,7 @@ jobs:

test:
docker:
- image: python:3.10-slim-bullseye
- image: python:3.12-slim-bullseye
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
Expand Down
6 changes: 3 additions & 3 deletions tests/load/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

FROM pypy:3.10-slim-bookworm
FROM python:3.12-slim-bullseye

LABEL org.opencontainers.image.authors="contextual-services-team@mozilla.com"

# Add gcc since there are no wheels for some packages for arm64/aarch64
# (g++/make for gevent on pypy)
RUN apt-get update && apt-get install -y git && \
apt install -y --no-install-recommends gcc g++ make python3-dev
apt install -y --no-install-recommends build-essential python3-dev

ENV LANG=C.UTF-8
ENV PYTHONUNBUFFERED=1
Expand All @@ -21,7 +21,7 @@ RUN python -m pip install --upgrade pip

# Setup poetry and install requirements
ENV POETRY_VIRTUALENVS_CREATE=false \
POETRY_VERSION=1.7.0
POETRY_VERSION=1.7.0
RUN python -m pip install --no-cache-dir --quiet poetry
COPY ./tests/pyproject.toml ./tests/poetry.lock ./
RUN poetry install --without dev,integration --no-interaction --no-ansi
Expand Down
62 changes: 4 additions & 58 deletions tests/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ skip_gitignore = true
skips = ["B101", "B104", "B311", "B404"]

[tool.mypy]
python_version = "3.10"
python_version = "3.12"
disable_error_code = "attr-defined"
disallow_untyped_calls = false
follow_imports = "normal"
Expand Down Expand Up @@ -49,7 +49,7 @@ authors = ["Mozilla"]
license = "Mozilla Public License Version 2.0"

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.12"
websocket-client = "^1.7.0"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 293ff3a

Please sign in to comment.