diff options
| author | Derek Straka <derek@asterius.io> | 2024-12-18 18:05:48 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-08 12:37:20 +0000 |
| commit | cf6b12e5c95d0593970f945aa6930c818f7a819f (patch) | |
| tree | 86c0e754eb04f0f8f372610c178b794b3091f9ca /meta/recipes-devtools/python/python3-pytz_2024.2.bb | |
| parent | 095beae0085c94a105256b6df4bd71bd4a506104 (diff) | |
| download | poky-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.bb | 14 |
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" | |||
| 3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1a67fc46c1b596cce5d21209bbe75999" | 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1a67fc46c1b596cce5d21209bbe75999" |
| 5 | 5 | ||
| 6 | inherit pypi setuptools3 ptest | 6 | inherit pypi setuptools3 ptest-python-pytest |
| 7 | |||
| 8 | PTEST_PYTEST_DIR = "pytz/tests" | ||
| 7 | 9 | ||
| 8 | SRC_URI[sha256sum] = "2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a" | 10 | SRC_URI[sha256sum] = "2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a" |
| 9 | 11 | ||
| @@ -18,19 +20,11 @@ RDEPENDS:${PN}:class-target += "\ | |||
| 18 | 20 | ||
| 19 | BBCLASSEXTEND = "native nativesdk" | 21 | BBCLASSEXTEND = "native nativesdk" |
| 20 | 22 | ||
| 21 | SRC_URI += " \ | ||
| 22 | file://run-ptest \ | ||
| 23 | " | ||
| 24 | |||
| 25 | RDEPENDS:${PN}-ptest += " \ | 23 | RDEPENDS:${PN}-ptest += " \ |
| 26 | python3-pytest \ | 24 | python3-pytest \ |
| 27 | python3-unittest-automake-output \ | 25 | python3-unittest-automake-output \ |
| 28 | " | 26 | " |
| 29 | 27 | ||
| 30 | do_install_ptest() { | 28 | do_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 | } |
