From 34573e115daaa8e2291d353622c7bdac3ab915ae Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Thu, 7 Nov 2024 12:00:07 -0800 Subject: [PATCH 1/2] Pin pip to a specific version The latest version of pip and pip-tools creates absolute paths instead of relative paths when compiling requirements files. Pin pip to version 24.3, which should keep the relative paths. --- setup-pip-tools/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup-pip-tools/action.yml b/setup-pip-tools/action.yml index ac2eb1d..9c447b0 100644 --- a/setup-pip-tools/action.yml +++ b/setup-pip-tools/action.yml @@ -1,4 +1,4 @@ -name: "Run pip-compile" +name: "Set up pip-tools" description: "Install pip-tools and run pip-compile on a set of requirements files." inputs: pip-tools-version: @@ -24,7 +24,9 @@ runs: shell: bash - name: Install pip-tools + # The latest version of pip and pip-tools creates absolute paths instead of relative paths + # when compiling requirements files. run: | - python -m pip install --upgrade pip + pip install --upgrade pip==24.3 pip install ${{ steps.get-pip-tools-version-suffix.outputs.PIP_TOOLS_VERSION }} shell: bash From c07f7c5c24c25a231bf66ddaab6bb0d44657b4d9 Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Thu, 7 Nov 2024 12:14:27 -0800 Subject: [PATCH 2/2] Change pip version to a lower version --- setup-pip-tools/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-pip-tools/action.yml b/setup-pip-tools/action.yml index 9c447b0..57ee2b4 100644 --- a/setup-pip-tools/action.yml +++ b/setup-pip-tools/action.yml @@ -27,6 +27,6 @@ runs: # The latest version of pip and pip-tools creates absolute paths instead of relative paths # when compiling requirements files. run: | - pip install --upgrade pip==24.3 + pip install --upgrade pip==24.2 pip install ${{ steps.get-pip-tools-version-suffix.outputs.PIP_TOOLS_VERSION }} shell: bash