diff --git a/scripts/cd_requirements.sh b/scripts/cd_requirements.sh new file mode 100755 index 0000000..5ccb1c6 --- /dev/null +++ b/scripts/cd_requirements.sh @@ -0,0 +1,11 @@ +#!/bin/bash +python3 -m pip install --upgrade pip +pip3 install pytest pipreqs pip-tools setuptools wheel +pipreqs starstream --savepath=./requirements.in +sed -i 's/==.*$//' requirements.in +sort requirements.in | uniq > requirements_unique.in +pip-compile ./requirements_unique.in +rm -f *.in +pip install -r requirements_unique.txt +rm -f requirements_unique.txt +