From 409626463dc0d7c01dc8f6131eaa4a21bdb69666 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Thu, 22 May 2025 21:10:35 -0400 Subject: [PATCH] Pass through as input? --- .github/workflows/python_buildwheels.yml | 12 ++++-------- .github/workflows/python_cibuildwheel.yml | 5 ++++- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python_buildwheels.yml b/.github/workflows/python_buildwheels.yml index 13e605e7..d5307f40 100644 --- a/.github/workflows/python_buildwheels.yml +++ b/.github/workflows/python_buildwheels.yml @@ -76,8 +76,7 @@ jobs: os: ${{ matrix.os }} python-version: ${{ matrix.python-version }} arch: ${{ matrix.arch }} - env: - TESTPYPI_VERSION: "${{ needs.set-version.outputs.testpypiversion }}" + TESTPYPI_VERSION: ${{ needs.set-version.outputs.testpypiversion }} python_ubuntu_arm: needs: set-version @@ -93,8 +92,7 @@ jobs: os: ${{ matrix.os }} python-version: ${{ matrix.python-version }} arch: ${{ matrix.arch }} - env: - TESTPYPI_VERSION: "${{ needs.set-version.outputs.testpypiversion }}" + TESTPYPI_VERSION: ${{ needs.set-version.outputs.testpypiversion }} python_windows: needs: set-version @@ -113,8 +111,7 @@ jobs: os: ${{ matrix.os }} python-version: ${{ matrix.python-version }} arch: ${{ matrix.arch }} - env: - TESTPYPI_VERSION: "${{ needs.set-version.outputs.testpypiversion }}" + TESTPYPI_VERSION: ${{ needs.set-version.outputs.testpypiversion }} python_macos: needs: set-version @@ -133,8 +130,7 @@ jobs: os: ${{ matrix.os }} python-version: ${{ matrix.python-version }} arch: ${{ matrix.arch }} - env: - TESTPYPI_VERSION: "${{ needs.set-version.outputs.testpypiversion }}" + TESTPYPI_VERSION: ${{ needs.set-version.outputs.testpypiversion }} merge_wheels: runs-on: ubuntu-latest diff --git a/.github/workflows/python_cibuildwheel.yml b/.github/workflows/python_cibuildwheel.yml index ae97af82..7579bd44 100644 --- a/.github/workflows/python_cibuildwheel.yml +++ b/.github/workflows/python_cibuildwheel.yml @@ -12,6 +12,9 @@ on: arch: required: true type: string + TESTPYPI_VERSION: + required: true + type: string jobs: @@ -40,7 +43,7 @@ jobs: if [[ "$GITHUB_REF" == *"refs/tags"* ]]; then python dev/extract_version.py --pypi --replace-setup-py else - python dev/extract_version.py --replace-setup-py --version "${{ env.TESTPYPI_VERSION }}" + python dev/extract_version.py --replace-setup-py --version "${{ inputs.TESTPYPI_VERSION }}" fi; - name: Set up QEMU