Skip to content

Commit 5ccf82b

Browse files
committed
build: Support Python 3.13
1 parent 1813692 commit 5ccf82b

File tree

7 files changed

+16
-7
lines changed

7 files changed

+16
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ env:
55
CIBW_BUILD_VERBOSITY: 3
66
CIBW_TEST_REQUIRES: "pytest"
77
CIBW_TEST_COMMAND: "pytest -svv --durations=20 {project}/tests/python/"
8-
MLC_CIBW_VERSION: "2.20.0"
8+
MLC_CIBW_VERSION: "2.22.0"
99
MLC_PYTHON_VERSION: "3.9"
1010
MLC_CIBW_WIN_BUILD: "cp39-win_amd64"
1111
MLC_CIBW_MAC_BUILD: "cp39-macosx_arm64"
12-
MLC_CIBW_LINUX_BUILD: "cp312-manylinux_x86_64"
12+
MLC_CIBW_LINUX_BUILD: "cp313-manylinux_x86_64"
1313

1414
jobs:
1515
pre-commit:

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ on:
77
env:
88
CIBW_BUILD_VERBOSITY: 3
99
CIBW_TEST_COMMAND: "python -c \"import mlc\""
10-
CIBW_SKIP: "cp313-win_amd64" # Python 3.13 is not quite ready yet
11-
MLC_CIBW_VERSION: "2.20.0"
10+
MLC_CIBW_VERSION: "2.22.0"
1211
MLC_PYTHON_VERSION: "3.9"
1312
MLC_CIBW_WIN_BUILD: "cp3*-win_amd64"
1413
MLC_CIBW_MAC_BUILD: "cp3*-macosx_arm64"

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
22

33
project(
44
mlc
5-
VERSION 0.0.14
5+
VERSION 0.1.0
66
DESCRIPTION "MLC-Python"
77
LANGUAGES C CXX
88
)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,5 @@ This project uses `cibuildwheel` to build cross-platform wheels. See `.github/wo
180180
export CIBW_BUILD_VERBOSITY=3
181181
export CIBW_BUILD="cp3*-manylinux_x86_64"
182182
python -m pip install pipx
183-
pipx run cibuildwheel==2.20.0 --output-dir wheelhouse
183+
pipx run cibuildwheel==2.22.0 --output-dir wheelhouse
184184
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mlc-python"
3-
version = "0.0.14"
3+
version = "0.1.0"
44
dependencies = [
55
'numpy >= 1.22',
66
'ml-dtypes >= 0.1',

tests/python/test_cc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import mlc
22
import mlc.dataclasses as mlcd
33
import pytest
4+
from mlc._cython import SYSTEM
45

56

7+
@pytest.mark.xfail(
8+
condition=SYSTEM == "Windows",
9+
reason="`vcvarsall.bat` not found for some reason",
10+
)
611
def test_jit_load() -> None:
712
mlc.cc.jit_load("""
813
#include <mlc/core/all.h>

tests/python/test_cli_config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import pytest
12
from mlc import config as cfg
23
from mlc._cython import SYSTEM
34

@@ -22,6 +23,10 @@ def test_libdir() -> None:
2223
assert (libdir / "libmlc_registry_static.a").exists()
2324

2425

26+
@pytest.mark.xfail(
27+
condition=SYSTEM == "Windows",
28+
reason="`vcvarsall.bat` not found for some reason",
29+
)
2530
def test_probe_compiler() -> None:
2631
compilers = cfg.probe_compiler()
2732
for compiler in compilers:

0 commit comments

Comments
 (0)