[PATCH] python3-pytest-forked: loosen dependency checking


Ross Burton
 

This package has strict build dependencies defined in pyproject.toml:

requires =3D ['setuptools ~=3D 41.4', 'setuptools_scm ~=3D 3.3', 'wheel ~=
=3D 0.33.6']

The ~=3D operator is "compatible release", so "setuptools ~=3D 41.4" can =
be
read as "setuptools >=3D 41.4, setuptools =3D=3D 41.*".

We have setuptools 62.6.0 and do builds using our own packages instead
of building inside virtual environments, so these dependencies cannot
be satisfied.

Resolve this by passing --loose-depends to picobuild, which effectively
turns ~=3D into >=3D.

Signed-off-by: Ross Burton <ross.burton@...>
---
.../recipes-devtools/python/python3-pytest-forked_1.4.0.bb | 2 ++
1 file changed, 2 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-pytest-forked_1.=
4.0.bb b/meta-python/recipes-devtools/python/python3-pytest-forked_1.4.0.=
bb
index a751ad6e5a..34dd9c407e 100644
--- a/meta-python/recipes-devtools/python/python3-pytest-forked_1.4.0.bb
+++ b/meta-python/recipes-devtools/python/python3-pytest-forked_1.4.0.bb
@@ -7,6 +7,8 @@ SRC_URI[sha256sum] =3D "8b67587c8f98cbbadfdd804539ed5455b=
6ed03802203485dd2f53c1422
=20
inherit pypi python_setuptools_build_meta
=20
+PEP517_PICOBUILD_OPTS =3D "--loose-depends"
+
DEPENDS +=3D "python3-setuptools-scm-native"
=20
RDEPENDS:${PN} +=3D " \
--=20
2.34.1

Join openembedded-devel@lists.openembedded.org to automatically receive all group messages.