Terminale requirement compile on errors

This commit is contained in:
nolash 2021-06-30 23:50:47 +02:00
parent a994783122
commit 75d4a52289
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 13 additions and 6 deletions

View File

@ -1,4 +1,3 @@
cic-base[full_graph]==0.1.2b15
sarafu-faucet==0.0.3a3 sarafu-faucet==0.0.3a3
sarafu-token==0.0.1a8 sarafu-token==0.0.1a8
cic-eth==0.11.0b16 cic-eth==0.11.0b16

View File

@ -13,19 +13,27 @@ out=$(mktemp)
>&2 echo using tmp $t >&2 echo using tmp $t
cat ../../requirements.txt > $out cat ../../requirements.txt > $out
repos=(../../cic-cache ../../cic-eth ../../cic-ussd ../../data-seeding ../../cic-notify) repos=(../../cic-cache ../../cic-eth ../../cic-ussd ../../data-seeding ../../cic-notify ../../contract-migration)
for r in ${repos[@]}; do for r in ${repos[@]}; do
f="$r/requirements.txt" f="$r/requirements.txt"
>&2 echo updating $f >&2 echo updating $f
pyreq-merge $f $out -vv > $in pyreq-merge $f $out -vv > $in
if [ $? -gt 0 ]; then
>&2 echo requirement prepare failed for $f
exit 1
fi
cp $in $out cp $in $out
f="$r/test_requirements.txt" f="$r/test_requirements.txt"
if [ -f $f ]; then if [ -f $f ]; then
>&2 echo updating $f >&2 echo updating $f
pyreq-merge $f $out -vv > $in pyreq-merge $f $out -vv > $in
if [ $? -gt 0 ]; then
>&2 echo requirement prepare failed for $f
exit 1
fi
cp $in $out cp $in $out
fi fi
done done
@ -41,7 +49,7 @@ for r in ${repos[@]}; do
mkdir -vp $outd/$d mkdir -vp $outd/$d
echo "-r $f" > $outd/$d/$b_in echo "-r $f" > $outd/$d/$b_in
pyreq-update -v $f compiled_requirements.txt >> $outd/$d/$b_in pyreq-update -v $f compiled_requirements.txt >> $outd/$d/$b_in
pip-compile -v --extra-index-url $PIP_INDEX_URL $outd/$d/$b_in -o $outd/$d/$b pip-compile --pre -v --extra-index-url $PIP_INDEX_URL $outd/$d/$b_in -o $outd/$d/$b
if [ $? -gt 0 ]; then if [ $? -gt 0 ]; then
>&2 echo requirement compile failed for $f >&2 echo requirement compile failed for $f
exit 1 exit 1