poetry-plugin-export icon indicating copy to clipboard operation
poetry-plugin-export copied to clipboard

poetry self add poetry-plugin-export doesn't work with poetry 1.8.2

Open juliankeppel opened this issue 10 months ago • 5 comments

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

juliankeppel avatar Feb 26 '25 09:02 juliankeppel

sounds exactly as expected

dimbleby avatar Feb 26 '25 16:02 dimbleby

@dimbleby Why? I have not found any indication that the latest plugin version is no longer compatible with poetry v1. Did I miss something?

juliankeppel avatar Feb 27 '25 10:02 juliankeppel

https://github.com/python-poetry/poetry-plugin-export/blob/875cda2aa22fe2e4b36bd50b4bf4ae62b20d21af/pyproject.toml#L10

dimbleby avatar Feb 27 '25 10:02 dimbleby

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.

juliankeppel avatar Feb 27 '25 11:02 juliankeppel

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.

radoering avatar Feb 27 '25 16:02 radoering