From e89ead0e71388eccdc74948ae38bdf996adc8a4f Mon Sep 17 00:00:00 2001 From: Roman Bredehoft Date: Thu, 8 Aug 2024 11:08:30 +0200 Subject: [PATCH] chore: fix wheel tests --- script/make_utils/check_installation_with_all_python.sh | 2 +- script/make_utils/pytest_pypi_cml.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/script/make_utils/check_installation_with_all_python.sh b/script/make_utils/check_installation_with_all_python.sh index 4e55785f6..4fb307926 100755 --- a/script/make_utils/check_installation_with_all_python.sh +++ b/script/make_utils/check_installation_with_all_python.sh @@ -71,7 +71,7 @@ do rm -rf dist # Build the wheel file - poetry build -f wheel --dev + poetry build -f wheel # Install the dependencies as PyPI would do using the wheel file PYPI_WHEEL=$(find dist -type f -name "*.whl") diff --git a/script/make_utils/pytest_pypi_cml.sh b/script/make_utils/pytest_pypi_cml.sh index 340f46140..49c192cc4 100755 --- a/script/make_utils/pytest_pypi_cml.sh +++ b/script/make_utils/pytest_pypi_cml.sh @@ -54,12 +54,15 @@ if ${USE_PIP_WHEEL}; then rm -rf dist # Build the wheel file - poetry build -f wheel --dev + poetry build -f wheel # Install the dependencies as PyPI would do using the wheel file as well as the given # Concrete-Python version PYPI_WHEEL=$(find dist -type f -name "*.whl") python -m pip install --extra-index-url https://pypi.zama.ai/cpu "${PYPI_WHEEL}" + + # Install dev dependencies for testing + poetry install --only dev else if [ -z "${VERSION}" ]; then python -m pip install concrete-ml[dev]