mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
dev-python/poetry: fix dependency bounds on poetry-core
This package advertises all software to use exact pinning, and naturally
does so itself. So we unpin in src_prepare for obvious reasons.
For poetry-core itself, this leads to fragile nonsense as poetry-core
internals are flaky and change. We need to restrict this via RDEPEND,
historically via >=, but this broke:
```
cannot import name 'temporary_directory' from 'poetry.core.utils.helpers' (/usr/lib/python3.13/site-packages/poetry/core/utils/helpers.py)
```
(aside: poetry deletes useful tracebacks so good luck figuring out where
this happened :) :))
In the poetry 2.3.* this got fixed (I think? there is no commit message,
but that's my best guess) but in a not so useful way as the broken
version was the stable 2.2.1-r1 and there is no poetry-core 2.4.0 yet to
cause issues for poetry 2.3.*, so just align the fix across all versions
and revbump for metadata changes.
The fix is to pin via RDEPEND (and still unpin with sed on the
dist-info), to major.minor of poetry == poetry-core. The current break
happened for 2.2.* -> 2.3.*, so this is hopefully reliable (and
definitely more than >=${PV} was).
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 2023-2025 Gentoo Authors
|
||||
# Copyright 2023-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -20,7 +20,7 @@ SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/poetry-core-${PV}[${PYTHON_USEDEP}]
|
||||
=dev-python/poetry-core-$(ver_cut 1-2)*[${PYTHON_USEDEP}]
|
||||
>=dev-python/poetry-plugin-export-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/build-1.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cachecontrol-0.14.0[${PYTHON_USEDEP}]
|
||||
@@ -21,7 +21,7 @@ SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/poetry-core-${PV}[${PYTHON_USEDEP}]
|
||||
=dev-python/poetry-core-$(ver_cut 1-2)*[${PYTHON_USEDEP}]
|
||||
>=dev-python/poetry-plugin-export-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/build-1.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cachecontrol-0.14.0[${PYTHON_USEDEP}]
|
||||
@@ -21,7 +21,7 @@ SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
=dev-python/poetry-core-2.3.1[${PYTHON_USEDEP}]
|
||||
=dev-python/poetry-core-$(ver_cut 1-2)*[${PYTHON_USEDEP}]
|
||||
>=dev-python/poetry-plugin-export-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/build-1.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cachecontrol-0.14.0[${PYTHON_USEDEP}]
|
||||
Reference in New Issue
Block a user