From c072f15cb52cafe802253bdd077bbf8f62cf6cfb Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Wed, 9 Sep 2026 02:08:49 +0000 Subject: [PATCH] Make helper scripts directly executable with uv run shebang guibuild.py and release.py use the project environment; rtorrent-manager.py is standalone and declares its own dependency via uv script metadata. --- scripts/guibuild.py | 1 + scripts/release.py | 1 + scripts/rtorrent-manager.py | 8 +++++++- 3 files changed, 9 insertions(+), 1 deletion(-) mode change 100644 => 100755 scripts/guibuild.py mode change 100644 => 100755 scripts/release.py mode change 100644 => 100755 scripts/rtorrent-manager.py diff --git a/scripts/guibuild.py b/scripts/guibuild.py old mode 100644 new mode 100755 index 9de9451..f65b740 --- a/scripts/guibuild.py +++ b/scripts/guibuild.py @@ -1,3 +1,4 @@ +#!/usr/bin/env -S uv run """Build the desktop GUI application and package it as a version-numbered ZIP. Usage: diff --git a/scripts/release.py b/scripts/release.py old mode 100644 new mode 100755 index d17a550..c09c260 --- a/scripts/release.py +++ b/scripts/release.py @@ -1,3 +1,4 @@ +#!/usr/bin/env -S uv run """Publish a MediaHive release to Gitea. Usage: diff --git a/scripts/rtorrent-manager.py b/scripts/rtorrent-manager.py old mode 100644 new mode 100755 index a1d8ada..758bda1 --- a/scripts/rtorrent-manager.py +++ b/scripts/rtorrent-manager.py @@ -1,4 +1,10 @@ -#!/usr/bin/env python3 +#!/usr/bin/env -S uv run +# /// script +# requires-python = ">=3.14" +# dependencies = [ +# "bencodepy>=0.9.5", +# ] +# /// """Torrent Scanner - Scans for .torrent files and analyzes their trackers.""" import argparse