From 45edf1cd4292dc749567c3b2c9a6032db16b7432 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Wed, 22 May 2024 13:55:35 +0200 Subject: [PATCH] chore(docker): Update Poetry to the latest version When only changing the Poetry to 1.8.3 [1], the Python image ends up with the `packaging` package installed in version 21.3. With that `packaging` version executing Poetry always fails with [2]. So, install the latest packaging version as a work around, see also [3]. [1]: https://github.com/python-poetry/poetry/releases/tag/1.8.3 [2]: `No module named 'packaging.metadata'` [3]: https://github.com/python-poetry/poetry/issues/9029#issue-2153105325 Signed-off-by: Frank Viernau --- Dockerfile | 1 + docker/versions.dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 44c7888031966..3b11ecf0551cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -159,6 +159,7 @@ RUN pip install --no-cache-dir -U \ && pip install --no-cache-dir -U \ Mercurial \ conan=="$CONAN_VERSION" \ + packaging==24.0.0 \ pip \ pipenv=="$PYTHON_PIPENV_VERSION" \ poetry=="$PYTHON_POETRY_VERSION" \ diff --git a/docker/versions.dockerfile b/docker/versions.dockerfile index 3687ca75a5a4a..b4b63b17f42f8 100644 --- a/docker/versions.dockerfile +++ b/docker/versions.dockerfile @@ -21,7 +21,7 @@ ARG PNPM_VERSION=8.10.3 ARG PYENV_GIT_TAG=v2.3.36 ARG PYTHON_INSPECTOR_VERSION=0.10.0 ARG PYTHON_PIPENV_VERSION=2023.12.1 -ARG PYTHON_POETRY_VERSION=1.7.0 +ARG PYTHON_POETRY_VERSION=1.8.3 ARG PYTHON_VERSION=3.11.8 ARG RUBY_VERSION=3.1.2 ARG RUST_VERSION=1.72.0