From 716ff86b3fc3bf80f6f907cfbcd0bb5dbdfa63ad Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Tue, 22 Mar 2022 14:39:11 -0400 Subject: python3-pytest-lazy-fixture: add recipe This is a minor extension of pytest that is used by some ptests, such as python3-prettytable. There is a set of ptests included (run-ptest script is based on the one from python3-aspectlib). Signed-off-by: Trevor Gamblin Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../python/python3-pytest-lazy-fixture_0.6.3.bb | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb (limited to 'meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb') diff --git a/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb b/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb new file mode 100644 index 0000000000..32b5677f1a --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-lazy-fixture_0.6.3.bb @@ -0,0 +1,23 @@ +# Copyright (C) 2022 Wind River Systems + +SUMMARY = "Use your fixtures in @pytest.mark.parametrize." +HOMEPAGE = "https://github.com/tvorog/pytest-lazy-fixture" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=aae6f2b7c9b3ced83e0b5bb42346d4dd" + +SRC_URI[sha256sum] = "0e7d0c7f74ba33e6e80905e9bfd81f9d15ef9a790de97993e34213deb5ad10ac" + +SRC_URI += "file://run-ptest \ + " + + +inherit ptest pypi setuptools3 + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + + +RDEPENDS:${PN} += "python3-core python3-pytest" +RDEPENDS:${PN}-ptest = " python3-unixadmin" -- cgit v1.2.3-54-g00ecf