wolkje-gedeelde-mappen/tools/update_requirements.sh
2023-05-02 17:38:05 +02:00

17 lines
405 B
Bash
Executable file

#!/bin/sh
cd "`dirname "$0"`"/..
if [ ! -f venv/bin/pip-compile ]; then
venv/bin/pip install pip-tools
fi
echo "Generating requirements.txt..."
cat <<EOF > requirements.txt
#
# This file is autogenerated. To update, run:
# tools/update_requirements.sh
#
EOF
venv/bin/pip-compile --quiet --generate-hashes --annotate --no-header --output-file="-" >> requirements.txt
echo "Updated requirements.txt"