From 79c3dc4a7dff05772a8609b31530eae96b5a449f Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 19 Aug 2024 11:51:26 -0400 Subject: [PATCH 1/2] ci: adapt to final release of NumPy 2.1.0 Signed-off-by: Henry Schreiner --- .github/workflows/tests.yml | 4 ---- pyproject.toml | 9 ++++----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 48c2c059..d4d92828 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -85,10 +85,6 @@ jobs: key: ${{ matrix.python-version }} create-symlink: true - - name: Install NumPy pre-release - if: matrix.python-version == '3.13' - run: uv pip install --system "numpy>=2.1.0rc1" - - name: Install python tools run: uv pip install --system -r dev-requirements.txt pytest-github-actions-annotate-failures env: diff --git a/pyproject.toml b/pyproject.toml index eaff9138..7b73129a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -161,16 +161,15 @@ ignore_missing_imports = true [tool.cibuildwheel] -build-frontend = "build[uv]" +build-frontend = { name = "build[uv]", args = ["--only-binary=:all:"] } test-extras = "test" test-command = "pytest --benchmark-disable {project}/tests" skip = [ "pp3[78]-*", - "cp313t-*win*" ] test-skip = [ "cp*-musllinux_*", # Segfaults - "pp310-macosx_arm64", # No binary (numpy 2.1.0 rc 1) + "cp313t-*win*", ] free-threaded-support = true environment-pass = ["SETUPTOOLS_SCM_PRETEND_VERSION"] @@ -183,8 +182,8 @@ inherit.environment = "append" build-frontend = {name = "build", args = ["--exports", "whole_archive"]} [[tool.cibuildwheel.overrides]] -select = ["cp313*", "pp310*"] -before-test = 'uv pip install --only-binary=:all: "numpy>=2.1.0rc1"' +select = "pp310-macosx_arm64" +environment.MACOSX_DEPLOYMENT_TARGET = "14.0" [tool.pylint] From c8e8440402afa36e70c10bef01564e97909ce73c Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 19 Aug 2024 12:57:43 -0400 Subject: [PATCH 2/2] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7b73129a..0a75fc61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -161,7 +161,7 @@ ignore_missing_imports = true [tool.cibuildwheel] -build-frontend = { name = "build[uv]", args = ["--only-binary=:all:"] } +build-frontend = "build[uv]" test-extras = "test" test-command = "pytest --benchmark-disable {project}/tests" skip = [