cic-internal-integration/apps/util/requirements/update_base.sh

25 lines
508 B
Bash
Raw Normal View History

2021-06-30 16:44:17 +02:00
#!/bin/bash
which pyreq-merge &> /dev/null
if [ $? -gt 0 ]; then
>&2 echo pyreq-merge missing, please install requirements
exit 1
fi
t=$(mktemp)
>&2 echo using tmp $t
repos=(../../cic-cache ../../cic-eth ../../cic-ussd ../../data-seeding ../../cic-notify)
for r in ${repos[@]}; do
f="$r/requirements.txt"
>&2 echo updating $f
2021-06-30 17:58:52 +02:00
pyreq-update $f base_requirement.txt -vv > $t
cp $t $f
2021-06-30 16:44:17 +02:00
f="$r/test_requirements.txt"
>&2 echo updating $f
2021-06-30 17:58:52 +02:00
pyreq-update $f base_requirement.txt -vv > $t
2021-06-30 16:44:17 +02:00
cp $t $f
done