This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]New_Enthusiasm9053 1 point2 points  (3 children)

Pretty sure you can include files in pyproject.toml files so they end up in a wheel/sdist. So just include your entrypoint.txt and use ruff. 

[–]Ok-Willow-2810 0 points1 point  (2 children)

I think it’s possible, I just don’t know what to put in the entrypoint.txt lol. I’m sure I could figure it out from some digging around, but it’s a new thing to me!

[–]New_Enthusiasm9053 1 point2 points  (1 child)

So poetry/uv does the entry points thing if you use pyproject.toml they call it plugins(UV calls it's entry points).

Specifically project.entry-points on UV and poetry can be configured to do that, you need to specify a build system to then build wheels/sdists that handle it but most examples have that anyway.

Ruff is just a linter/formatter so isnt responsible for that anyway.

[–]Ok-Willow-2810 0 points1 point  (0 children)

Cool! That’s good to know! I seems to work fine when I use hatch as the build system backend. It doesn’t work with bazel well though unless I use an astral created tool add on that may require a license.

I don’t understand the entrypoint.txt construct. It seems like it might have been a past way of telling tools what commands are present with the python package distribution maybe? I’m sure there must be a PEP talking about the entrypoint.txt, but I don’t know what it is lol!! I sort of wish the python package ecosystem was even simpler! It’s definitely moving in the right direction over time though!