Comment

The app for independent voices

What's up Python? UV disrupts packaging, 2023 community stats, namespaces in Pypi...

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

1 Reply
Sep 1
at
10:17 PM