Use the following one-liner to reformat an existing requirements.txt
file as constraints:
$ uv pip compile requirements.txt --no-annotate --no-header \
| awk '{printf("%s\"%s\",\n", (NR==1?"constraint-dependencies = [\n ":" "), $0)}' \
| sed '$s/,$/\n]/'