Skip to content

Commit

Permalink
chore(docker): Update Poetry to the latest version
Browse files Browse the repository at this point in the history
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]: python-poetry/poetry#9029 (comment)

Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed May 27, 2024
1 parent 1765a15 commit 45edf1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion docker/versions.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45edf1c

Please sign in to comment.