poetry self add poetry-plugin-export doesn't work with poetry 1.8.2
I tried to install the plugin with poetry self add poetry-plugin-export with Poetry version 1.8.2 and Python version 3.9.20.
I get the following error:
Because no versions of poetry-plugin-export match >1.9.0,<2.0.0
and poetry-plugin-export (1.9.0) depends on poetry (>=2.0.0,<3.0.0), poetry-plugin-export (>=1.9.0,<2.0.0) requires poetry (>=2.0.0,<3.0.0).
So, because poetry-instance depends on both poetry (1.8.2) and poetry-plugin-export (^1.9.0), version solving failed.
When I try specifying an older version of the plugin explicitly, it works as expected:
poetry self add poetry-plugin-export==1.8.0
sounds exactly as expected
@dimbleby Why? I have not found any indication that the latest plugin version is no longer compatible with poetry v1. Did I miss something?
https://github.com/python-poetry/poetry-plugin-export/blob/875cda2aa22fe2e4b36bd50b4bf4ae62b20d21af/pyproject.toml#L10
I expected to find such an information in the release notes, as the support for future poetry 2 versions or support for python 3.8 were also mentioned. Moreover, I would expect a major release because this is a breaking change for users of poetry 1. That's the reason I asked, because it felt like an accident to me.
Yes, we should have mentioned it in the changelog.
It is only breaking if you use self add (not if you use pipx) but that is an issue with self add, see python-poetry/poetry#707.