diff --git a/.github/workflows/build-matscipy.yml b/.github/workflows/build-matscipy.yml index 0afaa146933c..28649838e9c7 100644 --- a/.github/workflows/build-matscipy.yml +++ b/.github/workflows/build-matscipy.yml @@ -73,12 +73,16 @@ jobs: - name: Patch matscipy source run: | - git apply python-wheels/patches/matscipy/${{ env.MATSCIPY_VERSION }}/*.patch + # 1.3.0 ships all of 1.2.0's fixes upstream, so not every version has a patch dir. + patches="python-wheels/patches/matscipy/${{ env.MATSCIPY_VERSION }}" + if [ -d "$patches" ]; then + git apply "$patches"/*.patch + fi # meson-python reads the wheel version from `git describe` on this tree; a # dirty tree gives "1.2.0.dirty", which packaging.version.Version rejects # outright (InvalidVersion), failing the build before compilation even # starts. Hide just the patched files from dirty-detection instead. - git diff --name-only | xargs git update-index --skip-worktree + git diff --name-only | xargs -r git update-index --skip-worktree - name: Build wheels uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 diff --git a/docs/packages/matscipy.yaml b/docs/packages/matscipy.yaml index 84d81baef9cf..effcfa8bcd74 100644 --- a/docs/packages/matscipy.yaml +++ b/docs/packages/matscipy.yaml @@ -16,3 +16,4 @@ versions: - filename: matscipy-1.2.0-cp314-cp314-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl sha256: edec7c83ef02d487442a94a3b4ad5f2f180d4f98ae927c6628eb0b54e2b6a8da requires-python: '>=3.9.0' +- version: 1.3.0