FS#75758 - [python-poetry] Wrong dependency version, python-cleo
Attached to Project:
Community Packages
Opened by Stefan Tatschner (rumpelsepp) - Wednesday, 31 August 2022, 11:26 GMT
Last edited by David Runge (dvzrv) - Friday, 02 September 2022, 21:36 GMT
Opened by Stefan Tatschner (rumpelsepp) - Wednesday, 31 August 2022, 11:26 GMT
Last edited by David Runge (dvzrv) - Friday, 02 September 2022, 21:36 GMT
|
Details
python-poetry 1.2 needs cleo 1.0:
https://github.com/python-poetry/poetry/blob/b2b499273a0cd2f1bfd45784832a07b5f85bad48/pyproject.toml#L51 Currently poetry is broken: $ poetry --help Traceback (most recent call last): File "/usr/sbin/poetry", line 5, in <module> from poetry.console.application import main File "/usr/lib/python3.10/site-packages/poetry/console/application.py", line 13, in <module> from cleo.events.console_events import COMMAND ModuleNotFoundError: No module named 'cleo.events' |
This task depends upon
Closed by David Runge (dvzrv)
Friday, 02 September 2022, 21:36 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with python-poetry 1.2.0-5
Friday, 02 September 2022, 21:36 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with python-poetry 1.2.0-5
We could revert `python-poetry 1.2` back to `python-poetry 1.1.15` using the following steps:
[code]
# Revert 1.2.0-2:
$ git revert a24c0c7a5b33075e689792b84e368e7d4b0311cb
# Revert 1.2.0-1:
$ git revert e15a24cf161e43bc9ece66fa50a72bad559e1019
# <Download PKGBUILD.diff> from this thread
$ git apply PKGBUILD.diff
[/code]
This versioning would use an `epoch=1` to prioritize the new package version over any previous (including 1.2.0-1, 1.2.0-2). This comes with the pretty nasty side-effect that we would have to keep future package release epochs >= 1, but I'm not sure there's really any other way.
All required dependencies have been added, apart from poetry-plugin-export (which has been devendored), because it triggered a bug in python-build (see https://github.com/pypa/build/issues/511).
In the hopes that poetry is now functional for daily use: Please report further issues also upstream and/or help upstream(s) to resolve the issues as to arrive at a more stable state again.