From fe11880de105ae058931aba319f18e8439fb1fc7 Mon Sep 17 00:00:00 2001 From: Moritz Wilksch Date: Tue, 28 Jan 2025 15:26:16 +0000 Subject: [PATCH 1/5] add `fastembed` + `py-rust-stemmers` --- recipes/fastembed/recipe.yaml | 49 ++++++++++++++++++++++++++++ recipes/py-rust-stemmers/recipe.yaml | 42 ++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 recipes/fastembed/recipe.yaml create mode 100644 recipes/py-rust-stemmers/recipe.yaml diff --git a/recipes/fastembed/recipe.yaml b/recipes/fastembed/recipe.yaml new file mode 100644 index 0000000000000..5bb3cf13c966a --- /dev/null +++ b/recipes/fastembed/recipe.yaml @@ -0,0 +1,49 @@ +context: + version: 0.5.1 + +package: + name: fastembed + version: ${{ version }} + +source: + - url: https://pypi.io/packages/source/f/fastembed/fastembed-${{ version }}.tar.gz + sha256: 93ccdbead9daadde6af37862c53b92fd15fa3115d20bbddb258faa0a5eb36718 + +build: + 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: + summary: Fast, light, accurate library built for retrieval embedding generation + license: Apache-2.0 + license_file: + - LICENSE + +extra: + recipe-maintainers: + - moritzwilksch diff --git a/recipes/py-rust-stemmers/recipe.yaml b/recipes/py-rust-stemmers/recipe.yaml new file mode 100644 index 0000000000000..147ca03b78a7f --- /dev/null +++ b/recipes/py-rust-stemmers/recipe.yaml @@ -0,0 +1,42 @@ +context: + version: 0.1.3 + +package: + name: py-rust-stemmers + version: ${{ version }} + +source: + - url: https://pypi.io/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: + script: + - ${{ PYTHON }} -m pip install . + - cargo-bundle-licenses --format yaml --output THIRDPARTY.yml + +requirements: + host: + - python <3.13 + - pip + - maturin + build: + - cargo-bundle-licenses + +tests: + - python: + imports: + - py_rust_stemmers + pip_check: true + +about: + summary: Fast and parallel snowball stemmer + license: MIT + license_file: + - LICENSE + - THIRDPARTY.yml + +extra: + recipe-maintainers: + - moritzwilksch From 8e666ce9e331163ad6b0262d636e580df4a698a8 Mon Sep 17 00:00:00 2001 From: Moritz Wilksch Date: Tue, 28 Jan 2025 16:51:52 +0000 Subject: [PATCH 2/5] some lint --- recipes/fastembed/recipe.yaml | 4 +++- recipes/py-rust-stemmers/recipe.yaml | 11 +++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/recipes/fastembed/recipe.yaml b/recipes/fastembed/recipe.yaml index 5bb3cf13c966a..dc715ee3f477e 100644 --- a/recipes/fastembed/recipe.yaml +++ b/recipes/fastembed/recipe.yaml @@ -6,10 +6,11 @@ package: version: ${{ version }} source: - - url: https://pypi.io/packages/source/f/fastembed/fastembed-${{ version }}.tar.gz + - url: https://pypi.org/packages/source/f/fastembed/fastembed-${{ version }}.tar.gz sha256: 93ccdbead9daadde6af37862c53b92fd15fa3115d20bbddb258faa0a5eb36718 build: + number: 0 noarch: python script: ${{ PYTHON }} -m pip install . @@ -39,6 +40,7 @@ tests: 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: diff --git a/recipes/py-rust-stemmers/recipe.yaml b/recipes/py-rust-stemmers/recipe.yaml index 147ca03b78a7f..f519909925f39 100644 --- a/recipes/py-rust-stemmers/recipe.yaml +++ b/recipes/py-rust-stemmers/recipe.yaml @@ -12,17 +12,23 @@ source: 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 <3.13 - pip - maturin - build: - - cargo-bundle-licenses + run: + - python <3.13 tests: - python: @@ -31,6 +37,7 @@ tests: pip_check: true about: + homepage: https://github.com/qdrant/py-rust-stemmers summary: Fast and parallel snowball stemmer license: MIT license_file: From e4014eeb3911dda947624e6107e64ef3da24893d Mon Sep 17 00:00:00 2001 From: Moritz Wilksch Date: Tue, 28 Jan 2025 16:53:26 +0000 Subject: [PATCH 3/5] rm python pin --- recipes/py-rust-stemmers/recipe.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/py-rust-stemmers/recipe.yaml b/recipes/py-rust-stemmers/recipe.yaml index f519909925f39..e1e0771f9006f 100644 --- a/recipes/py-rust-stemmers/recipe.yaml +++ b/recipes/py-rust-stemmers/recipe.yaml @@ -24,11 +24,11 @@ requirements: - ${{ stdlib('c') }} - cargo-bundle-licenses host: - - python <3.13 + - python - pip - maturin run: - - python <3.13 + - python tests: - python: From 3cbca2006b9fcdf4e18d23f6d9424ae06c6ee2fd Mon Sep 17 00:00:00 2001 From: Moritz Wilksch Date: Tue, 28 Jan 2025 16:54:05 +0000 Subject: [PATCH 4/5] org --- recipes/py-rust-stemmers/recipe.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/py-rust-stemmers/recipe.yaml b/recipes/py-rust-stemmers/recipe.yaml index e1e0771f9006f..3cf5cfd379027 100644 --- a/recipes/py-rust-stemmers/recipe.yaml +++ b/recipes/py-rust-stemmers/recipe.yaml @@ -6,7 +6,7 @@ package: version: ${{ version }} source: - - url: https://pypi.io/packages/source/p/py-rust-stemmers/py_rust_stemmers-${{ version }}.tar.gz + - 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 From 34d1f99640fffb88dbed4a649d7e7b2b26bcd9b5 Mon Sep 17 00:00:00 2001 From: Moritz Wilksch Date: Thu, 30 Jan 2025 08:51:26 +0000 Subject: [PATCH 5/5] bump python --- recipes/py-rust-stemmers/recipe.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/py-rust-stemmers/recipe.yaml b/recipes/py-rust-stemmers/recipe.yaml index 3cf5cfd379027..c060ef50124b0 100644 --- a/recipes/py-rust-stemmers/recipe.yaml +++ b/recipes/py-rust-stemmers/recipe.yaml @@ -1,4 +1,5 @@ context: + python_min: "3.10" version: 0.1.3 package: