Skip to content
67 changes: 67 additions & 0 deletions recipes/finch-tensor-lite/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
context:
version: "0.2.0"

package:
name: finch-tensor-lite
version: ${{ version }}

source:
- url: https://pypi.org/packages/source/f/finch-tensor-lite/finch_tensor_lite-${{ version }}.tar.gz
sha256: 8ab19b0a7efc007549788213c1d5fbe3c54a40aad9e90240d8d4d34d08bd883b
- git: https://github.com/finch-tensor/finch-tensor-lite.git
tag: v${{ version }}
target_directory: repo
Comment on lines +11 to +13
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upstream does not ship tests in the sdist, so we grab them from the repo instead


build:
skip:
- match(python, "<3.11")
- win
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run dependency on a c-compiler seems to be fiddly for windows

python:
version_independent: true
script: uv pip install --python ${{ PYTHON }} . -vv --no-deps
number: 0

requirements:
host:
- python
- uv
- poetry-core <3.0
run:
- python
- numpy <2.4
- numba <0.63.1
- donfig <0.9.0
- lark <2.0.0
Comment on lines +28 to +34
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pins taken from upstream

- gcc # c-compiler after https://github.com/conda-forge/compilers-feedstock/pull/78

tests:
- python:
imports:
- finchlite
pip_check: true
- script:
- pytest -ra repo/tests --ignore-glob=repo/tests/reference/*
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requirements:
run:
- python
- pytest
- pytest-regressions
- sparse
- scipy
files:
source:
- repo/tests/
- pyproject.toml

about:
homepage: https://github.com/finch-tensor/finch-tensor-lite
summary: Sparse Tensor Programming in Pure Python
description: Sparse Tensor Programming in Pure Python
license: MIT
license_file:
- LICENSE
- src/finchlite/codegen/stc/LICENSE

extra:
recipe-maintainers:
- lucascolley