Very naive code for pinning Python deps.
- Go to directory of Python project
- Run the following:
(
TMP="./PinPythonDeps.cs"
trap 'rm -f "$TMP"' EXIT
{
echo '#!/usr/bin/env dotnet run'
curl -sL "https://raw.githubusercontent.com/budgetdevv/PinPythonDeps/refs/heads/main/PinPythonDeps/PinPythonDeps.cs"
} > "$TMP"
chmod +x "$TMP"
"$TMP"
)