From 3ecd117c99923958434aed122820404836c2063d Mon Sep 17 00:00:00 2001 From: Randall Wang Date: Mon, 6 Jan 2025 17:36:04 +0100 Subject: [PATCH] fix build failure --- Dockerfile | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f2f10a50..0a7f6702 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 python:3.10 AS builder +FROM python:3.10 AS builder ENV PYTHONUNBUFFERED 1 @@ -12,7 +12,7 @@ RUN sed -i 's/^# *\(fr_FR.UTF-8\)/\1/' /etc/locale.gen RUN sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen RUN locale-gen -RUN pip install --no-cache-dir psycopg2 poetry +RUN pip install --no-cache-dir psycopg2 'poetry<2.0.0' RUN poetry config virtualenvs.create false diff --git a/pyproject.toml b/pyproject.toml index 71d30649..1c5fcfdc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ myst-parser = "^2.0.0" sphinx-autodoc2 = "^0.5" [build-system] -requires = ["poetry-core>=1.0.0"] +requires = ["poetry-core>=1.0.0,<2.0.0"] build-backend = "poetry.core.masonry.api" [tool.ruff.lint.isort]