From 233d9d3512b34dab337f82c8d67860f63fa69b28 Mon Sep 17 00:00:00 2001 From: Chester Curme Date: Sat, 28 Sep 2024 14:45:27 -0400 Subject: [PATCH] python3.13.0-rc.2 -> python3.13 --- .github/actions/poetry_setup/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/poetry_setup/action.yml b/.github/actions/poetry_setup/action.yml index 68b099f0e55..d15ec957844 100644 --- a/.github/actions/poetry_setup/action.yml +++ b/.github/actions/poetry_setup/action.yml @@ -55,11 +55,13 @@ runs: # Refresh the shell hashtable, to ensure correct `which` output. hash -r + PYTHON_MAJOR_MINOR=$(echo "$PYTHON_VERSION" | sed -E 's/^([0-9]+\.[0-9]+).*/\1/') + # `actions/cache@v3` doesn't always seem able to correctly unpack softlinks. # Delete and recreate the softlinks pipx expects to have. rm /opt/pipx/venvs/poetry/bin/python cd /opt/pipx/venvs/poetry/bin - ln -s "$(which "python$PYTHON_VERSION")" python + ln -s "$(which "python$PYTHON_MAJOR_MINOR")" python chmod +x python cd /opt/pipx_bin/ ln -s /opt/pipx/venvs/poetry/bin/poetry poetry