News for hackers. Stuff that matters.
Re:uv Running a Script with Dependencies by crabbone on Tuesday July 22, 2025 @04:35PM (#44652685)
> without you having to think about them at all.

Hahahahaha.

Oh. I'm rolling on the floor. Hahahahaha.

How do you never learn? No, honestly, how do you never learn this simple thing: it will break! I will bet my pension on that it will break, and perhaps not you, but some hundreds of developers will have to try to debug and try to figure out where the dependencies went and why they weren't installed correctly, or why something was missing and so on.

There will never be a situation that you don't have to think about something as important as dependencies at all.

Re:uv Running a Script with Dependencies by simonw on Tuesday July 22, 2025 @11:04PM (#44655366)
Have you used uv run?
Re:uv Running a Script with Dependencies by crabbone on Wednesday July 23, 2025 @08:21AM (#44658393)
Out of curiosity, yes, I did. But I don't have any use for this tool. I can do better without it. I use these tools because I'm often requested to help those who use them and in so doing make a mess out of their working environment to the point that they can no longer do any work. So, I want to be up to date on latest threats. But as for my personal work with Python, there's simply no use-case where I'd need a tool like uv. It serves no purpose.
Re:uv Running a Script with Dependencies by simonw on Wednesday July 23, 2025 @09:10AM (#44658831)
A lot of people disagree with you there.

I've found it extremely useful because it makes it trivial for me to try out new dependency versions without thinking about which environment should install them in first.

When I'm teaching people Python the earliest sticking point is always "now activate your virtual environment" - being able to avoid that is huge.