Discussion about this post

User's avatar
Mark Sundstrom's avatar

Minor typo, uv 0.3 not 3.0, and of course now 0.4.1. Blazingly fast, that makes so much difference. I'm expanding my experimentation with it daily.

Expand full comment
Ash Roberts's avatar

Not sure I'm quite on board with how UV manages dependencies for single scripts. 'Now, you can use uv add to automatically embed the dependency declarations within the script itself'

I guess this make sense if the script is going to never leave the UV ecosystem. Otherwise it's just comment that is taking up space for other users.

'You can also pull arbitrary dependencies into a uv run invocation via with the --with flag, as in: uv run --with "requests<3" --with rich main.py.'

Better, but clunky, and prone to errors by having to manually type the dependencies each time.

Seems like it would make more sense to have a flag that instructs uv run to pull the dependencies directly from the import statements

Expand full comment
5 more comments...

No posts