16
16
pipx run delvewheel repair -w {dest_dir} {wheel} &&
17
17
pipx run abi3audit --strict --report {wheel}
18
18
MLC_CIBW_VERSION : " 2.22.0"
19
- MLC_PYTHON_VERSION : " 3.9 "
19
+ MLC_CIBW_PY_VERSION : " 3.11 "
20
20
MLC_CIBW_WIN_BUILD : " cp39-win_amd64"
21
21
MLC_CIBW_MAC_BUILD : " cp39-macosx_arm64"
22
22
MLC_CIBW_LINUX_BUILD : " cp313-manylinux_x86_64"
26
26
runs-on : ubuntu-latest
27
27
steps :
28
28
- uses : actions/checkout@v4
29
- - uses : actions/setup-python@v5
30
- with :
31
- python-version : ${{ env.MLC_PYTHON_VERSION }}
32
29
-
uses :
pre-commit/[email protected]
33
30
-
uses :
ytanikin/[email protected]
34
31
if : github.event_name == 'pull_request'
@@ -43,18 +40,23 @@ jobs:
43
40
- uses : actions/checkout@v4
44
41
with :
45
42
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
51
45
- 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
53
50
env :
51
+ UV_PYTHON : ${{ env.MLC_CIBW_PY_VERSION }}
54
52
CIBW_BEFORE_ALL : " .\\ scripts\\ cpp_tests.bat"
55
53
CIBW_BUILD : ${{ env.MLC_CIBW_WIN_BUILD }}
56
54
- 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 }}
58
60
macos :
59
61
name : MacOS
60
62
runs-on : macos-latest
@@ -63,18 +65,23 @@ jobs:
63
65
- uses : actions/checkout@v4
64
66
with :
65
67
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
71
70
- 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
73
75
env :
76
+ UV_PYTHON : ${{ env.MLC_CIBW_PY_VERSION }}
74
77
CIBW_BEFORE_ALL : " ./scripts/cpp_tests.sh"
75
78
CIBW_BUILD : ${{ env.MLC_CIBW_MAC_BUILD }}
76
79
- 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 }}
78
85
linux :
79
86
name : Linux
80
87
runs-on : ubuntu-latest
@@ -83,15 +90,20 @@ jobs:
83
90
- uses : actions/checkout@v4
84
91
with :
85
92
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
91
95
- 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
93
100
env :
101
+ UV_PYTHON : ${{ env.MLC_CIBW_PY_VERSION }}
94
102
CIBW_BEFORE_ALL : " ./scripts/setup_manylinux2014.sh && ./scripts/cpp_tests.sh"
95
103
CIBW_BUILD : ${{ env.MLC_CIBW_LINUX_BUILD }}
96
104
- 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