6 ms·
I e experienced a few “gotchas” using uv (or uvx) as a command runner, but when it works (which is most of the time) it’s a big time saver. As a Python dev and
by threecheese 2y ago
I e experienced a few “gotchas” using uv (or uvx) as a command runner, but when it works (which is most of the time) it’s a big time saver. As a Python dev and curious person my homedir is littered with shallow clones and one-off directories for testing some package or another, and not having to manage this overhead is really useful.
OP, you have a great idea and I’m stealing it. Do you use some non-.py suffix, or is seeing the exec bit at on a .py file enough of a signal for you to know that you can just run the file as a script (and it won’t use the system Python)?
- przemub 2y agoFrom what I understand, he uses .py with exec bit and the shebang line as in the article.
- BiteCode_dev 2y agoI've been collecting gotchas from using uv myself over the last year to assess whether to recommend it or not and I found surprisingly few. Not zero, but I'm looking pretty hard. Would love to hear what gotchas to find so I can add that to the list.
- achierius 2y agoIs the list public? I'm trying to figure out whether it's worth taking the plunge.
- BiteCode_dev 2y agoI'll write an article on bitecode.dev at the one year mark (about end of feb) about the various situations I tested it in with clients and the results. I will include a section about the things that it was not good for and the problems with it. Spoiler, there were not that many and they fixed them astonishingly well (even one this week!). But obviously there were some, no software is perfect although they worked hard to not make it too opinionated for the first taste. I can ping you when it comes out.
- EdwardDiego 2y agoReally curious as to your gotchas. One thing that hit me in Pipenv, but worked well in Poetry, is when a given dep has different wheels for different platforms. The pipenv lock lockfile would only include the deps for the platform you locked it on. Poetry adds all platform variants to the lockfile. And haven't found any documentation around uv's behaviour in this regard.