-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow installation of scripts, e.g., uv tool install --script <path>
or uv script install
#7242
Comments
Is this related to #5903? Or do you specifically want |
It's not quite the same, 5903 is a project-level command alias, something like |
I guess we could support something like |
I'm also looking forward to this feature. In the meantime, I created a template that generates the minimum required files for |
Now that a lot of the inline script meta-data (PEP 723) functionality has been merged, something like |
uv tool install --script <path>
or uv script install
I'm in favor of this, but I think we'll need to figure out what the design looks like. |
some recent examples that might be relevant here: both from a discussion on HN |
just adding a voice of support here - I tried to achieve this today with the syntax I regularly distribute scripts to less tech-savvy users, allowing installation of scripts like this would reduce the cognitive burden of using a script from
to
To achieve this right now I need to spin up a whole package for the script and add an entry point with the same name as the package edit: I like the proposed |
I often write small standalone python scripts and I'll use them anywhere.
If using
uv run /path/to/script.py
is a bit cumbersome for me (mostly typing the path)So I want a
uv script
command to globally install these scriptsMaybe something like
uv tool
, butuv script
manages scripts,uv tool
manages tools.Related: pypa/pipx#1388 (although pipx doesn't implement it too)
The text was updated successfully, but these errors were encountered: