Skip to content

Commit 6a2ff2d

Browse files
committed
fix: Support for Python 3.11
Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
1 parent 616638f commit 6a2ff2d

File tree

4 files changed

+14
-32
lines changed

4 files changed

+14
-32
lines changed

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.12-slim
1+
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11-slim
22
ENV PYTHONUNBUFFERED=1
33
ENV PIP_DEFAULT_TIMEOUT=100
44
WORKDIR /code

backend/app/app/core/runners.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
from typing import Literal, Optional, Protocol
2+
from typing import Literal, Optional, Protocol, Type
33
from app.services.tuxsuite_service import run_tuxsuite_tests, run_tuxsuite_build
44
from app.utils.exceptions.runner_exceptions import RunnerNotSupported
55

6-
type AVAILABLE_RUNNERS = Literal['tuxsuite']
6+
AVAILABLE_RUNNERS = Literal['tuxsuite']
77

88
class TestRunner(Protocol):
99
def __call__(self, kernel_url: str, modules_url: Optional[str], tests: list[str], device: str, callback: str) -> str:

backend/app/poetry.lock

Lines changed: 10 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/app/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ requires = ["poetry-core"]
3636
build-backend = "poetry.core.masonry.api"
3737

3838
[tool.poetry.dependencies]
39-
python = ">=3.12,<4.0"
39+
python = ">=3.11,<3.13"
4040
fastapi = { extras = ["all"], version = "^0.115.12" }
4141
fastapi-pagination = { extras = ["sqlalchemy"], version = "^0.12.34" }
4242
kcidb = { git = "https://git@github.com/kernelci/kcidb.git" }

0 commit comments

Comments
 (0)