Skip to content

Instantly share code, notes, and snippets.

@vyach-vasiliev
Created February 16, 2023 12:06
Show Gist options
  • Save vyach-vasiliev/92fd5a36becc1b54c9fb784641708db7 to your computer and use it in GitHub Desktop.
Save vyach-vasiliev/92fd5a36becc1b54c9fb784641708db7 to your computer and use it in GitHub Desktop.
Check Django version for packages
#!/bin/sh
filename="check-"$(date '+%Y%m%d')".txt"
> "$filename"
while IFS= read -r line || [ -n "$line" ]; do
res=$(bash -c "sh runpython.sh -m johnnydep --output-format pinned $line" | grep -v "run python with params" | grep Django)
echo -n "$res, " >> "$filename"
echo "$line" >> "$filename"
done < requirements.local.txt
django-debug-toolbar==3.7.0
django-debug-toolbar-request-history==0.1.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment