erplibre/script/poetry_add_build_dependency.sh
2021-06-27 00:52:18 -04:00

11 lines
455 B
Bash
Executable file

#!/usr/bin/env bash
source $HOME/.poetry/env
poetry add -vv $(grep -v ";" ./.venv/build_dependency.txt | grep -v "*" )
# poetry add -vv $(grep -v ";" ./.venv/build_dependency.txt | grep -v "*" | sed 's/==/@^/' )
# poetry export -f ./.venv/build_dependency.txt --dev | poetry run -- pip install -r /dev/stdin
retVal=$?
if [[ $retVal -ne 0 ]]; then
echo "Error ./script/poetry_add_build_dependency.sh"
cat ./.venv/build_dependency.txt
exit 1
fi