Commit graph

7 commits

Author SHA1 Message Date
Jacob Rogers
3a6f538109 fix(poetry-env): fix env detection for pyproject without [tool.poetry]
Since version 2.0.0, poetry stopped requiring '[tool.poetry]' section in pyproject.toml and new environments are created without it, but the zsh plugin still required it.

With this change, the plugin will check for `pyproject.toml` and `poetry.lock` files to reliably check if it's a poetry project. Tested with both poetry versions 1.8.5, 2.0.1 and 2.1.2.
2025-08-12 15:54:28 +12:00
Kate Sullivan
ca5471fe49
fix(poetry-env): switch venv between poetry dirs (#12804)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-11-14 09:00:48 +01:00
Alex Rosenfeld
0987eee190
fix(poetry-env): only run deactivate if needed (#12701)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-10-08 21:44:18 +02:00
Carlo Sala
5d2d35cd17
fix(poetry-env): do not deactivate in a subdir
Closes #12377
2024-04-23 16:21:21 +02:00
Kate Sullivan
31f2025e0f
feat(poetry-env): support changing between two venv dirs (#12346)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-04-12 09:24:54 +02:00
Zikoeng Xi
a168efe73e
fix(poetry-env): activate only if env exists (#12301) 2024-03-26 09:54:04 +01:00
ajatkj
1cc32be5f6
feat(poetry-env): create plugin (#11069) 2023-09-20 15:51:27 +01:00