diff --git a/pyproject.toml b/pyproject.toml index d271a7f..df59d6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,7 @@ version = "0.1.0" description = "User-facing API of DECODE OpenCloud." authors = ["Arthur Jaques "] readme = "README.md" +requires-poetry = "2.1.3" [tool.poetry.dependencies] python = "3.11.10" @@ -45,7 +46,7 @@ types-pyyaml = "^6.0.12.20240917" moto = "^5.0.21" [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