Comment by semi-extrinsic
2 months ago
The /// script block is actually specified in PEP 723 and supported by several other tools apart from uv.
2 months ago
The /// script block is actually specified in PEP 723 and supported by several other tools apart from uv.
The last time I commented extolling the virtues of uv on here, I got a similar reply, pointing out that PEP 723 specs this behavior, and uv isn’t the only way. So I’ll try again in this thread: I’m bullish on uv, and waiting for Cunningham.
I am all in on uv as well, and advocating for its use heavily at $dayjob. But I think having as much as possible of these things encoded in standards is good for the ecosystem. Maybe in a few years time, someone will make something even better than uv. And in the meantime, having things standardised speeds up adoption in e.g. syntax highlighting in editors and such.
That's good to hear; do you know what other tools support it?
From what I can tell, Hatch, PDM, pipx and pip-run also support it.