Skip to content

Commit

Permalink
Fix UV_EXPORT_OPTIONS again
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert authored Jan 3, 2025
1 parent c58e561 commit 641d68c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,21 @@ source "$HOME/.local/bin/env"
log "Install uv Python version"
uv python install 2>&1 | indent

log "Export requirements.txt from uv"
uv export --output-file requirements.txt --no-dev --no-emit-project --frozen "${UV_EXPORT_OPTIONS:-}" 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

log "Export requirements-test.txt from uv (for Heroku CI)"
uv export --output-file requirements-test.txt --no-emit-project --frozen "${UV_EXPORT_OPTIONS:-}" 2>&1 | indent
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-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
fi

RUNTIME_FILE="runtime.txt"

Expand Down

0 comments on commit 641d68c

Please sign in to comment.