3
3
on : [push, pull_request]
4
4
env :
5
5
CIBW_BUILD_VERBOSITY : 3
6
- CIBW_TEST_REQUIRES : " pytest torch jsonpickle"
7
- CIBW_TEST_COMMAND : " pytest -svv --durations=20 {project}/tests/python/"
6
+ # CIBW_TEST_REQUIRES: "pytest torch jsonpickle"
7
+ # CIBW_TEST_COMMAND: "pytest -svv --durations=20 {project}/tests/python/"
8
8
CIBW_ENVIRONMENT : " MLC_SHOW_CPP_STACKTRACES=1"
9
9
CIBW_REPAIR_WHEEL_COMMAND_LINUX : >
10
10
auditwheel repair -w {dest_dir} {wheel} &&
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,22 @@ 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
+ --python ${{ env.MLC_CIBW_PY_VERSION }} \
49
+ --with cibuildwheel==${{ env.MLC_CIBW_VERSION }} \
50
+ cibuildwheel --output-dir wheelhouse
53
51
env :
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 ${{ env.MLC_CIBW_PY_VERSION }} \
58
+ python scripts/show_wheel_content.py wheelhouse
58
59
macos :
59
60
name : MacOS
60
61
runs-on : macos-latest
@@ -63,18 +64,22 @@ jobs:
63
64
- uses : actions/checkout@v4
64
65
with :
65
66
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 }}
67
+ - name : Install uv
68
+ uses : astral-sh/setup-uv@v6
71
69
- name : Build wheels
72
- run : python -m cibuildwheel --output-dir wheelhouse
70
+ run : |
71
+ uv run --no-project \
72
+ --python ${{ env.MLC_CIBW_PY_VERSION }} \
73
+ --with cibuildwheel==${{ env.MLC_CIBW_VERSION }} \
74
+ cibuildwheel --output-dir wheelhouse
73
75
env :
74
76
CIBW_BEFORE_ALL : " ./scripts/cpp_tests.sh"
75
77
CIBW_BUILD : ${{ env.MLC_CIBW_MAC_BUILD }}
76
78
- name : Show package contents
77
- run : python scripts/show_wheel_content.py wheelhouse
79
+ run : |
80
+ uv run --no-project \
81
+ --python ${{ env.MLC_CIBW_PY_VERSION }} \
82
+ python scripts/show_wheel_content.py wheelhouse
78
83
linux :
79
84
name : Linux
80
85
runs-on : ubuntu-latest
@@ -83,15 +88,19 @@ jobs:
83
88
- uses : actions/checkout@v4
84
89
with :
85
90
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 }}
91
+ - name : Install uv
92
+ uses : astral-sh/setup-uv@v6
91
93
- name : Build wheels
92
- run : python -m cibuildwheel --output-dir wheelhouse
94
+ run : |
95
+ uv run --no-project \
96
+ --python ${{ env.MLC_CIBW_PY_VERSION }} \
97
+ --with cibuildwheel==${{ env.MLC_CIBW_VERSION }} \
98
+ cibuildwheel --output-dir wheelhouse
93
99
env :
94
100
CIBW_BEFORE_ALL : " ./scripts/setup_manylinux2014.sh && ./scripts/cpp_tests.sh"
95
101
CIBW_BUILD : ${{ env.MLC_CIBW_LINUX_BUILD }}
96
102
- name : Show package contents
97
- run : python scripts/show_wheel_content.py wheelhouse
103
+ run : |
104
+ uv run --no-project \
105
+ --python ${{ env.MLC_CIBW_PY_VERSION }} \
106
+ python scripts/show_wheel_content.py wheelhouse
0 commit comments