From 9c4d990bdf98cf2df58931a43bd8d52fac18c657 Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Fri, 21 Nov 2025 23:08:19 -0500 Subject: [PATCH 1/6] [eudsl-python-extras] test on 3.15.alpha --- .github/actions/setup_base/action.yml | 2 +- .../workflows/build_mlir_python_bindings_wheel.yml | 11 +++++++++-- .../build_test_release_eudsl_python_extras.yml | 3 ++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup_base/action.yml b/.github/actions/setup_base/action.yml index 6795e4a8..aede7acc 100644 --- a/.github/actions/setup_base/action.yml +++ b/.github/actions/setup_base/action.yml @@ -157,7 +157,7 @@ runs: fi - name: "Install Python" - uses: actions/setup-python@v4 + uses: actions/setup-python@v6.0.0 if: ${{ startsWith(inputs.os, 'macos') || startsWith(inputs.os, 'windows') || startsWith(inputs.os, 'ubuntu') }} with: python-version: ${{ inputs.python-version }} diff --git a/.github/workflows/build_mlir_python_bindings_wheel.yml b/.github/workflows/build_mlir_python_bindings_wheel.yml index 889da123..880c6a0b 100644 --- a/.github/workflows/build_mlir_python_bindings_wheel.yml +++ b/.github/workflows/build_mlir_python_bindings_wheel.yml @@ -124,6 +124,8 @@ jobs: host-arch: ${{ matrix.host-arch }} target-arch: ${{ matrix.target-arch }} runs-on: ${{ matrix.runs-on }} + arch: ${{ matrix.arch }} + python-version: '3.15.0-alpha.2' - name: "Pip download MLIR from releases" if: ${{ !inputs.workflow_call }} @@ -223,6 +225,8 @@ jobs: pyodide build "$PWD/projects/mlir-python-bindings-wasm" -o wheelhouse --compression-level 10 else $python3_command -m cibuildwheel "$PWD/projects/mlir-python-bindings" --output-dir wheelhouse + echo "build using ${{ matrix.python-version }}" + $python3_command -m pip wheel "$PWD/projects/mlir-python-bindings" --wheel-dir wheelhouse fi - name: "Build standalone-python-bindings" @@ -273,7 +277,8 @@ jobs: ] python-version: [ "3.10", "3.11", "3.12", - "3.13", "3.14", "3.14t" + "3.13", "3.14", "3.14t", + "3.15.0-alpha.2" ] include: [ {runs-on: "ubuntu-22.04", name: "ubuntu_x86_64", os: "ubuntu"}, @@ -331,10 +336,12 @@ jobs: name: mlir_python_bindings_${{ matrix.name }}_artifact path: wheelhouse + - name: "Install mlir-python-bindings" + run: python -m pip install mlir-python-bindings numpy --pre -f wheelhouse + - name: "Test mlir-python-bindings" run: | - pip install mlir-python-bindings numpy -v -f wheelhouse cd third_party/llvm-project/mlir/test/python/dialects for f in *.py; do if [[ "$f" == "python_test.py" ]]; then diff --git a/.github/workflows/build_test_release_eudsl_python_extras.yml b/.github/workflows/build_test_release_eudsl_python_extras.yml index f7d384de..1608d4fe 100644 --- a/.github/workflows/build_test_release_eudsl_python_extras.yml +++ b/.github/workflows/build_test_release_eudsl_python_extras.yml @@ -96,7 +96,8 @@ jobs: ] python-version: [ "3.10", "3.11", "3.12", - "3.13", "3.14", "3.14t" + "3.13", "3.14", "3.14t", + "3.15.0-alpha.2" ] include: [ {runs-on: "ubuntu-22.04", name: "ubuntu_x86_64", os: "ubuntu"}, From c45d9892d92dea7fb9dae343bd9f3a2ea5664d5b Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Fri, 21 Nov 2025 20:33:17 -0800 Subject: [PATCH 2/6] Update pyproject.toml --- projects/mlir-python-bindings/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mlir-python-bindings/pyproject.toml b/projects/mlir-python-bindings/pyproject.toml index 41108d60..b187897f 100644 --- a/projects/mlir-python-bindings/pyproject.toml +++ b/projects/mlir-python-bindings/pyproject.toml @@ -9,7 +9,7 @@ dynamic = ["version"] requires-python = ">=3.8" dependencies = [ "numpy>=1.19.5", - "PyYAML>=5.4.0, <=6.0.1", + "PyYAML>=5.4.0", "ml_dtypes>=0.1.0, <=0.6.0; python_version<'3.13'", "ml_dtypes>=0.5.0, <=0.6.0; python_version>='3.13'", ] From 43f903f0a034de96162eb1cf4b55a58f25b117a1 Mon Sep 17 00:00:00 2001 From: makslevental Date: Tue, 6 Jan 2026 21:49:57 -0800 Subject: [PATCH 3/6] unbound numpy --- .github/workflows/build_mlir_python_bindings_wheel.yml | 3 +-- projects/mlir-python-bindings/pyproject.toml | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build_mlir_python_bindings_wheel.yml b/.github/workflows/build_mlir_python_bindings_wheel.yml index 880c6a0b..d0fbd829 100644 --- a/.github/workflows/build_mlir_python_bindings_wheel.yml +++ b/.github/workflows/build_mlir_python_bindings_wheel.yml @@ -124,8 +124,7 @@ jobs: host-arch: ${{ matrix.host-arch }} target-arch: ${{ matrix.target-arch }} runs-on: ${{ matrix.runs-on }} - arch: ${{ matrix.arch }} - python-version: '3.15.0-alpha.2' + python-version: ${{ matrix.target-arch == 'wasm32' && '3.12' || '3.15.0-alpha.2' }} - name: "Pip download MLIR from releases" if: ${{ !inputs.workflow_call }} diff --git a/projects/mlir-python-bindings/pyproject.toml b/projects/mlir-python-bindings/pyproject.toml index b187897f..9e382419 100644 --- a/projects/mlir-python-bindings/pyproject.toml +++ b/projects/mlir-python-bindings/pyproject.toml @@ -25,8 +25,6 @@ requires = [ "scikit-build-core>=0.10.7", "typing_extensions>=4.12.2", "nanobind>=2.9, <3.0", - "pybind11>=2.10.0, <=2.13.6", - "numpy>=1.19.5, <=2.3.0", ] build-backend = "scikit_build_core.build" From eb648aa1052fa899f1418b7612d744673855db04 Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Tue, 6 Jan 2026 22:27:55 -0800 Subject: [PATCH 4/6] Update pyproject.toml --- projects/mlir-python-bindings/pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/projects/mlir-python-bindings/pyproject.toml b/projects/mlir-python-bindings/pyproject.toml index 9e382419..a18b8b24 100644 --- a/projects/mlir-python-bindings/pyproject.toml +++ b/projects/mlir-python-bindings/pyproject.toml @@ -8,7 +8,6 @@ name = "mlir-python-bindings" dynamic = ["version"] requires-python = ">=3.8" dependencies = [ - "numpy>=1.19.5", "PyYAML>=5.4.0", "ml_dtypes>=0.1.0, <=0.6.0; python_version<'3.13'", "ml_dtypes>=0.5.0, <=0.6.0; python_version>='3.13'", From b1429b479392e28f697270eb3fba4fa4e9af6bb4 Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Tue, 6 Jan 2026 22:43:47 -0800 Subject: [PATCH 5/6] Update pyproject.toml --- projects/mlir-python-bindings/pyproject.toml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/projects/mlir-python-bindings/pyproject.toml b/projects/mlir-python-bindings/pyproject.toml index a18b8b24..93a900eb 100644 --- a/projects/mlir-python-bindings/pyproject.toml +++ b/projects/mlir-python-bindings/pyproject.toml @@ -7,11 +7,6 @@ name = "mlir-python-bindings" dynamic = ["version"] requires-python = ">=3.8" -dependencies = [ - "PyYAML>=5.4.0", - "ml_dtypes>=0.1.0, <=0.6.0; python_version<'3.13'", - "ml_dtypes>=0.5.0, <=0.6.0; python_version>='3.13'", -] [project.urls] Homepage = "https://github.com/llvm/llvm-project" From fc03e65123444340fa92507db641cce6d93f20c2 Mon Sep 17 00:00:00 2001 From: makslevental Date: Wed, 7 Jan 2026 10:18:48 -0800 Subject: [PATCH 6/6] move --- .../workflows/build_mlir_python_bindings_wheel.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_mlir_python_bindings_wheel.yml b/.github/workflows/build_mlir_python_bindings_wheel.yml index d0fbd829..ff7aa4b7 100644 --- a/.github/workflows/build_mlir_python_bindings_wheel.yml +++ b/.github/workflows/build_mlir_python_bindings_wheel.yml @@ -224,10 +224,19 @@ jobs: pyodide build "$PWD/projects/mlir-python-bindings-wasm" -o wheelhouse --compression-level 10 else $python3_command -m cibuildwheel "$PWD/projects/mlir-python-bindings" --output-dir wheelhouse - echo "build using ${{ matrix.python-version }}" - $python3_command -m pip wheel "$PWD/projects/mlir-python-bindings" --wheel-dir wheelhouse fi + - name: "Build mlir-python-bindings pre-release" + if: matrix.target-arch != 'wasm32' + run: | + + echo "build using ${{ matrix.python-version }}" + export LLVM_DIR="$PWD/llvm-install/lib/cmake/llvm" + export MLIR_DIR="$PWD/llvm-install/lib/cmake/mlir" + export Clang_DIR="$PWD/llvm-install/lib/cmake/clang" + export CMAKE_PREFIX_PATH="$PWD/llvm-install" + $python3_command -m pip wheel "$PWD/projects/mlir-python-bindings" --wheel-dir wheelhouse + - name: "Build standalone-python-bindings" if: matrix.target-arch != 'wasm32' run: |