mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00
25 lines
672 B
Bash
Executable file
25 lines
672 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# exit when any command fails
|
|
set -e
|
|
|
|
# First compile the base requirements
|
|
pip-compile \
|
|
requirements/requirements.in \
|
|
--output-file=requirements.txt \
|
|
$1
|
|
|
|
# Then compile each additional requirements file in sequence
|
|
SUFFIXES=(dev help browser playwright)
|
|
CONSTRAINTS="--constraint=requirements.txt"
|
|
|
|
for SUFFIX in "${SUFFIXES[@]}"; do
|
|
pip-compile \
|
|
requirements/requirements-${SUFFIX}.in \
|
|
--output-file=requirements/requirements-${SUFFIX}.txt \
|
|
${CONSTRAINTS} \
|
|
$1
|
|
|
|
# Add this file as a constraint for the next iteration
|
|
CONSTRAINTS+=" --constraint=requirements/requirements-${SUFFIX}.txt"
|
|
done
|