[meta-python][PATCH v3] python3-pytest-subtests: add recipe


Trevor Gamblin
 

Newer versions of python3-cryptography will rely on the subtests fixture
for their ptests. Add this recipe so that cryptography can be given the
necessary RDEPENDS when it is upgraded.

Signed-off-by: Trevor Gamblin <trevor.gamblin@...>
---
.../packagegroups/packagegroup-meta-python.bb | 1 +
.../python/python3-pytest-subtests_0.5.0.bb | 16 ++++++++++++++++
2 files changed, 17 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-pytest-subtests_0.5.0.bb

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index ea5683ce6..b5a2f5d7d 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -348,6 +348,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
python3-pytest-html \
python3-pytest-metadata \
python3-pytest-runner \
+ python3-pytest-subtests \
python3-pytest-tempdir \
python3-pytest-timeout \
python3-pythonping \
diff --git a/meta-python/recipes-devtools/python/python3-pytest-subtests_0.5.0.bb b/meta-python/recipes-devtools/python/python3-pytest-subtests_0.5.0.bb
new file mode 100644
index 000000000..2e03512bd
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-subtests_0.5.0.bb
@@ -0,0 +1,16 @@
+DESCRIPTION = "unittest subTest() support and subtests fixture."
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=242b4e17fa287dcf7aef372f6bc3dcb1"
+
+SRC_URI[sha256sum] = "5bd1e4bf0eda4c89a6cd42b0ee28e1d2ca0848de3fd67ad8cdd6d559ed00f120"
+
+inherit pypi setuptools3
+
+DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
+
+RDEPENDS:${PN} += " \
+ ${PYTHON_PN}-pytest \
+"
+
+BBCLASSEXTEND = "native nativesdk"
--
2.31.1

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