From b7516608ab518ce77d13428959c4016e15fa1754 Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Mon, 11 Aug 2025 10:03:27 -0700 Subject: [PATCH] fix: install backend wheels before meta packages Install backend wheels first to ensure they're available when core/meta packages are installed, preventing uv from trying to resolve backend dependencies from PyPI. --- .github/workflows/build-reusable.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-reusable.yml b/.github/workflows/build-reusable.yml index a633d9f..7c5733f 100644 --- a/.github/workflows/build-reusable.yml +++ b/.github/workflows/build-reusable.yml @@ -227,15 +227,14 @@ jobs: uv venv --python ${{ matrix.python }} source .venv/bin/activate || source .venv/Scripts/activate - # Install the built wheels directly without checking PyPI - # This avoids the dependency resolution issue for new platforms - uv pip install packages/leann-core/dist/*.whl || uv pip install packages/leann-core/dist/*.tar.gz - uv pip install packages/leann/dist/*.whl || uv pip install packages/leann/dist/*.tar.gz - - # Install backend wheels directly + # Install backend wheels first (before core/meta packages to avoid PyPI dependencies) uv pip install packages/leann-backend-hnsw/dist/*.whl uv pip install packages/leann-backend-diskann/dist/*.whl + # Then install core and meta packages + uv pip install packages/leann-core/dist/*.whl || uv pip install packages/leann-core/dist/*.tar.gz + uv pip install packages/leann/dist/*.whl || uv pip install packages/leann/dist/*.tar.gz + # Install test dependencies using extras uv pip install -e ".[test]"