From bab597c302abbbe115de8d7428b1dce7c8cc4503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Fr=C3=B6jdh?= Date: Wed, 18 Mar 2026 14:44:15 +0100 Subject: [PATCH] osx cibuildwheel, numpy =>2.1 pytest-checlk --- conda-recipe/conda_build_config.yaml | 6 +++++- conda-recipe/meta.yaml | 3 ++- pyproject.toml | 8 +++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/conda-recipe/conda_build_config.yaml b/conda-recipe/conda_build_config.yaml index 42408d6..48e8092 100644 --- a/conda-recipe/conda_build_config.yaml +++ b/conda-recipe/conda_build_config.yaml @@ -5,12 +5,16 @@ python: c_compiler: - gcc # [linux] + - clang # [osx] c_stdlib: - sysroot # [linux] + - macosx_deployment_target # [osx] cxx_compiler: - gxx # [linux] + - clangxx # [osx] -c_stdlib_version: # [linux] +c_stdlib_version: - 2.17 # [linux] + - "11.0" # [osx] diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 6e60d07..9843ce7 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -25,7 +25,7 @@ requirements: host: - python - pip - - numpy=2.1 + - numpy >=2.1 - scikit-build-core - pybind11 >=2.13.0 - matplotlib # needed in host to solve the environment for run @@ -42,6 +42,7 @@ test: - aare requires: - pytest + - pytest_check - boost-histogram source_files: - python/tests diff --git a/pyproject.toml b/pyproject.toml index d156e90..483aa32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,11 +19,13 @@ dependencies = [ license = { file = "LICENSE" } -[tool.cibuildwheel] +[tool.cibuildwheel.linux] build = "cp{312,313,314}-manylinux_x86_64" - +[tool.cibuildwheel.macos] +build = "cp{312,313,314}-macosx_*" +archs = ["arm64"] [tool.scikit-build] @@ -39,4 +41,4 @@ AARE_INSTALL_PYTHONEXT = "ON" [tool.pytest.ini_options] markers = [ "files: marks tests that need additional data (deselect with '-m \"not files\"')", -] \ No newline at end of file +]