nat-n / poethepoet

A task runner that works well with poetry.
https://poethepoet.natn.io/
MIT License
1.46k stars 59 forks source link

Add poetry plugin #46

Closed nat-n closed 2 years ago

nat-n commented 2 years ago

Based off of #32 by @ThatXliner and refactored a bit.

nat-n commented 2 years ago

There's still an open question about how to handle passing of arguments to tasks. This doesn't work out of the box since tasks are registered as commands using cleo as a CLI library. I'm afraid that it may be necessary to refactor poethepoet to use Cleo throughout! Though this might still not help for passing arbitrary args to cmd tasks for instance. I haven't looked into this properly yet.

ThatXliner commented 2 years ago

Ooh this looks promising. So you have the option to make it a prefix now?

Also, I'm a bit confused on the poetry_prefix configuration... What does it do? What does it mean?

ThatXliner commented 2 years ago

Looking good! Haven't tested it on my machine yet.

Looking from the code, I guess you got the plugin to invoke the PoeThePoet object.

nat-n commented 2 years ago

@ThatXliner I think it's almost ready to go. If you could test it out a bit then that would be helpful :)