From d83843a7619889d8f25fc0e4e31d868044693eaa Mon Sep 17 00:00:00 2001 From: nolash Date: Wed, 30 Jun 2021 14:26:45 +0200 Subject: [PATCH] Introduce base requirement updater script for all repos --- apps/cic-cache/requirements.txt | 2 +- apps/cic-eth/requirements.txt | 2 +- apps/cic-ussd/requirements.txt | 2 +- apps/data-seeding/requirements.txt | 2 +- apps/util/requirements/base_requirement.txt | 1 + apps/util/requirements/requirements.txt | 1 + apps/util/requirements/update_base.sh | 19 +++++++++++++++++++ 7 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 apps/util/requirements/base_requirement.txt create mode 100644 apps/util/requirements/requirements.txt create mode 100644 apps/util/requirements/update_base.sh diff --git a/apps/cic-cache/requirements.txt b/apps/cic-cache/requirements.txt index 705e4211..2bc3a75a 100644 --- a/apps/cic-cache/requirements.txt +++ b/apps/cic-cache/requirements.txt @@ -1,4 +1,4 @@ -cic-base~=0.1.3a2 +cic-base==0.1.3a3+build.4aa03607 alembic==1.4.2 confini~=0.3.6rc3 uwsgi==2.0.19.1 diff --git a/apps/cic-eth/requirements.txt b/apps/cic-eth/requirements.txt index 45655432..207045ed 100644 --- a/apps/cic-eth/requirements.txt +++ b/apps/cic-eth/requirements.txt @@ -1,4 +1,4 @@ -cic-base~=0.1.3a3 +cic-base==0.1.3a3+build.4aa03607 celery==4.4.7 crypto-dev-signer~=0.4.14b6 confini~=0.3.6rc3 diff --git a/apps/cic-ussd/requirements.txt b/apps/cic-ussd/requirements.txt index 4411509e..23b1c354 100644 --- a/apps/cic-ussd/requirements.txt +++ b/apps/cic-ussd/requirements.txt @@ -1,4 +1,4 @@ -cic_base[full_graph]~=0.1.2b21 +cic_base[full_graph]==0.1.3a3+build.4aa03607 cic-eth~=0.11.0b16 cic-notify~=0.4.0a5 cic-types~=0.1.0a11 diff --git a/apps/data-seeding/requirements.txt b/apps/data-seeding/requirements.txt index 0ccea988..c178b15f 100644 --- a/apps/data-seeding/requirements.txt +++ b/apps/data-seeding/requirements.txt @@ -1,4 +1,4 @@ -cic-base[full_graph]==0.1.3a3 +cic_base[full_graph]==0.1.3a3+build.4aa03607 sarafu-faucet==0.0.4a1 cic-eth==0.11.1a1 cic-types==0.1.0a13 diff --git a/apps/util/requirements/base_requirement.txt b/apps/util/requirements/base_requirement.txt new file mode 100644 index 00000000..ea67cea4 --- /dev/null +++ b/apps/util/requirements/base_requirement.txt @@ -0,0 +1 @@ +cic-base==0.1.3a3+build.4aa03607 diff --git a/apps/util/requirements/requirements.txt b/apps/util/requirements/requirements.txt new file mode 100644 index 00000000..c5b56441 --- /dev/null +++ b/apps/util/requirements/requirements.txt @@ -0,0 +1 @@ +requirements-magic~=0.0.2 diff --git a/apps/util/requirements/update_base.sh b/apps/util/requirements/update_base.sh new file mode 100644 index 00000000..1da08456 --- /dev/null +++ b/apps/util/requirements/update_base.sh @@ -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