From: Mike Bayer Date: Sat, 27 Jun 2026 19:50:49 +0000 (-0400) Subject: use python -m pip/twine/pypi_attestations to avoid PATH issues on macOS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47032a9a6935721a0ed0c16f1f1287cd8a06fda2;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git use python -m pip/twine/pypi_attestations to avoid PATH issues on macOS On macOS after cibuildwheel runs, bare pip/twine may not be on PATH. Using python -m ensures the correct interpreter's tools are used. Change-Id: I658267a4f51343d69cdd930744a4086685b735bf --- diff --git a/.github/workflows/create-wheels.yaml b/.github/workflows/create-wheels.yaml index 0be63931d0..e54c6eceb7 100644 --- a/.github/workflows/create-wheels.yaml +++ b/.github/workflows/create-wheels.yaml @@ -132,15 +132,15 @@ jobs: continue-on-error: true shell: bash run: | - pip install pypi-attestations + python -m pip install pypi-attestations python -m pypi_attestations sign ./wheelhouse/* - name: Publish wheel shell: bash run: | - pip install "twine>=6.2.0" + python -m pip install "twine>=6.2.0" if [[ "${{ steps.attestations.outcome }}" == "success" ]]; then - twine upload --skip-existing --attestations ./wheelhouse/* + python -m twine upload --skip-existing --attestations ./wheelhouse/* else - twine upload --skip-existing ./wheelhouse/* + python -m twine upload --skip-existing ./wheelhouse/* fi