From 516170cbaf6a8eedf3e42eafb8e1493dd3ea83a8 Mon Sep 17 00:00:00 2001 From: George Date: Wed, 11 Dec 2024 19:18:54 +0000 Subject: [PATCH] new: add python 3.13 support (#404) --- .github/workflows/python-tests.yml | 1 + pyproject.toml | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 4b404e1a..0c1c52c4 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -18,6 +18,7 @@ jobs: - '3.10.x' - '3.11.x' - '3.12.x' + - '3.13.x' os: - ubuntu-latest - macos-latest diff --git a/pyproject.toml b/pyproject.toml index 39ecf6c6..84a0520a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,18 +11,24 @@ repository = "https://github.com/qdrant/fastembed" keywords = ["vector", "embedding", "neural", "search", "qdrant", "sentence-transformers"] [tool.poetry.dependencies] -python = ">=3.9.0,<3.13" -onnx = "^1.15.0" -onnxruntime = ">=1.17.0,<1.20.0" +python = ">=3.9.0" +onnx = ">=1.15.0" +numpy = [ + { version = ">=1.21,<2.1.0", python = "<3.10" }, + { version = ">=1.21", python = ">=3.10,<3.12" }, + { version = ">=1.26", python = ">=3.12,<3.13" }, + { version = ">=2.1.0", python = ">=3.13" } +] +onnxruntime = [ + { version = ">=1.17.0,<1.20.0", python = "<3.10" }, + { version = ">=1.17.0,!=1.20.0", python = ">=3.10,<3.13" }, + { version = ">1.20.0", python = ">=3.13" } +] tqdm = "^4.66" requests = "^2.31" tokenizers = ">=0.15,<1.0" huggingface-hub = ">=0.20,<1.0" loguru = "^0.7.2" -numpy = [ - { version = ">=1.21", python = "<3.12" }, - { version = ">=1.26", python = ">=3.12" } -] pillow = "^10.3.0" mmh3 = "^4.1.0" py-rust-stemmers = "^0.1.0"