aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-30 22:29:25 -0500
committertdback <tyler@tdback.net>2025-01-30 22:29:25 -0500
commitbc7ea3b1147d52d3ae36c7addb59ce3425f4f788 (patch)
tree8b6ff01c177b00c2b3d58dff9c62748fe92da5a8
parent303aa81d25df5f96ce980f2d38efb4a8ffc8faf7 (diff)
geoip: use `uv` to manage python dependenciesHEADmain
-rw-r--r--README.md2
-rwxr-xr-xgeoip6
2 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index cc9cc16..0d4c73e 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,6 @@ Some scripts require the following to be installed and in your system path:
- ffmpeg (with Xcb support)
- fzf
- ImageMagick
-- python3 (with requests library)
+- uv
- zpool
- $EDITOR environment variable set
diff --git a/geoip b/geoip
index 0378733..62ca35c 100755
--- a/geoip
+++ b/geoip
@@ -1,5 +1,7 @@
-#!/usr/bin/env nix-shell
-#!nix-shell -i python3 --pure -p 'python3.withPackages (p: [ p.requests ])'
+#!/usr/bin/env -S uv run -qs
+# /// script
+# dependencies = ["requests"]
+# ///
import argparse
import requests