mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
The generated requires.txt in pytest-*-py3.9.egg-info shows the
requirement.
Caught during ptest of python3-wcwidth:
Signed-off-byROR collecting tests/test_core.py ______________________
tests/test_core.py:4: in <module>
import pkg_resources
../../python3.9/site-packages/pkg_resources/__init__.py:3239: in
<module>
def _initialize_master_working_set():
../../python3.9/site-packages/pkg_resources/__init__.py:3222: in
_call_aside
f(*args, **kwargs)
../../python3.9/site-packages/pkg_resources/__init__.py:3251: in
_initialize_master_working_set
working_set = WorkingSet._build_master()
../../python3.9/site-packages/pkg_resources/__init__.py:567: in
_build_master
ws.require(__requires__)
../../python3.9/site-packages/pkg_resources/__init__.py:884: in require
needed = self.resolve(parse_requirements(requirements))
../../python3.9/site-packages/pkg_resources/__init__.py:770: in resolve
raise DistributionNotFound(req, requirers)
E pkg_resources.DistributionNotFound: The 'toml' distribution was not
found and is required by pytest
(From OE-Core rev: 8e2ec368e4c8fe7594bc178fffe42fbb8ac632e7)
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
40 lines
1.1 KiB
BlitzBasic
40 lines
1.1 KiB
BlitzBasic
SUMMARY = "Simple powerful testing with python"
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b"
|
|
|
|
SRC_URI_append = " file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch "
|
|
|
|
SRC_URI[sha256sum] = "c0a7e94a8cdbc5422a51ccdad8e6f1024795939cc89159a0ae7f0b316ad3823e"
|
|
|
|
inherit update-alternatives pypi setuptools3
|
|
|
|
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"
|