From 49352a6f43549c14208fbce529582699020cc670 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 17:48:08 +0400 Subject: [PATCH] [Backport 8.x] Allow simsimd again on Python 3.13 (#2723) * Allow simsimd again on Python 3.13 * Remove the importorskip calls (cherry picked from commit e1603f4f25888ca7fee03ee977abafb00d512601) Co-authored-by: Quentin Pradet --- pyproject.toml | 2 +- .../test_server/test_vectorstore/test_vectorstore.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8a55e0b67..b5f03e1d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,7 +70,7 @@ dev = [ "nox", "orjson", "numpy", - "simsimd ; python_version<'3.13'", + "simsimd", "pyarrow", "pandas", "mapbox-vector-tile", diff --git a/test_elasticsearch/test_server/test_vectorstore/test_vectorstore.py b/test_elasticsearch/test_server/test_vectorstore/test_vectorstore.py index 7b675a754..3e17442eb 100644 --- a/test_elasticsearch/test_server/test_vectorstore/test_vectorstore.py +++ b/test_elasticsearch/test_server/test_vectorstore/test_vectorstore.py @@ -899,8 +899,6 @@ def test_max_marginal_relevance_search_errors( self, sync_client: Elasticsearch, index: str ) -> None: """Test max marginal relevance search error conditions.""" - pytest.importorskip("simsimd") - texts = ["foo", "bar", "baz"] vector_field = "vector_field" embedding_service = ConsistentFakeEmbeddings() @@ -942,8 +940,6 @@ def test_max_marginal_relevance_search( self, sync_client: Elasticsearch, index: str ) -> None: """Test max marginal relevance search.""" - pytest.importorskip("simsimd") - texts = ["foo", "bar", "baz"] vector_field = "vector_field" text_field = "text_field"