From bea2a1c72b1b0f8346a41730b542e8df21236c6e Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Thu, 11 Apr 2024 13:42:17 -0700 Subject: [PATCH] Use unset instead --- action.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/action.yml b/action.yml index 82d2cc6..c3e49e9 100644 --- a/action.yml +++ b/action.yml @@ -67,27 +67,31 @@ runs: key: baipp-${{ env.REQS_HASH }} - name: Create venv for tools - run: > - uv venv - --system=false - /tmp/baipp - --python ${{ steps.python-baipp.outputs.python-path }} + run: | + unset UV_SYSTEM_PYTHON + + uv venv \ + /tmp/baipp \ + --python ${{ steps.python-baipp.outputs.python-path }} shell: bash - name: Install our tools - run: > - uv pip sync - ${{ github.action_path }}/requirements/tools.txt + run: | + unset UV_SYSTEM_PYTHON + + uv pip sync \ + ${{ github.action_path }}/requirements/tools.txt shell: bash env: VIRTUAL_ENV: /tmp/baipp - UV_SYSTEM_PYTHON: "false" # Build SDist, then build wheel out of it if the user didn't forbid it. # Set 'SOURCE_DATE_EPOCH' based on the last commit for build # reproducibility. - name: Build package run: | + unset UV_SYSTEM_PYTHON + echo Setting SOURCE_DATE_EPOCH to $(git log -1 --pretty=%ci). export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) @@ -98,8 +102,6 @@ runs: fi shell: bash working-directory: ${{ inputs.path }} - env: - UV_SYSTEM_PYTHON: "false" - name: Set output id: dist-location-setter