From 63be161b4a3fb3e45ef361100f8d25b0af92b5e2 Mon Sep 17 00:00:00 2001 From: Aleksei Filatov <68555560+aalexfvk@users.noreply.github.com> Date: Mon, 23 Sep 2024 20:21:31 +0300 Subject: [PATCH] Fix "TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'" (#236) * Fix TypeError: canonicalize_version() * Remove test dockerfile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 04045cd..a2dd707 100644 --- a/Makefile +++ b/Makefile @@ -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)