astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.6k stars 466 forks source link

Pass universal flag down to uv #1186

Closed lbowenwest closed 2 months ago

lbowenwest commented 2 months ago

Partially addresses https://github.com/astral-sh/rye/issues/1056

Allows parsing the new --universal flag down to uv when calling lock or sync, also adds it as an option to the pyrpoject.toml

Tested locally for lock and sync with command line args and in the pyproject, seems to work.

mitsuhiko commented 2 months ago

I think this is the right way to go about this. This at least is somewhat consistent with how other flags are currently dealt with, but it gives the lockfile even more persistence.