Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fastembed an py-rust-stemmers #28967

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
51 changes: 51 additions & 0 deletions recipes/fastembed/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
context:
version: 0.5.1

package:
name: fastembed
version: ${{ version }}

source:
- url: https://pypi.org/packages/source/f/fastembed/fastembed-${{ version }}.tar.gz
sha256: 93ccdbead9daadde6af37862c53b92fd15fa3115d20bbddb258faa0a5eb36718

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

requirements:
host:
- python ${{ python_min }}.*
- poetry-core
- pip
run:
- python >=${{ python_min }}
- huggingface_hub <1.0,>=0.20
- loguru <0.8.0,>=0.7.2
- mmh3 <5.0.0,>=4.1.0
- numpy >=1.26
- onnxruntime >1.20.0
- pillow <11.0.0,>=10.3.0
- py-rust-stemmers <0.2.0,>=0.1.0
- requests <3.0,>=2.31
- tokenizers <1.0,>=0.15
- tqdm <5.0,>=4.66

tests:
- python:
python_version: ${{ python_min }}
imports:
- fastembed
pip_check: true

about:
homepage: https://github.com/qdrant/fastembed
summary: Fast, light, accurate library built for retrieval embedding generation
license: Apache-2.0
license_file:
- LICENSE

extra:
recipe-maintainers:
- moritzwilksch
50 changes: 50 additions & 0 deletions recipes/py-rust-stemmers/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
context:
python_min: "3.10"
version: 0.1.3

package:
name: py-rust-stemmers
version: ${{ version }}

source:
- url: https://pypi.org/packages/source/p/py-rust-stemmers/py_rust_stemmers-${{ version }}.tar.gz
sha256: ad796d47874181a25addb505a04245e34620bd7a0c5055671f52d9ce993253e2
- url: https://raw.githubusercontent.com/qdrant/py-rust-stemmers/refs/heads/master/LICENSE
sha256: f79ad92c0936186de30f349d55f5e4162845793661e5f8b4d07e8734a92fed6a

build:
number: 0
script:
- ${{ PYTHON }} -m pip install .
- cargo-bundle-licenses --format yaml --output THIRDPARTY.yml

requirements:
build:
- ${{ compiler('rust') }}
- ${{ compiler('c') }}
- ${{ stdlib('c') }}
- cargo-bundle-licenses
host:
- python
- pip
- maturin
run:
- python

tests:
- python:
imports:
- py_rust_stemmers
pip_check: true

about:
homepage: https://github.com/qdrant/py-rust-stemmers
summary: Fast and parallel snowball stemmer
license: MIT
license_file:
- LICENSE
- THIRDPARTY.yml

extra:
recipe-maintainers:
- moritzwilksch
Loading