10 lines
484 B
Bash
10 lines
484 B
Bash
|
|
#!/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"
|