From 8e7cf2ec0bdcbec77d106e4fa3bba275431df493 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 22 Sep 2025 10:11:04 -0500 Subject: [PATCH] INPYTHON-762 Add workaround for hatch regression in haystack tests --- haystack-embeddings/run.sh | 3 ++- haystack-fulltext/run.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/haystack-embeddings/run.sh b/haystack-embeddings/run.sh index f48af94..f20e103 100644 --- a/haystack-embeddings/run.sh +++ b/haystack-embeddings/run.sh @@ -19,7 +19,8 @@ cd integrations/mongodb_atlas $PYTHON_BINARY -m venv .venv . .venv/bin/activate PYTHON_BINARY=$(which python) -$PYTHON_BINARY -m pip install -U pip hatch +# Workaround for https://github.com/pypa/hatch/issues/2050 +$PYTHON_BINARY -m pip install -U pip hatch "click<8.3.0" # Run tests. MONGO_CONNECTION_STRING="$MONGODB_URI" hatch run test:all -v diff --git a/haystack-fulltext/run.sh b/haystack-fulltext/run.sh index 0a6e820..e1f6622 100644 --- a/haystack-fulltext/run.sh +++ b/haystack-fulltext/run.sh @@ -19,7 +19,8 @@ cd integrations/mongodb_atlas $PYTHON_BINARY -m venv .venv . .venv/bin/activate PYTHON_BINARY=$(which python) -$PYTHON_BINARY -m pip install -U pip hatch +# Workaround for https://github.com/pypa/hatch/issues/2050 +$PYTHON_BINARY -m pip install -U pip hatch "click<8.3.0" # Run tests. MONGO_CONNECTION_STRING_2="$MONGODB_URI" hatch run test:all -v