From 6ad108cfd948aadf9be2ebf32d16b7700fb5fedb Mon Sep 17 00:00:00 2001 From: Thierry Jean <68975210+zilto@users.noreply.github.com> Date: Wed, 29 Jan 2025 07:49:25 -0500 Subject: [PATCH] pin poetry==1.8.5 in CI and Makefile (#596) * pin poetry==1.8.5 The major update to poetry 2.0 broke the project Makefile and several workflows. These changes mimic changes to dlt's main repo commit: https://github.com/dlt-hub/dlt/commit/c7c33709e007b32240c14bce1a77e002eefe1c5f * pin poetry==1.8.5 in makefile --------- Co-authored-by: zilto --- .github/workflows/init.yml | 1 + .github/workflows/lint.yml | 1 + .github/workflows/test_all_sources_nigthly.yml | 1 + .github/workflows/test_destinations_slow.yml | 1 + .github/workflows/test_on_local_destinations.yml | 1 + .github/workflows/test_on_local_destinations_forks.yml | 1 + Makefile | 2 +- 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/init.yml b/.github/workflows/init.yml index c6bf0c682..de6a2dbd4 100644 --- a/.github/workflows/init.yml +++ b/.github/workflows/init.yml @@ -30,6 +30,7 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true installer-parallel: true + version: 1.8.5 # - name: Load cached venv # id: cached-poetry-dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index de5a80cbb..703c94954 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -34,6 +34,7 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true installer-parallel: true + version: 1.8.5 - name: Load cached venv id: cached-poetry-dependencies diff --git a/.github/workflows/test_all_sources_nigthly.yml b/.github/workflows/test_all_sources_nigthly.yml index cb695ae54..5c6299b53 100644 --- a/.github/workflows/test_all_sources_nigthly.yml +++ b/.github/workflows/test_all_sources_nigthly.yml @@ -32,6 +32,7 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true installer-parallel: true + version: 1.8.5 - name: Load cached venv id: cached-poetry-dependencies diff --git a/.github/workflows/test_destinations_slow.yml b/.github/workflows/test_destinations_slow.yml index 3ed58dc34..d81598c8d 100644 --- a/.github/workflows/test_destinations_slow.yml +++ b/.github/workflows/test_destinations_slow.yml @@ -69,6 +69,7 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true installer-parallel: true + version: 1.8.5 - name: Load cached venv id: cached-poetry-dependencies diff --git a/.github/workflows/test_on_local_destinations.yml b/.github/workflows/test_on_local_destinations.yml index 543093134..0c59f60b4 100644 --- a/.github/workflows/test_on_local_destinations.yml +++ b/.github/workflows/test_on_local_destinations.yml @@ -63,6 +63,7 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true installer-parallel: true + version: 1.8.5 - name: Load cached venv id: cached-poetry-dependencies diff --git a/.github/workflows/test_on_local_destinations_forks.yml b/.github/workflows/test_on_local_destinations_forks.yml index 53f78c9e9..03da8f41a 100644 --- a/.github/workflows/test_on_local_destinations_forks.yml +++ b/.github/workflows/test_on_local_destinations_forks.yml @@ -81,6 +81,7 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true installer-parallel: true + version: 1.8.5 - name: Load cached venv id: cached-poetry-dependencies diff --git a/Makefile b/Makefile index 62b249ebe..f55678fb1 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ install-poetry: ifneq ($(VIRTUAL_ENV),) $(error you cannot be under virtual environment $(VIRTUAL_ENV)) endif - curl -sSL https://install.python-poetry.org | python3 - + curl -sSL https://install.python-poetry.org | python3 - --version 1.8.5 has-poetry: poetry --version