deps: Adjust the header comments in lock files to reflect our tools.

This commit is contained in:
Greg Price
2017-09-14 20:22:38 -07:00
committed by Tim Abbott
parent 7c5f3d7be1
commit ceca96899a
3 changed files with 28 additions and 6 deletions

View File

@@ -22,6 +22,22 @@ compile_requirements () {
# pip-tools bug; future, futures are obsolete in python3
sed -i '/futures==/d' "$output"
sed -i '/future==/d' "$output"
(
cat <<EOF
#
# This file is GENERATED. Don't edit directly.
#
# To update, edit the non-"lock" files in requirements/*.txt, then:
#
# tools/update-locked-requirements
#
# For details, see requirements/README.md .
#
EOF
# This perl invocation strips the existing block of header comments.
perl -0pe 's/\A(^#.*\n)*//m' "$output"
) | sponge "$output"
}
compile_requirements requirements/prod.txt requirements/prod_lock.txt