diff --git a/.github/actions/setup_base/action.yml b/.github/actions/setup_base/action.yml index 39c3f5ae..0e434d74 100644 --- a/.github/actions/setup_base/action.yml +++ b/.github/actions/setup_base/action.yml @@ -135,7 +135,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 0e42ed48..486308cc 100644 --- a/.github/workflows/build_mlir_python_bindings_wheel.yml +++ b/.github/workflows/build_mlir_python_bindings_wheel.yml @@ -108,6 +108,7 @@ jobs: restore-key: "mlir_python_bindings_${{ matrix.name }}_clang" os: ${{ matrix.os }} arch: ${{ matrix.arch }} + python-version: '3.15.0-alpha.2' - name: "Download MLIR from releases" if: ${{ !inputs.workflow_call }} @@ -174,6 +175,8 @@ jobs: run: | $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 - name: Upload artifacts uses: actions/upload-artifact@v4 @@ -207,7 +210,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"}, @@ -273,12 +277,11 @@ jobs: path: wheelhouse - name: "Install mlir-python-bindings" - run: python -m pip install mlir-python-bindings -f wheelhouse + 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 19a2e49b..45dbc642 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"}, diff --git a/projects/mlir-python-bindings/pyproject.toml b/projects/mlir-python-bindings/pyproject.toml index c8ad3587..be08fdde 100644 --- a/projects/mlir-python-bindings/pyproject.toml +++ b/projects/mlir-python-bindings/pyproject.toml @@ -8,8 +8,8 @@ name = "mlir-python-bindings" dynamic = ["version"] requires-python = ">=3.8" dependencies = [ - "numpy>=1.19.5, <=2.3.0", - "PyYAML>=5.4.0, <=6.0.1", + "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'", ]