5 ms·
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.
by skratlo 4y 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 https://python-poetry.org/docs/cli/#run
- MuffinFlavored 4y agois this separate to pip's "requirements.txt" usually?
- senand 4y agoYes, it's assuming poetry is used, whereby normally the packages needed by the project are defined in pyproject.toml
- kortex 4y agoVery 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.
- MuffinFlavored 4y agoand they can't be combined, right? like package.json for example
- qprofyeh 4y agoHow does this compare to taskipy?
- paiute 4y agoWhile poetry is the way to go today, I've got my eyes on pdm. https://github.com/pdm-project/pdm https://github.com/pdm-project/pdm Pyproject.toml is a pep standard so it will be easy to move around tools.