From 8e39e958f2dfcc80d8427c0d91b53e915668af24 Mon Sep 17 00:00:00 2001 From: Kishan B Date: Mon, 11 Nov 2024 17:08:01 +0530 Subject: [PATCH 1/6] Use unmanaged installation --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 8b1e135..1e49f25 100644 --- a/action.yml +++ b/action.yml @@ -24,8 +24,10 @@ runs: - name: Install uv shell: bash run: | - echo "Installing uv.. HOME=${HOME}" - curl -LsSf https://astral.sh/uv/install.sh | bash --login + installation_directory="${HOME}/.setup-python-amazon-linux/uv" + echo "Installing uv.. installation_directory=${installation_directory}" + curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL="${installation_directory}" sh + echo "${installation_directory}" >> "${GITHUB_PATH}" - name: Find desired python version id: find-desired-python-version From 240524f8fc77776306ef51c6b068885aab48d0fa Mon Sep 17 00:00:00 2001 From: Kishan B Date: Mon, 11 Nov 2024 21:32:10 +0530 Subject: [PATCH 2/6] Refactor installation logic --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1e49f25..06a75b8 100644 --- a/action.yml +++ b/action.yml @@ -26,7 +26,8 @@ runs: run: | installation_directory="${HOME}/.setup-python-amazon-linux/uv" echo "Installing uv.. installation_directory=${installation_directory}" - curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL="${installation_directory}" sh + uv_version="0.5.1" + curl -LsSf "https://github.com/astral-sh/uv/releases/download/${uv_version}/uv-installer.sh" | UV_UNMANAGED_INSTALL="${installation_directory}" bash --login echo "${installation_directory}" >> "${GITHUB_PATH}" - name: Find desired python version From 033704eef849df2d4ba9b6d9207649450e532765 Mon Sep 17 00:00:00 2001 From: Kishan B Date: Wed, 25 Dec 2024 08:32:46 +0530 Subject: [PATCH 3/6] Upgrade uv to 0.5.11 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 06a75b8..feb4417 100644 --- a/action.yml +++ b/action.yml @@ -26,7 +26,7 @@ runs: run: | installation_directory="${HOME}/.setup-python-amazon-linux/uv" echo "Installing uv.. installation_directory=${installation_directory}" - uv_version="0.5.1" + uv_version="0.5.11" curl -LsSf "https://github.com/astral-sh/uv/releases/download/${uv_version}/uv-installer.sh" | UV_UNMANAGED_INSTALL="${installation_directory}" bash --login echo "${installation_directory}" >> "${GITHUB_PATH}" From 415cf38c36bbd9ba15466e8e933566e57f895030 Mon Sep 17 00:00:00 2001 From: Kishan B Date: Wed, 4 Jun 2025 13:16:05 +0530 Subject: [PATCH 4/6] Remove $HOME reference (#23) --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index feb4417..7c61721 100644 --- a/action.yml +++ b/action.yml @@ -24,9 +24,9 @@ runs: - name: Install uv shell: bash run: | - installation_directory="${HOME}/.setup-python-amazon-linux/uv" + installation_directory="${{ github.action_path }}/.setup-python-amazon-linux/uv" echo "Installing uv.. installation_directory=${installation_directory}" - uv_version="0.5.11" + uv_version="0.7.10" curl -LsSf "https://github.com/astral-sh/uv/releases/download/${uv_version}/uv-installer.sh" | UV_UNMANAGED_INSTALL="${installation_directory}" bash --login echo "${installation_directory}" >> "${GITHUB_PATH}" From f3b8f284fed9acb06894fc475fffd6d035ae51f3 Mon Sep 17 00:00:00 2001 From: Kishan B Date: Wed, 4 Jun 2025 15:30:31 +0530 Subject: [PATCH 5/6] Handle HOME variable (#24) --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 7c61721..f7a275a 100644 --- a/action.yml +++ b/action.yml @@ -27,7 +27,8 @@ runs: installation_directory="${{ github.action_path }}/.setup-python-amazon-linux/uv" echo "Installing uv.. installation_directory=${installation_directory}" uv_version="0.7.10" - curl -LsSf "https://github.com/astral-sh/uv/releases/download/${uv_version}/uv-installer.sh" | UV_UNMANAGED_INSTALL="${installation_directory}" bash --login + # HOME is set to foobar till this is resolved https://github.com/astral-sh/uv/issues/6965#issuecomment-2915796022 + curl -LsSf "https://github.com/astral-sh/uv/releases/download/${uv_version}/uv-installer.sh" | HOME="foobar" UV_UNMANAGED_INSTALL="${installation_directory}" bash --login echo "${installation_directory}" >> "${GITHUB_PATH}" - name: Find desired python version From 63dc7bd642c6a564d0a93dd4b1cbe3e448ce3621 Mon Sep 17 00:00:00 2001 From: Kishan B Date: Fri, 19 Sep 2025 21:09:22 +0530 Subject: [PATCH 6/6] Upgrade uv to 0.8.18 version (#27) --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index f7a275a..3073d93 100644 --- a/action.yml +++ b/action.yml @@ -26,7 +26,7 @@ runs: run: | installation_directory="${{ github.action_path }}/.setup-python-amazon-linux/uv" echo "Installing uv.. installation_directory=${installation_directory}" - uv_version="0.7.10" + uv_version="0.8.18" # HOME is set to foobar till this is resolved https://github.com/astral-sh/uv/issues/6965#issuecomment-2915796022 curl -LsSf "https://github.com/astral-sh/uv/releases/download/${uv_version}/uv-installer.sh" | HOME="foobar" UV_UNMANAGED_INSTALL="${installation_directory}" bash --login echo "${installation_directory}" >> "${GITHUB_PATH}"