[llvm] github-upload-release.py: add inline script dependencies (PR #169461)

Ryan Mast via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 24 22:47:49 PST 2025


https://github.com/nightlark created https://github.com/llvm/llvm-project/pull/169461

Adds dependencies to github-upload-release.py using [PEP 723 inline script metadata](https://packaging.python.org/en/latest/specifications/inline-script-metadata/#inline-script-metadata). Consumed by tools such as `pipx run` to install dependencies without having to track them in a separate requirements.txt file.

>From 3b7e039db84d280e63ba08c6e612f717e7f7d0af Mon Sep 17 00:00:00 2001
From: Ryan Mast <mast.ryan at gmail.com>
Date: Mon, 24 Nov 2025 22:43:16 -0800
Subject: [PATCH] github-upload-release.py: add inline script dependencies

Signed-off-by: Ryan Mast <mast.ryan at gmail.com>
---
 llvm/utils/release/github-upload-release.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/llvm/utils/release/github-upload-release.py b/llvm/utils/release/github-upload-release.py
index d58bb544e17dd..ddd5ac797dfba 100755
--- a/llvm/utils/release/github-upload-release.py
+++ b/llvm/utils/release/github-upload-release.py
@@ -1,4 +1,10 @@
 #!/usr/bin/env python3
+# /// script
+# requires-python = ">=3.8"
+# dependencies = [
+#   "PyGithub==2.8.1",
+# ]
+# ///
 # ===-- github-upload-release.py  ------------------------------------------===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.



More information about the llvm-commits mailing list