Skip to content

Commit

Permalink
build: Support Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
potatomashed committed Dec 28, 2024
1 parent 1813692 commit 5ccf82b
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ env:
CIBW_BUILD_VERBOSITY: 3
CIBW_TEST_REQUIRES: "pytest"
CIBW_TEST_COMMAND: "pytest -svv --durations=20 {project}/tests/python/"
MLC_CIBW_VERSION: "2.20.0"
MLC_CIBW_VERSION: "2.22.0"
MLC_PYTHON_VERSION: "3.9"
MLC_CIBW_WIN_BUILD: "cp39-win_amd64"
MLC_CIBW_MAC_BUILD: "cp39-macosx_arm64"
MLC_CIBW_LINUX_BUILD: "cp312-manylinux_x86_64"
MLC_CIBW_LINUX_BUILD: "cp313-manylinux_x86_64"

jobs:
pre-commit:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:
env:
CIBW_BUILD_VERBOSITY: 3
CIBW_TEST_COMMAND: "python -c \"import mlc\""
CIBW_SKIP: "cp313-win_amd64" # Python 3.13 is not quite ready yet
MLC_CIBW_VERSION: "2.20.0"
MLC_CIBW_VERSION: "2.22.0"
MLC_PYTHON_VERSION: "3.9"
MLC_CIBW_WIN_BUILD: "cp3*-win_amd64"
MLC_CIBW_MAC_BUILD: "cp3*-macosx_arm64"
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)

project(
mlc
VERSION 0.0.14
VERSION 0.1.0
DESCRIPTION "MLC-Python"
LANGUAGES C CXX
)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,5 @@ This project uses `cibuildwheel` to build cross-platform wheels. See `.github/wo
export CIBW_BUILD_VERBOSITY=3
export CIBW_BUILD="cp3*-manylinux_x86_64"
python -m pip install pipx
pipx run cibuildwheel==2.20.0 --output-dir wheelhouse
pipx run cibuildwheel==2.22.0 --output-dir wheelhouse
```
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mlc-python"
version = "0.0.14"
version = "0.1.0"
dependencies = [
'numpy >= 1.22',
'ml-dtypes >= 0.1',
Expand Down
5 changes: 5 additions & 0 deletions tests/python/test_cc.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import mlc
import mlc.dataclasses as mlcd
import pytest
from mlc._cython import SYSTEM


@pytest.mark.xfail(
condition=SYSTEM == "Windows",
reason="`vcvarsall.bat` not found for some reason",
)
def test_jit_load() -> None:
mlc.cc.jit_load("""
#include <mlc/core/all.h>
Expand Down
5 changes: 5 additions & 0 deletions tests/python/test_cli_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import pytest
from mlc import config as cfg
from mlc._cython import SYSTEM

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


@pytest.mark.xfail(
condition=SYSTEM == "Windows",
reason="`vcvarsall.bat` not found for some reason",
)
def test_probe_compiler() -> None:
compilers = cfg.probe_compiler()
for compiler in compilers:
Expand Down

0 comments on commit 5ccf82b

Please sign in to comment.