Closed fritz-trawa closed 4 months ago
Hi @fritz-trawa, thanks for the question.
I need some more info to tell whether what you describe is expected behavior or not. If used with poetry then poe will by default use whatever python is referenced in the virtualenv managed by poetry, that is the env returned by poetry env info -p
. Running poetry run python version.py
should confirm whether poetry is using the expected python version for its virtualenv; could you try that please?
Another important question, is the version task defined in the main pyproject.toml file alongside poetry related config or is it imported from another file? If it's an import, does it start working if you move it to the pyproject.toml? If so then we have a bug.
This is because poe will only default to using the PoetryExecutor if it detects poetry related config, which should guarantee using the poetry virtualenv (if available).
Note that you can also configure poe to use a a specific virtualenv or to have no opinion about it.
Then I have a simple python script to do the same
Then in my tasks file I have
Then when I test it
How do I get poe to use the version in my local virtual environment? Thanks