News for hackers. Stuff that matters.
Re:What the Heck Is Pyproject.toml? by j88439h84 on Wednesday April 01, 2020 @07:28PM (#22754642)
> I also wish there was a npm style script section in the definitions.

Is that like [tool.poetry.scripts] ?

Re:What the Heck Is Pyproject.toml? by xzel on Thursday April 02, 2020 @02:38AM (#22756756)
I don't think so. From their docs: > This section describe the scripts or executable that will be installed when installing the package

I want something such that I can run `poetry run script_name` and it will run that command line in the poetry context. Right now I either rely on my bash history or use a bash script to mimic the behavior of npm / yarn scripts. I want to turn this `poetry run python project_name/main.py` into an alias like `poetry run main` or `poetry run dev`.

Re:What the Heck Is Pyproject.toml? by j88439h84 on Friday April 03, 2020 @07:56PM (#22775053)
That's what tool.poetry.scripts does.
Re:What the Heck Is Pyproject.toml? by xzel on Saturday April 04, 2020 @02:48PM (#22780496)
O thats great. So just weirdly worded on the docs / I didn't understand. Thanks!