]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
use python -m pip/twine/pypi_attestations to avoid PATH issues on macOS
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 27 Jun 2026 19:50:49 +0000 (15:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 27 Jun 2026 22:32:39 +0000 (18:32 -0400)
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

.github/workflows/create-wheels.yaml

index 0be63931d03e364eda851e03d5924d50deda2c8a..e54c6eceb7ac48c764aa0719b98441fe701014ba 100644 (file)
@@ -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