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
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