top | item 35329954

(no title)

hackandtrip | 2 years ago

Another possibility is using the `scripts` in the `pyproject.toml`, as described here: https://python-poetry.org/docs/pyproject/#scripts

discuss

order

hprotagonist|2 years 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.

zer0w1re|2 years ago

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.

leblancfg|2 years ago

That's specifically for the Poetry package manager, not Python in general.