astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
20.61k stars 609 forks source link

support installing uv to the project using a wrapper script #6662

Open DetachHead opened 3 weeks ago

DetachHead commented 3 weeks ago

re-raising https://github.com/astral-sh/rye/issues/944 here now that uv has many of rye's features:

tools like pyprojectx and gradle support being installed and run with a wrapper script, which is a script in the project root that gets committed which allows anybody to start working on your repo even if they don't have uv installed.

the script could be called uw (uv wrapper) or something, and users can run ./uw sync which will automatically install uv and then run the sync command

zanieb commented 3 weeks ago

Sort of related to #6533

I'm honestly kind of into this. It's not on the immediate roadmap though.

chrisrodrigue commented 3 days ago

Yeah a wrapper script that lives in the root of the project would be really awesome.

https://github.com/astral-sh/uv/issues/6505 is also a cool idea. I know that binaries are frowned upon in git but I would make an exception for a cross platform/APE uv binary in my project root.