1616 pipx run delvewheel repair -w {dest_dir} {wheel} &&
1717 pipx run abi3audit --strict --report {wheel}
1818 MLC_CIBW_VERSION : " 2.22.0"
19- MLC_PYTHON_VERSION : " 3.9 "
19+ MLC_CIBW_PY_VERSION : " 3.11 "
2020 MLC_CIBW_WIN_BUILD : " cp39-win_amd64"
2121 MLC_CIBW_MAC_BUILD : " cp39-macosx_arm64"
2222 MLC_CIBW_LINUX_BUILD : " cp313-manylinux_x86_64"
2626 runs-on : ubuntu-latest
2727 steps :
2828 - uses : actions/checkout@v4
29- - uses : actions/setup-python@v5
30- with :
31- python-version : ${{ env.MLC_PYTHON_VERSION }}
3229 -
uses :
pre-commit/[email protected] 3330 -
uses :
ytanikin/[email protected] 3431 if : github.event_name == 'pull_request'
@@ -43,18 +40,23 @@ jobs:
4340 - uses : actions/checkout@v4
4441 with :
4542 submodules : " recursive"
46- - uses : actions/setup-python@v5
47- with :
48- python-version : ${{ env.MLC_PYTHON_VERSION }}
49- - name : Install cibuildwheel
50- run : python -m pip install cibuildwheel=="${{ env.MLC_CIBW_VERSION }}"
43+ - name : Install uv
44+ uses : astral-sh/setup-uv@v6
5145 - name : Build wheels
52- run : python -m cibuildwheel --output-dir wheelhouse
46+ run : >
47+ uv run --no-project
48+ --with cibuildwheel==${{ env.MLC_CIBW_VERSION }}
49+ cibuildwheel --output-dir wheelhouse
5350 env :
51+ UV_PYTHON : ${{ env.MLC_CIBW_PY_VERSION }}
5452 CIBW_BEFORE_ALL : " .\\ scripts\\ cpp_tests.bat"
5553 CIBW_BUILD : ${{ env.MLC_CIBW_WIN_BUILD }}
5654 - name : Show package contents
57- run : python scripts/show_wheel_content.py wheelhouse
55+ run : >
56+ uv run --no-project
57+ python scripts/show_wheel_content.py wheelhouse
58+ env :
59+ UV_PYTHON : ${{ env.MLC_CIBW_PY_VERSION }}
5860 macos :
5961 name : MacOS
6062 runs-on : macos-latest
@@ -63,18 +65,23 @@ jobs:
6365 - uses : actions/checkout@v4
6466 with :
6567 submodules : " recursive"
66- - uses : actions/setup-python@v5
67- with :
68- python-version : ${{ env.MLC_PYTHON_VERSION }}
69- - name : Install cibuildwheel
70- run : python -m pip install cibuildwheel==${{ env.MLC_CIBW_VERSION }}
68+ - name : Install uv
69+ uses : astral-sh/setup-uv@v6
7170 - name : Build wheels
72- run : python -m cibuildwheel --output-dir wheelhouse
71+ run : >
72+ uv run --no-project
73+ --with cibuildwheel==${{ env.MLC_CIBW_VERSION }}
74+ cibuildwheel --output-dir wheelhouse
7375 env :
76+ UV_PYTHON : ${{ env.MLC_CIBW_PY_VERSION }}
7477 CIBW_BEFORE_ALL : " ./scripts/cpp_tests.sh"
7578 CIBW_BUILD : ${{ env.MLC_CIBW_MAC_BUILD }}
7679 - name : Show package contents
77- run : python scripts/show_wheel_content.py wheelhouse
80+ run : >
81+ uv run --no-project
82+ python scripts/show_wheel_content.py wheelhouse
83+ env :
84+ UV_PYTHON : ${{ env.MLC_CIBW_PY_VERSION }}
7885 linux :
7986 name : Linux
8087 runs-on : ubuntu-latest
@@ -83,15 +90,20 @@ jobs:
8390 - uses : actions/checkout@v4
8491 with :
8592 submodules : " recursive"
86- - uses : actions/setup-python@v5
87- with :
88- python-version : ${{ env.MLC_PYTHON_VERSION }}
89- - name : Install cibuildwheel
90- run : python -m pip install cibuildwheel==${{ env.MLC_CIBW_VERSION }}
93+ - name : Install uv
94+ uses : astral-sh/setup-uv@v6
9195 - name : Build wheels
92- run : python -m cibuildwheel --output-dir wheelhouse
96+ run : >
97+ uv run --no-project
98+ --with cibuildwheel==${{ env.MLC_CIBW_VERSION }}
99+ cibuildwheel --output-dir wheelhouse
93100 env :
101+ UV_PYTHON : ${{ env.MLC_CIBW_PY_VERSION }}
94102 CIBW_BEFORE_ALL : " ./scripts/setup_manylinux2014.sh && ./scripts/cpp_tests.sh"
95103 CIBW_BUILD : ${{ env.MLC_CIBW_LINUX_BUILD }}
96104 - name : Show package contents
97- run : python scripts/show_wheel_content.py wheelhouse
105+ run : >
106+ uv run --no-project
107+ python scripts/show_wheel_content.py wheelhouse
108+ env :
109+ UV_PYTHON : ${{ env.MLC_CIBW_PY_VERSION }}
0 commit comments