summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-pytz_2024.2.bb
diff options
context:
space:
mode:
authorDerek Straka <derek@asterius.io>2024-12-18 18:05:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-08 12:37:20 +0000
commitcf6b12e5c95d0593970f945aa6930c818f7a819f (patch)
tree86c0e754eb04f0f8f372610c178b794b3091f9ca /meta/recipes-devtools/python/python3-pytz_2024.2.bb
parent095beae0085c94a105256b6df4bd71bd4a506104 (diff)
downloadpoky-cf6b12e5c95d0593970f945aa6930c818f7a819f.tar.gz
python3-*: Update recipes with pytest ptests to use the new ptest-python-pytest class
The newly added ptest-python-pytest removes duplication for: 1. Copying pytest files to the ptest directory 2. Adding standard pytest dependencies 3. Adding a common run-ptest script using pytest (From OE-Core rev: 8d84d9e19b9292b1863921611924714d77c41d21) Signed-off-by: Derek Straka <derek@asterius.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-pytz_2024.2.bb')
-rw-r--r--meta/recipes-devtools/python/python3-pytz_2024.2.bb14
1 files changed, 4 insertions, 10 deletions
diff --git a/meta/recipes-devtools/python/python3-pytz_2024.2.bb b/meta/recipes-devtools/python/python3-pytz_2024.2.bb
index 04bd1d632d..a379e19234 100644
--- a/meta/recipes-devtools/python/python3-pytz_2024.2.bb
+++ b/meta/recipes-devtools/python/python3-pytz_2024.2.bb
@@ -3,7 +3,9 @@ HOMEPAGE = "http://pythonhosted.org/pytz"
3LICENSE = "MIT" 3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1a67fc46c1b596cce5d21209bbe75999" 4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1a67fc46c1b596cce5d21209bbe75999"
5 5
6inherit pypi setuptools3 ptest 6inherit pypi setuptools3 ptest-python-pytest
7
8PTEST_PYTEST_DIR = "pytz/tests"
7 9
8SRC_URI[sha256sum] = "2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a" 10SRC_URI[sha256sum] = "2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a"
9 11
@@ -18,19 +20,11 @@ RDEPENDS:${PN}:class-target += "\
18 20
19BBCLASSEXTEND = "native nativesdk" 21BBCLASSEXTEND = "native nativesdk"
20 22
21SRC_URI += " \
22 file://run-ptest \
23"
24
25RDEPENDS:${PN}-ptest += " \ 23RDEPENDS:${PN}-ptest += " \
26 python3-pytest \ 24 python3-pytest \
27 python3-unittest-automake-output \ 25 python3-unittest-automake-output \
28" 26"
29 27
30do_install_ptest() { 28do_install_ptest:append() {
31 install -d ${D}${PTEST_PATH}/pytz
32 install -d ${D}${PTEST_PATH}/pytz/tests
33 cp -rf ${S}/pytz/tests/* ${D}${PTEST_PATH}/pytz/tests/
34 cp -f ${S}/README.rst ${D}${PTEST_PATH}/ 29 cp -f ${S}/README.rst ${D}${PTEST_PATH}/
35
36} 30}