python: check in my depanalysis script
- ID
f068fb3- date
2026-05-14 05:50:16+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
1b09cb9- message
python: check in my depanalysis script- changed files
2 files, 25 additions, 1 deletion
Changed files
python/README.md (2593) → python/README.md (3025)
diff --git a/python/README.md b/python/README.md
index b2f0b95..0863d4e 100644
--- a/python/README.md
+++ b/python/README.md
@@ -18,6 +18,12 @@ folder_name = "python"
scripts = [
{
+ "usage": "depanalysis",
+ "description": """
+ get a summary of every Python version installed in every Python virtualenv on my computer.
+ """,
+ },
+ {
"usage": "deploy_to_pypi",
"description": """
deploy a new version of a Python library: bump the version, tag the Git commit, push to PyPI and GitHub.
@@ -48,6 +54,15 @@ cog_helpers.create_description_table(folder_name=folder_name, scripts=scripts)
]]]-->
<dl>
<dt>
+ <a href="https://github.com/alexwlchan/scripts/blob/main/python/depanalysis">
+ <code>depanalysis</code>
+ </a>
+ </dt>
+ <dd>
+ get a summary of every Python version installed in every Python virtualenv on my computer.
+ </dd>
+
+ <dt>
<a href="https://github.com/alexwlchan/scripts/blob/main/python/deploy_to_pypi">
<code>deploy_to_pypi</code>
</a>
@@ -92,4 +107,4 @@ cog_helpers.create_description_table(folder_name=folder_name, scripts=scripts)
A wrapper around `uv pip sync`. You don't need to call this directly.
</dd>
</dl>
-<!-- [[[end]]] (sum: 2V/ogTR3H5) -->
+<!-- [[[end]]] (sum: WIjqpb60M8) -->
python/depanalysis (0) → python/depanalysis (176)
diff --git a/python/depanalysis b/python/depanalysis
new file mode 100755
index 0000000..545bf25
--- /dev/null
+++ b/python/depanalysis
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+set -o errexit
+set -o nounset
+
+cd $(mktemp -d)
+get_all_venv_deps > venv.txt
+grep '==[0-9]' venv.txt | tr '==' ' ' | awk '{print $1}' | tally
+mate venv.txt