Hacker News new | ask | show | jobs
by hprotagonist 1181 days ago
that’s generally not correct. entry points are how your package, once installed, is called from the command line; i wouldn’t wire up a docker image build step or twine publish that way.
1 comments

Those two examples are the exact use-case that defining scripts in pyproject.toml are meant for. Users of my installed package would never need to run `twine publish` or build the project's docker image. That's only really needed by developers who would be working from the full project source including pyproject.toml.
entry points are installed to the interpreter site when you `pip install`: everyone gets them including your users.