diff --git a/scripts/generate_python_dependencies.sh b/scripts/generate_python_dependencies.sh index 222c0d5ec..650f695e9 100755 --- a/scripts/generate_python_dependencies.sh +++ b/scripts/generate_python_dependencies.sh @@ -1,4 +1,14 @@ #!/bin/bash -poetry update + +# ask if the use wants to run poetry update +printf "Run 'poetry update' first ? (y/n)" +read answer +if [ "$answer" != "${answer#[Yy]}" ]; then + poetry update +fi + +# update requirements .txt files +echo "Updating 'requirements/dev.txt'" poetry export --without-hashes --with dev --output requirements/dev.txt +echo "Updating 'requirements/staging.txt'" poetry export --without-hashes --output requirements/staging.txt