First time here? Check out the FAQ!

Revision history  [back]

Debug/Execute a poetry packaged project

I'm trying to debug a https://python-poetry.org/ managed project (https://github.com/djrobstep/migra) with a script command like...

[tool.poetry.scripts]
migra = 'migra:do_command'

I wrote my own run.py like

from migra import do_command

do_command()

and that worked, but seemed a little clunky, to have to add my own code to debug with wing. Is there a better way?

Debug/Execute a poetry packaged project

I'm trying to debug a https://python-poetry.org/ managed project (https://github.com/djrobstep/migra) with a script command like...

[tool.poetry.scripts]
migra = 'migra:do_command'

I wrote my own run.py like

from migra import do_command

do_command()

and that worked, but seemed a little clunky, to have to add my own code to debug with wing. Is there a better way?