darvid / zsh-poetry

🐚 Simple ZSH plugin for automatically activating and deactivating Poetry-created virtualenvs. 🐍
MIT License
75 stars 14 forks source link

Fix venv path extraction for Poetry >v0.12.17 #6

Open weilbith opened 4 years ago

weilbith commented 4 years ago

I recognized that this plugin was not working anymore. I turned out that is was caused due to an update of Poetry. This PR fixes this issue. Unhappily it is not backward compatible with older versions. Such would require much more overhead. But Poetry is not yet stable in general. So future interface changes are expected.

weilbith commented 4 years ago

I just realized that it has changed again for the latest version. :see_no_evil: Se we should consider to export that into its own function which switch the command for the respective version. What do you think @darvid

NeilGirdhar commented 3 years ago

This pull request doesn't work anymore. I submitted https://github.com/darvid/zsh-poetry/pull/8 for Poetry >= 1.0