Introduce base requirement updater script for all repos

This commit is contained in:
nolash
2021-06-30 14:26:45 +02:00
parent 3e5dd44e0b
commit d83843a761
7 changed files with 25 additions and 4 deletions

View File

@@ -0,0 +1 @@
cic-base==0.1.3a3+build.4aa03607

View File

@@ -0,0 +1 @@
requirements-magic~=0.0.2

View File

@@ -0,0 +1,19 @@
#!/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)
for r in ${repos[@]}; do
f="$r/requirements.txt"
>&2 echo updating $f
pyreq-merge $f base_requirement.txt > $t
cp $t $f
done