Hacker News new | past | comments | ask | show | jobs | submit login

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




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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: