Skip to main content

python/depanalysis: count unique versions of dependencies

ID
e7259dd
date
2026-05-27 06:54:43+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
e6f4c99
message
python/depanalysis: count unique versions of dependencies
changed files
1 file, 5 additions, 1 deletion

Changed files

python/depanalysis (303) → python/depanalysis (459)

diff --git a/python/depanalysis b/python/depanalysis
index 6044d02..a2e5118 100755
--- a/python/depanalysis
+++ b/python/depanalysis
@@ -7,5 +7,9 @@ mkdir -p /tmp/depanalysis
 cd /tmp/depanalysis
 get_all_venv_deps > venv.txt
 grep '==[0-9]' venv.txt | tr '==' ' ' | awk '{print $1}' | tally
-echo "=="$(grep '==[0-9]' venv.txt | tr '==' ' ' | awk '{print $1}' | tally | wc -l)" UNIQUE =="
+
+UNIQUE_LIBRARIES=$(grep '==[0-9]' venv.txt | tr '==' ' ' | awk '{print $1}' | tally | wc -l | trim)
+UNIQUE_VERSIONS=$(grep '==[0-9]' /tmp/depanalysis/venv.txt | tally | wc -l | trim)
+echo "== $UNIQUE_LIBRARIES libraries, $UNIQUE_VERSIONS versions =="
+
 mate venv.txt