Hacker News new | ask | show | jobs
by skratlo 1186 days ago
It's not true that Python doesn't have anything akin to package.json scripts. Bonus points: all is executed within project's virtualenv.

https://python-poetry.org/docs/cli/#run

3 comments

While poetry is the way to go today, I've got my eyes on pdm. https://github.com/pdm-project/pdm Pyproject.toml is a pep standard so it will be easy to move around tools.
i just wish poetry's dependency generation was faster. It's painful* today.
pdm is already the better choice than poetry IMHO.
How does this compare to taskipy?
is this separate to pip's "requirements.txt" usually?
Very different. Requirements.txt only handles dependency packages, and only handles on kind of dependency (no dev/release distinction). pyproject.toml does dev/release deps, it has package metadata, it can configure all your lint/test tooling, and it is extensible with plugins.
and they can't be combined, right? like package.json for example
Yes, it's assuming poetry is used, whereby normally the packages needed by the project are defined in pyproject.toml