diff options
| author | Derek Straka <derek@asterius.io> | 2025-01-17 22:59:02 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-01-17 16:39:43 -0800 |
| commit | 7278443967e3310f48baf8a6968102a622b3877f (patch) | |
| tree | 6192784bd8b9bbf452395a5eac8eb237dcbdb6d6 /meta-python | |
| parent | 4ede2afe4ecb628078f69ba015bb43cfa214b076 (diff) | |
| download | meta-openembedded-7278443967e3310f48baf8a6968102a622b3877f.tar.gz | |
python3-pillow: update recipe to use the ptest-python-pytest class
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pillow/run-ptest | 3 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pillow_11.1.0.bb | 12 |
2 files changed, 3 insertions, 12 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pillow/run-ptest b/meta-python/recipes-devtools/python/python3-pillow/run-ptest deleted file mode 100644 index 8d2017d39c..0000000000 --- a/meta-python/recipes-devtools/python/python3-pillow/run-ptest +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest --automake | ||
diff --git a/meta-python/recipes-devtools/python/python3-pillow_11.1.0.bb b/meta-python/recipes-devtools/python/python3-pillow_11.1.0.bb index 7be15f3f91..f8341c90f7 100644 --- a/meta-python/recipes-devtools/python/python3-pillow_11.1.0.bb +++ b/meta-python/recipes-devtools/python/python3-pillow_11.1.0.bb | |||
| @@ -7,11 +7,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a1b708da743e3fc0e5c35e92daac0bf8" | |||
| 7 | 7 | ||
| 8 | SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=main;protocol=https \ | 8 | SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=main;protocol=https \ |
| 9 | file://0001-support-cross-compiling.patch \ | 9 | file://0001-support-cross-compiling.patch \ |
| 10 | file://run-ptest \ | ||
| 11 | " | 10 | " |
| 12 | SRCREV = "4c1aed801e43c6b307e7135279ca1dbc02bbf052" | 11 | SRCREV = "4c1aed801e43c6b307e7135279ca1dbc02bbf052" |
| 13 | 12 | ||
| 14 | inherit python_setuptools_build_meta ptest | 13 | inherit python_setuptools_build_meta ptest-python-pytest |
| 14 | |||
| 15 | PTEST_PYTEST_DIR = "Tests" | ||
| 15 | 16 | ||
| 16 | PEP517_BUILD_OPTS += " \ | 17 | PEP517_BUILD_OPTS += " \ |
| 17 | -C platform-guessing=disable \ | 18 | -C platform-guessing=disable \ |
| @@ -51,10 +52,8 @@ RDEPENDS:${PN}-ptest += " \ | |||
| 51 | python3-core \ | 52 | python3-core \ |
| 52 | python3-image \ | 53 | python3-image \ |
| 53 | python3-mmap \ | 54 | python3-mmap \ |
| 54 | python3-pytest \ | ||
| 55 | python3-pytest-timeout \ | 55 | python3-pytest-timeout \ |
| 56 | python3-resource \ | 56 | python3-resource \ |
| 57 | python3-unittest-automake-output \ | ||
| 58 | python3-unixadmin\ | 57 | python3-unixadmin\ |
| 59 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'tk', '', d)} \ | 58 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'tk', '', d)} \ |
| 60 | " | 59 | " |
| @@ -65,9 +64,4 @@ S = "${WORKDIR}/git" | |||
| 65 | 64 | ||
| 66 | RPROVIDES:${PN} += "python3-imaging" | 65 | RPROVIDES:${PN} += "python3-imaging" |
| 67 | 66 | ||
| 68 | do_install_ptest() { | ||
| 69 | install -d ${D}${PTEST_PATH}/Tests | ||
| 70 | cp -rf ${S}/Tests ${D}${PTEST_PATH}/ | ||
| 71 | } | ||
| 72 | |||
| 73 | BBCLASSEXTEND = "native" | 67 | BBCLASSEXTEND = "native" |
