From f45d54abba37c405f4d20747b9f43f0f84b826c8 Mon Sep 17 00:00:00 2001 From: nolan1999 Date: Wed, 9 Jul 2025 21:11:48 +0200 Subject: [PATCH] [FIX] Correct poetry version --- pyproject.toml | 3 ++- scripts/setup.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8798a44..b8b5b0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,7 @@ version = "0.1.0" description = "Worker-facing API of DECODE OpenCloud." authors = ["Arthur Jaques "] readme = "README.md" +requires-poetry = "2.1.3" [tool.poetry.dependencies] python = "3.11.10" @@ -43,7 +44,7 @@ types-docker = "^7.1.0.20240827" ipython = "^8.29.0" [build-system] -requires = ["poetry-core=1.8.4"] +requires = ["poetry-core==1.9.1"] build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] diff --git a/scripts/setup.sh b/scripts/setup.sh index 7d840c3..71959bb 100644 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -1,3 +1,3 @@ -POETRY_VERSION=$(grep -Po '(?<=^requires = \["poetry-core=)[^"]*' pyproject.toml) +POETRY_VERSION=$(grep '^requires-poetry' pyproject.toml | sed -E 's/.*=\s*"([0-9]+\.[0-9]+\.[0-9]+)".*/\1/') pip install "poetry==$POETRY_VERSION" -poetry install --no-dev --no-interaction --no-ansi +poetry install --without dev --no-interaction --no-ansi