yesod-mirror/third_party/python/pip_compile.sh

10 lines
484 B
Bash
Raw Permalink Normal View History

#!/bin/bash
LOCKFILE=/Users/acmcarther/projects/yesod/third_party/python/requirements.lock
REQUIREMENTS=/Users/acmcarther/projects/yesod/third_party/python/requirements.txt
# Run uv via Bazel
bazel run //third_party/python:uv_compile -- "$REQUIREMENTS" --universal --python-version 3.12 --output-file="$LOCKFILE"
# Sanitize requirements.lock using python helper
# This ensures cross-platform compatibility and robust regex
python3 third_party/python/sanitize_lockfile.py "$LOCKFILE"