mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

* Switch to the python_setuptools_build_meta PEP-517 backend * Refactor and submit 0001-Fix-imports-for-ptests.patch - split out the Windows -> Unix line endings conversion - https://github.com/sumerc/yappi/pull/164 * Drop 0002-add-3.11-to-the-setup.patch; upstream added 3.11 and 3.12 * Drop install of yappi.py in ptest; use site-packages as intended * Drop complex run-ptest and simply run 'pytest --automake' * Move out of "problems" group to "slow" group in ptest-packageslists-meta-python.inc - can now build meta-python-image-ptest-python3-yappi - tests take about 45 seconds https://github.com/sumerc/yappi/blob/1.6.0/CHANGELOG 1.6.0 (2023-12-07) - Drop support 2.7-3.5 and clean backward compatible code (pull/152) - Add Python 3.12 wheels 1.5.1 (2023-12-06) - Add support for Python 3.12 - Fix child callgrind functions disappear Signed-off-by: Tim Orling <ticotimo@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
38 lines
928 B
BlitzBasic
38 lines
928 B
BlitzBasic
SUMMARY = "Yet Another Python Profiler"
|
|
HOMEPAGE = "https://github.com/sumerc/yappi"
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=71c208c9a4fd864385eb69ad4caa3bee"
|
|
|
|
SRC_URI[sha256sum] = "a9aaf72009d8c03067294151ee0470ac7a6dfa7b33baab40b198d6c1ef00430a"
|
|
|
|
SRC_URI += " \
|
|
file://run-ptest \
|
|
file://0001-test_functionality-convert-line-endings-to-Unix.patch \
|
|
file://0002-Fix-import-of-tests.utils-to-enable-pytest.patch \
|
|
"
|
|
|
|
inherit pypi python_setuptools_build_meta ptest
|
|
|
|
RDEPENDS:${PN} += "\
|
|
python3-datetime \
|
|
python3-pickle \
|
|
python3-threading \
|
|
"
|
|
|
|
RDEPENDS:${PN}-ptest += " \
|
|
python3-gevent \
|
|
python3-multiprocessing \
|
|
python3-pytest \
|
|
python3-profile \
|
|
python3-unittest-automake-output \
|
|
python3-zopeinterface \
|
|
"
|
|
|
|
do_install_ptest() {
|
|
install -d ${D}${PTEST_PATH}/tests
|
|
cp -rf ${S}/tests ${D}${PTEST_PATH}
|
|
cp -f ${S}/run_tests.py ${D}${PTEST_PATH}
|
|
}
|
|
|