Skip to content

Commit 07522ae

Browse files
committed
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
1 parent 90239b0 commit 07522ae

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,18 @@ jobs:
314314
echo ${{ needs.version-info.outputs.version }}
315315
echo "VERSION='${{ needs.version-info.outputs.version }}'" >> module/__version__.py
316316
317+
- uses: astral-sh/setup-uv@v4
318+
with:
319+
version: "latest"
320+
321+
- name: Generate requirements.txt for non-uv consumers (#994)
322+
run: |
323+
cd backend && uv export --format requirements-txt --no-hashes --no-dev -o requirements.txt
324+
317325
- name: Zip app
318326
run: |
319-
cd backend && zip -r app-v${{ needs.version-info.outputs.version }}.zip src
327+
cd backend && zip -r app-v${{ needs.version-info.outputs.version }}.zip \
328+
src pyproject.toml uv.lock requirements.txt
320329
321330
- name: Generate Release info
322331
id: release-info

0 commit comments

Comments
 (0)