From 160183b1f0d6d1b745d058f2772c63ca758987f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Farias?= Date: Mon, 6 Jan 2025 16:22:16 +0100 Subject: [PATCH 1/2] Install poetry export (#2889) * Install poetry export * Add version check * Remove debug line --- tests/Dockerfile | 2 ++ tests/pyproject.toml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tests/Dockerfile b/tests/Dockerfile index d66119e929..923ed8cb85 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -4,6 +4,8 @@ WORKDIR /usr/src/app RUN pip install poetry +RUN pip install poetry-plugin-export + COPY pyproject.toml poetry.lock ./ RUN poetry export --without-hashes -f requirements.txt --output requirements.txt diff --git a/tests/pyproject.toml b/tests/pyproject.toml index e738c23fcc..bee5c763d3 100644 --- a/tests/pyproject.toml +++ b/tests/pyproject.toml @@ -28,6 +28,9 @@ packages = [ {include="fleet_api"} ] +[tool.poetry.requires-plugins] +poetry-plugin-export = ">1.8" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" From e629e06c9036f4f3008d3c6637e553bb122ea7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Farias?= Date: Mon, 6 Jan 2025 16:54:23 +0100 Subject: [PATCH 2/2] Install poetry export on hermit init env (#2892) --- .github/actions/hermit/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/hermit/action.yml b/.github/actions/hermit/action.yml index 5427236758..27a06b172b 100644 --- a/.github/actions/hermit/action.yml +++ b/.github/actions/hermit/action.yml @@ -67,6 +67,10 @@ runs: name: Install poetry shell: bash run: pip3 install poetry + - if: ${{ inputs.init-tools == 'true' }} + name: Install poetry-plugin-export + shell: bash + run: pip3 install poetry-plugin-export - if: ${{ inputs.init-tools == 'true' }} name: Install tests poetry dependencies shell: bash