Skip to content

Commit

Permalink
Script de maj des dépendances : rendre poetry update optionnel (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Aug 29, 2023
1 parent 185f62d commit 7b9fc37
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/generate_python_dependencies.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7b9fc37

Please sign in to comment.