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..ff7aa4b7 100644 --- a/.github/workflows/build_mlir_python_bindings_wheel.yml +++ b/.github/workflows/build_mlir_python_bindings_wheel.yml @@ -124,6 +124,7 @@ jobs: host-arch: ${{ matrix.host-arch }} target-arch: ${{ matrix.target-arch }} runs-on: ${{ matrix.runs-on }} + python-version: ${{ matrix.target-arch == 'wasm32' && '3.12' || '3.15.0-alpha.2' }} - name: "Pip download MLIR from releases" if: ${{ !inputs.workflow_call }} @@ -225,6 +226,17 @@ jobs: $python3_command -m cibuildwheel "$PWD/projects/mlir-python-bindings" --output-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: | @@ -273,7 +285,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 +344,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"}, diff --git a/projects/mlir-python-bindings/pyproject.toml b/projects/mlir-python-bindings/pyproject.toml index 41108d60..93a900eb 100644 --- a/projects/mlir-python-bindings/pyproject.toml +++ b/projects/mlir-python-bindings/pyproject.toml @@ -7,12 +7,6 @@ name = "mlir-python-bindings" dynamic = ["version"] requires-python = ">=3.8" -dependencies = [ - "numpy>=1.19.5", - "PyYAML>=5.4.0, <=6.0.1", - "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" @@ -25,8 +19,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"