From bcb678bec329414eaf0b371391f8721b54d6c1a1 Mon Sep 17 00:00:00 2001 From: Lucas Colley Date: Thu, 28 Nov 2024 20:34:21 +0000 Subject: [PATCH 1/2] add recipe for scipy-stubs --- recipes/scipy-stubs/meta.yaml | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 recipes/scipy-stubs/meta.yaml diff --git a/recipes/scipy-stubs/meta.yaml b/recipes/scipy-stubs/meta.yaml new file mode 100644 index 0000000000000..adedb6b8966c3 --- /dev/null +++ b/recipes/scipy-stubs/meta.yaml @@ -0,0 +1,45 @@ +{% set name = "scipy-stubs" %} +{% set version = "1.14.1.4" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/scipy_stubs-{{ version }}.tar.gz + sha256: 215a2c9d865e355a5c5cc088ec6d87f489a584396256113d72d7d24cfb0e889c + +build: + noarch: python + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + number: 0 + +requirements: + host: + - python >=3.10,<4.0 + - poetry-core + - pip + run: + - python >=3.10.0,<4.0.0 + - optype >=0.7.1 + run_constrained: + - scipy >=1.10 + +test: + imports: + - scipy_stubs + commands: + - pip check + requires: + - pip + +about: + home: https://github.com/jorenham/scipy-stubs/ + summary: Typing Stubs for SciPy + license: BSD-3-Clause + license_file: LICENSE + +extra: + recipe-maintainers: + - lucascolley + - jorenham From 44d2a064a78fb95666bc64c51c0eee6f131334dc Mon Sep 17 00:00:00 2001 From: Lucas Colley Date: Thu, 28 Nov 2024 20:38:43 +0000 Subject: [PATCH 2/2] `python_min` --- recipes/scipy-stubs/meta.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/scipy-stubs/meta.yaml b/recipes/scipy-stubs/meta.yaml index adedb6b8966c3..4662aa1109c70 100644 --- a/recipes/scipy-stubs/meta.yaml +++ b/recipes/scipy-stubs/meta.yaml @@ -1,5 +1,6 @@ {% set name = "scipy-stubs" %} {% set version = "1.14.1.4" %} +{% set python_min = "3.10" %} package: name: {{ name|lower }} @@ -16,11 +17,11 @@ build: requirements: host: - - python >=3.10,<4.0 + - python {{ python_min }} - poetry-core - pip run: - - python >=3.10.0,<4.0.0 + - python >={{ python_min }},<4.0.0 - optype >=0.7.1 run_constrained: - scipy >=1.10 @@ -31,6 +32,7 @@ test: commands: - pip check requires: + - python {{ python_min }} - pip about: