Commit Graph

7 Commits

Author SHA1 Message Date
Andrii Barabash e552394abb
Fixed poetry-env plugin for Poetry >=2.0.0
Since version 2.0.0 poetry stopped using '[project.tool]' section in `pyproject.toml`. So the plugin didn't work for the newer poetry version.

With this change, the plugin will check for `pyproject.toml` and `poetry.lock` files to reliably check if it's a poetry project. In my testing, it worked with both poetry versions 1.8.5 and 2.0.1.
2025-02-19 21:49:24 +01: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