Skip to content

Commit

Permalink
Use xargs with UV_EXPORT_OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Jan 4, 2025
1 parent 641d68c commit 7400c4d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,15 @@ uv python install 2>&1 | indent
if [ -z "${UV_EXPORT_OPTIONS:-}" ] ; then
log "Export requirements.txt from uv"
uv export --output-file requirements.txt --no-dev --no-emit-project --frozen 2>&1 | indent
else
log "Export requirements.txt from uv (with $UV_EXPORT_OPTIONS)"
uv export --output-file requirements.txt --no-dev --no-emit-project --frozen "$UV_EXPORT_OPTIONS" 2>&1 | indent
fi

if [ -z "${UV_EXPORT_OPTIONS:-}" ] ; then
log "Export requirements-test.txt from uv (for Heroku CI)"
uv export --output-file requirements-test.txt --no-emit-project --frozen 2>&1 | indent
else
log "Export requirements.txt from uv (with $UV_EXPORT_OPTIONS)"
echo "$UV_EXPORT_OPTIONS" | xargs uv export --output-file requirements.txt --no-dev --no-emit-project --frozen 2>&1 | indent

log "Export requirements-test.txt from uv (for Heroku CI, with $UV_EXPORT_OPTIONS)"
uv export --output-file requirements-test.txt --no-emit-project --frozen "$UV_EXPORT_OPTIONS" 2>&1 | indent
echo "$UV_EXPORT_OPTIONS" | xargs uv export --output-file requirements-test.txt --no-emit-project --frozen 2>&1 | indent
fi

RUNTIME_FILE="runtime.txt"
Expand Down

0 comments on commit 7400c4d

Please sign in to comment.