From 07522ae284beddf5ff460c568a6eb2bdef9cd11e Mon Sep 17 00:00:00 2001 From: Estrella Pan Date: Sun, 19 Apr 2026 13:01:27 +0200 Subject: [PATCH] ci(release): include pyproject.toml / uv.lock / requirements.txt (#994, #1015) The release artifact only zipped backend/src, omitting pyproject.toml and uv.lock, so local deployments couldn't install dependencies. #994 also reported the missing requirements.txt after the uv migration in 3.2.0. Install uv in the release job and generate a production-only requirements.txt via `uv export --no-dev`, then bundle all three alongside src in the app zip. Closes #994 Closes #1015 --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6d3e9b3d..3380b355 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -314,9 +314,18 @@ jobs: echo ${{ needs.version-info.outputs.version }} echo "VERSION='${{ needs.version-info.outputs.version }}'" >> module/__version__.py + - uses: astral-sh/setup-uv@v4 + with: + version: "latest" + + - name: Generate requirements.txt for non-uv consumers (#994) + run: | + cd backend && uv export --format requirements-txt --no-hashes --no-dev -o requirements.txt + - name: Zip app run: | - cd backend && zip -r app-v${{ needs.version-info.outputs.version }}.zip src + cd backend && zip -r app-v${{ needs.version-info.outputs.version }}.zip \ + src pyproject.toml uv.lock requirements.txt - name: Generate Release info id: release-info