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
|
|
|
|
|
2021-07-05 12:58:08 +02:00
|
|
|
repos=(../../cic-cache ../../cic-eth ../../cic-ussd ../../data-seeding ../../cic-notify ../../contract-migration)
|
2021-06-30 16:44:17 +02:00
|
|
|
|
|
|
|
for r in ${repos[@]}; do
|
|
|
|
f="$r/requirements.txt"
|
|
|
|
>&2 echo updating $f
|
2021-07-05 12:58:08 +02:00
|
|
|
pyreq-update $f base_requirement.txt -v > $t
|
2021-06-30 20:15:40 +02:00
|
|
|
cp $t $f
|
|
|
|
|
2021-06-30 16:44:17 +02:00
|
|
|
f="$r/test_requirements.txt"
|
2021-07-05 12:58:08 +02:00
|
|
|
if [ -f $f ]; then
|
|
|
|
>&2 echo updating $f
|
|
|
|
pyreq-update $f base_requirement.txt -v > $t
|
|
|
|
cp $t $f
|
|
|
|
fi
|
2021-06-30 16:44:17 +02:00
|
|
|
done
|