@@ -140,6 +140,9 @@ jobs:
140140 runs-on : ${{ matrix.os }}
141141 steps :
142142 - uses : actions/checkout@v6
143+ - uses : astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b
144+ with :
145+ python-version : ' 3.14'
143146 - name : Clean up disk space
144147 run : |
145148 echo "Disk space before cleanup:"
@@ -209,18 +212,17 @@ jobs:
209212 ls -lR output/
210213 cp output/${{ matrix.os }}/${{ matrix.arch }}/* bitsandbytes/
211214 - name : Set up Python ${{ matrix.python-version }}
212- uses : actions /setup-python@v6
215+ uses : astral-sh /setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
213216 with :
214217 python-version : ${{ matrix.python-version }}
215- cache : pip
216- - run : pip install build wheel
217- - run : python -m build .
218+ enable-cache : ' true'
219+ - run : uv build
218220 - name : Determine and Set Platform Tag, then Tag Wheel
219221 shell : bash
220222 run : |
221223 PLATFORM_TAG=$(python .github/scripts/set_platform_tag.py "${{ matrix.arch }}")
222224 echo "PLATFORM_TAG=$PLATFORM_TAG"
223- wheel tags --remove --abi-tag=none --python-tag=py3 --platform-tag=$PLATFORM_TAG dist/bitsandbytes-*.whl
225+ uvx wheel tags --remove --abi-tag=none --python-tag=py3 --platform-tag=$PLATFORM_TAG dist/bitsandbytes-*.whl
224226 - name : Upload build artifact
225227 uses : actions/upload-artifact@v6
226228 with :
@@ -378,12 +380,8 @@ jobs:
378380 with :
379381 name : bdist_wheel_${{ matrix.os }}_${{ matrix.arch }}
380382 path : wheels/
381- - name : Set up Python
382- uses : actions/setup-python@v6
383- with :
384- python-version : " 3.12"
385- - run : pip install auditwheel
386- - run : python ./.github/scripts/auditwheel_show.py wheels/* | tee $GITHUB_STEP_SUMMARY
383+ - uses : astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
384+ - run : uv run --no-sync --with=auditwheel ./.github/scripts/auditwheel_show.py wheels/* | tee $GITHUB_STEP_SUMMARY
387385
388386 publish-wheels :
389387 name : Publish wheels to PyPI
0 commit comments