Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 56 additions & 24 deletions recipe/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,70 @@ schema_version: 1

context:
name: optype
version: "0.12.2"
version: "0.13.1"
python_min: "3.11"
numpy_min: "1.25"

package:
name: ${{ name|lower }}
recipe:
name: ${{ name }}-split
version: ${{ version }}

source:
url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/optype-${{ version }}.tar.gz
sha256: 3f53a89f56f0ea23be4d212611dce0f3a2a8946543a9a72783e349c49b232934
url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/${{ name }}-${{ version }}.tar.gz
sha256: 9b1d590597b0c093faf5253e38238c5a5e1a1f9afb04530836c38ac94fdd5cf6

build:
number: 0
script: ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
noarch: python

requirements:
host:
- python ${{ python_min }}.*
- uv-build
- pip
run:
- python >=${{ python_min }}
# needed for python <3.13, not using a selector to enable noarch
- typing-extensions >=4.10

tests:
- python:
imports:
- optype
pip_check: true
python_version: ${{ python_min }}.*

outputs:
- package:
name: ${{ name }}
build:
script: ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
noarch: python
requirements:
host:
- python ${{ python_min }}.*
- uv-build
- pip
run:
- python >=${{ python_min }}
# needed for python <3.13, not using a selector to enable noarch
- typing-extensions >=4.10

tests:
- python:
imports:
- optype
pip_check: true
python_version: ${{ python_min }}.*

# analogue of PyPI's `optype[numpy]`
- package:
name: ${{ name }}-numpy
build:
noarch: python
requirements:
host:
- python ${{ python_min }}.*
run:
- python >=${{ python_min }}
- numpy >=${{ numpy_min }}
- numpy-typing-compat >=${{ numpy_min }}
- ${{ pin_subpackage('optype', exact=True) }}
tests:
- python:
imports:
- optype
- files:
source:
- pyproject.toml
requirements:
run:
- python ${{ python_min }}.*
script:
# raises if numpy-typing-compat is not installed or the wrong version
- python -c "import optype.numpy"

about:
license: BSD-3-Clause
Expand Down
Loading