mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

https://docs.pytest.org/en/stable/changelog.html#pytest-7-2-0-2022-10-23 Excerpt from upstream release notes: Deprecations * #10012: Update pytest.PytestUnhandledCoroutineWarning to a deprecation; it will raise an error in pytest 8. * #10396: pytest no longer depends on the py library. pytest provides a vendored copy of py.error and py.path modules but will use the py library if it is installed. If you need other py.* modules, continue to install the deprecated py library separately, otherwise it can usually be removed as a dependency. * #4562: Deprecate configuring hook specs/impls using attributes/marks. Instead use pytest.hookimpl() and pytest.hookspec(). For more details, see the docs. * #9886: The functionality for running tests written for nose has been officially deprecated. This includes: Plain setup and teardown functions and methods: this might catch users by surprise, as setup() and teardown() are not pytest idioms, but part of the nose support. Setup/teardown using the @with_setup decorator. For more details, consult the deprecation docs. (From OE-Core rev: 8ae3b896b0e1a77bcbd5b98b4b983e4f34746a94) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
42 lines
1.3 KiB
BlitzBasic
42 lines
1.3 KiB
BlitzBasic
SUMMARY = "Simple powerful testing with python"
|
|
HOMEPAGE = "https://pypi.org/project/pytest/"
|
|
DESCRIPTION = "The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries."
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=bd27e41b6550fe0fc45356d1d81ee37c"
|
|
|
|
SRC_URI[sha256sum] = "c4014eb40e10f11f355ad4e3c2fb2c6c6d1919c73f3b5a433de4708202cade59"
|
|
|
|
DEPENDS += "python3-setuptools-scm-native"
|
|
|
|
inherit update-alternatives pypi python_setuptools_build_meta
|
|
|
|
RDEPENDS:${PN}:class-target += " \
|
|
${PYTHON_PN}-atomicwrites \
|
|
${PYTHON_PN}-attrs \
|
|
${PYTHON_PN}-debugger \
|
|
${PYTHON_PN}-doctest \
|
|
${PYTHON_PN}-importlib-metadata \
|
|
${PYTHON_PN}-iniconfig \
|
|
${PYTHON_PN}-json \
|
|
${PYTHON_PN}-more-itertools \
|
|
${PYTHON_PN}-packaging \
|
|
${PYTHON_PN}-pathlib2 \
|
|
${PYTHON_PN}-pluggy \
|
|
${PYTHON_PN}-py \
|
|
${PYTHON_PN}-setuptools \
|
|
${PYTHON_PN}-six \
|
|
${PYTHON_PN}-toml \
|
|
${PYTHON_PN}-wcwidth \
|
|
"
|
|
|
|
ALTERNATIVE:${PN} += "py.test pytest"
|
|
|
|
NATIVE_LINK_NAME[pytest] = "${bindir}/pytest"
|
|
ALTERNATIVE_TARGET[pytest] = "${bindir}/pytest"
|
|
|
|
ALTERNATIVE_LINK_NAME[py.test] = "${bindir}/py.test"
|
|
ALTERNATIVE_TARGET[py.test] = "${bindir}/py.test"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|