Having trouble with tasks with reference #95
-
I have [tool.poe.tasks]
test = "pytest"
stage = "python stage.py"
_publish = "python publish.py"
publish = ["stage", "test", "_publish"] if I run I've also tried: publish = [
{ref = "stage"},
{ref = "test"},
{ref = "_publish"},
] with the same error. If I do: publish = "python publish.py" It does run. Any ideas what I'm missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @mshafer-NI, thanks for the feedback. I'm afraid this might be a bug in how the sequence task optimises running multiple subtasks with poetry. Possibly related to a known issue on windows environments that is under investigation. Could you tell me a bit more about your environment?
One work around that might be worth trying is to use a script task to directly call a specific method from publish.py e.g. _publish.script = "publish:main" Otherwise it might work if you do: _publish.script = "poetry run publish.py" Though this is a not a very satisfying solution as it comes with a cost in complexity & performance. |
Beta Was this translation helpful? Give feedback.
-
I tried [tool.poe.tasks]
test = "pytest"
stage.script = "stage:main"
_publish = "python publish.py"
publish = ["stage", "test", "_publish"] but calling "poetry run poe publish" still fails on stage on the module. |
Beta Was this translation helpful? Give feedback.
Hi @mshafer-NI, thanks for the feedback.
I'm afraid this might be a bug in how the sequence task optimises running multiple subtasks with poetry. Possibly related to a known issue on windows environments that is under investigation.
Could you tell me a bit more about your environment?
One work around that might be worth trying is to use a script task to directly call a specific method from publish.py e.g.
Otherwise it might work if you do:
Though this is a not a very satisfyin…