Skip to content

Commit

Permalink
Check in test script for uv run <url> (astral-sh#7708)
Browse files Browse the repository at this point in the history
Merge before astral-sh#6375 (see
astral-sh#6375 (comment))

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
  • Loading branch information
manzt authored Sep 26, 2024
1 parent d536dfe commit 7a8f4f9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/uv-run-remote-script-test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file is used to test `uv run <url>` 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!")

0 comments on commit 7a8f4f9

Please sign in to comment.