FS#77375 - [python-poetry-core] poetry-core 1.5.0 breaks poetry 1.3.2
Attached to Project:
Community Packages
Opened by Dragoon Aethis (DragoonAethis) - Friday, 03 February 2023, 23:08 GMT
Last edited by Caleb Maclennan (alerque) - Thursday, 02 March 2023, 17:49 GMT
Opened by Dragoon Aethis (DragoonAethis) - Friday, 03 February 2023, 23:08 GMT
Last edited by Caleb Maclennan (alerque) - Thursday, 02 March 2023, 17:49 GMT
|
Details
* python-poetry-core 1.5.0 was released a week ago (and in
Arch repos on 31.01) and includes this PR, which removes the
'platform' field from the underlying package model:
https://github.com/python-poetry/poetry-core/pull/548
* ...which is a dependency for this PR in the main python-poetry package, mostly doing the same thing: https://github.com/python-poetry/poetry/pull/7304 * ...but the current stable Poetry 1.3.2 still requires those fields and does not yet include the PR listed above. * Trying to `poetry update` any project with python-poetry 1.3.2 + python-poetry-core 1.5.0 will fail with: `'ProjectPackage' object has no attribute 'platform'` * Downgrading to poetry-core 1.4.0 resolves this issue. The missing second PR could also be patched in on top of Poetry 1.3.2, but the upstream project locks the dependent poetry-core version at 1.4.0 for poetry 1.3.2, so a temporary downgrade is probably the correct option: https://github.com/python-poetry/poetry/blob/1.3.2/pyproject.toml#L50 |
This task depends upon
Closed by Caleb Maclennan (alerque)
Thursday, 02 March 2023, 17:49 GMT
Reason for closing: Fixed
Additional comments about closing: Updated poetry in community should have fixed this.
Thursday, 02 March 2023, 17:49 GMT
Reason for closing: Fixed
Additional comments about closing: Updated poetry in community should have fixed this.
https://github.com/python-poetry/poetry/issues/7482
Downgrading to 1.4.0 works.
I see poetry itself has a new release today that goes with poetry-core 1.5.1 so I'll build that and probably expedite getting it into [community] to fix this bug rather than backtracking poetry-core.