News for hackers. Stuff that matters.
Re:Ask HN: Best practice to distribute private Python CLI to... by philomath_mn on Monday January 27, 2025 @11:29PM (#42848836)
Can you easily combine it into one file? You could use PEP 723 and `uv`'s script running capability [0].

If your project is not flat, you could have a "build" step to combine everything into one file (assuming everything is simple).

`uv tool` would be great but you'd need to manage a private repo and credentials -- the "it just works" magic kinda goes away at that point.

[0] https://docs.astral.sh/uv/guides/scripts/#declaring-script-d...

There are no comments on this comment yet.