diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-07-24 18:19:26 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-26 12:28:42 +0100 |
| commit | 0f2f18c738e8a8e1a4ed5ab436343e6db47d5c0f (patch) | |
| tree | 9a34aa0478f74f78c54e04409135b20d962439e5 /meta | |
| parent | d4c0282f2bb52ac49987da9f101592e79cfd3b22 (diff) | |
| download | poky-0f2f18c738e8a8e1a4ed5ab436343e6db47d5c0f.tar.gz | |
python3-idna: enable ptest
(From OE-Core rev: 4b15fd105f8f84f55f1da1724a0ea2f06a88c4b5)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/conf/distro/include/ptest-packagelists.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-idna/run-ptest | 3 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-idna_3.7.bb | 9 |
3 files changed, 12 insertions, 1 deletions
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 3398166d34..e3ab7e8629 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc | |||
| @@ -60,6 +60,7 @@ PTESTS_FAST = "\ | |||
| 60 | python3-bcrypt \ | 60 | python3-bcrypt \ |
| 61 | python3-calver \ | 61 | python3-calver \ |
| 62 | python3-hypothesis \ | 62 | python3-hypothesis \ |
| 63 | python3-idna \ | ||
| 63 | python3-jinja2 \ | 64 | python3-jinja2 \ |
| 64 | python3-jsonpointer \ | 65 | python3-jsonpointer \ |
| 65 | python3-license-expression \ | 66 | python3-license-expression \ |
diff --git a/meta/recipes-devtools/python/python3-idna/run-ptest b/meta/recipes-devtools/python/python3-idna/run-ptest new file mode 100644 index 0000000000..d9693bb30f --- /dev/null +++ b/meta/recipes-devtools/python/python3-idna/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | python3 -mputao.unittest discover --top-level-directory . --start-directory tests | ||
diff --git a/meta/recipes-devtools/python/python3-idna_3.7.bb b/meta/recipes-devtools/python/python3-idna_3.7.bb index 20c92d6537..713e803d03 100644 --- a/meta/recipes-devtools/python/python3-idna_3.7.bb +++ b/meta/recipes-devtools/python/python3-idna_3.7.bb | |||
| @@ -5,8 +5,15 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=204c0612e40a4dd46012a78d02c80fb1" | |||
| 5 | 5 | ||
| 6 | SRC_URI[sha256sum] = "028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc" | 6 | SRC_URI[sha256sum] = "028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc" |
| 7 | 7 | ||
| 8 | inherit pypi python_flit_core | 8 | SRC_URI += "file://run-ptest" |
| 9 | |||
| 10 | inherit pypi python_flit_core ptest | ||
| 11 | |||
| 12 | do_install_ptest() { | ||
| 13 | cp -r ${S}/tests ${D}${PTEST_PATH}/ | ||
| 14 | } | ||
| 9 | 15 | ||
| 10 | RDEPENDS:${PN} += "python3-codecs" | 16 | RDEPENDS:${PN} += "python3-codecs" |
| 17 | RDEPENDS:${PN}-ptest += "python3-unittest-automake-output" | ||
| 11 | 18 | ||
| 12 | BBCLASSEXTEND = "native nativesdk" | 19 | BBCLASSEXTEND = "native nativesdk" |
