Skip to content

Commit

Permalink
deps(docker): Pin setuptools version to 74.1.3
Browse files Browse the repository at this point in the history
Version 75.0.0 of setuptools adds a dependency on jaraco.collections [1]
which causes the following error when running python-inspector [2]:

    ImportError: cannot import name 'splat' from 'jaraco.functools'

[1]: https://setuptools.pypa.io/en/latest/history.html#v75-0-0
[2]: aboutcode-org/python-inspector#190

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>
  • Loading branch information
mnonnenmacher committed Sep 20, 2024
1 parent a73c5b0 commit 4b8a796
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ ARG CONAN_VERSION
ARG PYTHON_INSPECTOR_VERSION
ARG PYTHON_PIPENV_VERSION
ARG PYTHON_POETRY_VERSION
ARG PYTHON_SETUPTOOLS_VERSION
ARG PIPTOOL_VERSION
ARG SCANCODE_VERSION

Expand All @@ -164,7 +165,8 @@ RUN pip install --no-cache-dir -U \
conan=="$CONAN_VERSION" \
pipenv=="$PYTHON_PIPENV_VERSION" \
poetry=="$PYTHON_POETRY_VERSION" \
python-inspector=="$PYTHON_INSPECTOR_VERSION"
python-inspector=="$PYTHON_INSPECTOR_VERSION" \
setuptools=="$PYTHON_SETUPTOOLS_VERSION"

FROM scratch AS python
COPY --from=pythonbuild /opt/python /opt/python
Expand Down
1 change: 1 addition & 0 deletions docker/versions.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ARG PYENV_GIT_TAG=v2.4.13
ARG PYTHON_INSPECTOR_VERSION=0.10.0
ARG PYTHON_PIPENV_VERSION=2023.12.1
ARG PYTHON_POETRY_VERSION=1.8.3
ARG PYTHON_SETUPTOOLS_VERSION=74.1.3
ARG PYTHON_VERSION=3.11.10
ARG RUBY_VERSION=3.1.2
ARG RUST_VERSION=1.72.0
Expand Down

0 comments on commit 4b8a796

Please sign in to comment.