Skip to content

Commit

Permalink
Fix TypeError: canonicalize_version()
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexfvk committed Sep 23, 2024
1 parent 0e66e24 commit 7813509
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ARG BASE_IMAGE=python:3.10.15-bookworm
FROM $BASE_IMAGE

ARG DEBIAN_FRONTEND=noninteractive

# Install poetry in a unified way
COPY . ./

RUN make install-poetry
RUN make lint
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ $(INSTALL_DEPS_STAMP): $(VENV_DIR) pyproject.toml poetry.lock
@if [[ -n "${UPDATE_POETRY_LOCK}" ]]; then \
$(POETRY) update --lock; \
fi
# Fix "TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'"
# Related issue https://github.com/pypa/setuptools/issues/4483
# TODO: Try to remove this workaround after upgrading Poetry and Python version
$(VENV_DIR)/bin/pip install "setuptools<71"
$(POETRY) install --no-root
touch $(INSTALL_DEPS_STAMP)

Expand Down

0 comments on commit 7813509

Please sign in to comment.