From 7a8f4f93cc7e87bb1e42ff1ac8532dbf8ad4671b Mon Sep 17 00:00:00 2001 From: Trevor Manz Date: Thu, 26 Sep 2024 11:00:33 -0400 Subject: [PATCH] Check in test script for uv run (#7708) Merge before #6375 (see https://github.com/astral-sh/uv/pull/6375#discussion_r1776975298) This is testing a couple of things at once, and I'm happy to strip back to something more simple (i.e., "just" printing). However, I figured it would be useful to ensure that the PEP 723 metadata correctly works as well as that additional arguments are correctly forwarded to the Python program. cc: @burntsushi --- scripts/uv-run-remote-script-test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/uv-run-remote-script-test.py diff --git a/scripts/uv-run-remote-script-test.py b/scripts/uv-run-remote-script-test.py new file mode 100644 index 000000000..c05b14e0e --- /dev/null +++ b/scripts/uv-run-remote-script-test.py @@ -0,0 +1,13 @@ +# This file is used to test `uv run ` in ../crates/uv/tests/run.rs +# /// script +# requires-python = ">=3.11" +# dependencies = [ +# "rich==13.8.1", +# ] +# /// +import sys + +import rich + +who = sys.argv[1] +rich.print(f"Hello {who}, from uv!")