removed uneccecary codna numpy variants (#165)

With numpy 2.0 we no longer need to build against every supported numpy
version. This way we can save up to 6 builds.

- https://numpy.org/doc/stable/dev/depending_on_numpy.html
-
https://conda-forge.org/docs/maintainer/knowledge_base/#building-against-numpy
This commit is contained in:
Erik Fröjdh 2025-04-25 10:31:40 +02:00 committed by GitHub
parent 129e7e9f9d
commit 2e0424254c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 51 deletions

View File

@ -1,28 +1,5 @@
python: python:
- 3.11 - 3.11
- 3.11
- 3.11
- 3.12
- 3.12
- 3.12 - 3.12
- 3.13 - 3.13
numpy:
- 1.26
- 2.0
- 2.1
- 1.26
- 2.0
- 2.1
- 2.1
zip_keys:
- python
- numpy
pin_run_as_build:
numpy: x.x
python: x.x

View File

@ -2,56 +2,44 @@ package:
name: aare name: aare
version: 2025.4.22 #TODO! how to not duplicate this? version: 2025.4.22 #TODO! how to not duplicate this?
source: source:
path: .. path: ..
build: build:
number: 0 number: 0
script: script:
- unset CMAKE_GENERATOR && {{ PYTHON }} -m pip install . -vv # [not win] - unset CMAKE_GENERATOR && {{ PYTHON }} -m pip install . -vv
- {{ PYTHON }} -m pip install . -vv # [win]
requirements: requirements:
build: build:
- python {{python}}
- numpy {{ numpy }}
- {{ compiler('cxx') }} - {{ compiler('cxx') }}
host:
- cmake - cmake
- ninja - ninja
- python {{python}}
- numpy {{ numpy }} host:
- python
- pip - pip
- numpy=2.1
- scikit-build-core - scikit-build-core
- pybind11 >=2.13.0 - pybind11 >=2.13.0
- fmt - matplotlib # needed in host to solve the environment for run
- zeromq
- nlohmann_json
- catch2
run: run:
- python {{python}} - python
- numpy {{ numpy }} - {{ pin_compatible('numpy') }}
- matplotlib - matplotlib
test: test:
imports: imports:
- aare - aare
# requires: requires:
# - pytest - pytest
# source_files: source_files:
# - tests - python/tests
# commands: commands:
# - pytest tests - python -m pytest python/tests
about: about:
summary: An example project built with pybind11 and scikit-build. summary: Data analysis library for hybrid pixel detectors from PSI
# license_file: LICENSE