Skip to contentSkip to conversation

python3-pytest-forked: loosen dependency checking

PATCH New Ross Burton 1 participant 1 message Jul 15, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-pytest-forked: loosen dependency checking

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

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

The ~= operator is "compatible release", so "setuptools ~= 41.4" can be read as "setuptools >= 41.4, setuptools == 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 ~= into >=.

---
 .../recipes-devtools/python/python3-pytest-forked_1.4.0.bb      | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-pytest-forked_1.4.0.bb +2 -0
index a751ad6e5a..34dd9c407e 100644
@@ -7,6 +7,8 @@ SRC_URI[sha256sum] = "8b67587c8f98cbbadfdd804539ed5455b6ed03802203485dd2f53c1422
 
 inherit pypi python_setuptools_build_meta
 
+PEP517_PICOBUILD_OPTS = "--loose-depends"
+
 DEPENDS += "python3-setuptools-scm-native"
 
 RDEPENDS:${PN} += " \
Signature · 1 line
2.34.1