diff options
author | Yue Tao <Yue.Tao@windriver.com> | 2023-03-20 10:59:58 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-03-22 09:10:39 -0700 |
commit | a4b6e3ee894047cd13c5d2b7bfc67f0093899537 (patch) | |
tree | 521fca69529b760c34904a0b237cf9187f749351 /meta-python/recipes-devtools/python/python3-service-identity_21.1.0.bb | |
parent | edea484f2dee3e4d7101b14f4a22d28be0291aa0 (diff) | |
download | meta-openembedded-a4b6e3ee894047cd13c5d2b7bfc67f0093899537.tar.gz |
Introduce python3-trustme to fix ptest error of python3-requests-toolbelt
The ptest fails after python3-requests-toolbelt is upgraded
to 0.10.1.
=======================================================
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../python3.11/importlib/{}init{}.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_x509_adapter.py:20: in <module>
import trustme
E ModuleNotFoundError: No module named 'trustme'
=======================================================
The commit b93b4067ea "Fix x509 tests by using trustme" of
python3-requests-toolbelt introduces the trustme in test_x509_adapter.py.
Introducing python3-trustme to fix ptest error of python3-requests-toolbelt,
also introducing python3-service-identity, which is requested by python3-trustme's
ptest.
The ptest passes of all the three packages.
Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-service-identity_21.1.0.bb')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-service-identity_21.1.0.bb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-service-identity_21.1.0.bb b/meta-python/recipes-devtools/python/python3-service-identity_21.1.0.bb new file mode 100644 index 0000000000..0210a5de22 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-service-identity_21.1.0.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | DESCRIPTION = "The tools for verifying whether a certificate is valid for the intended purposes." | ||
2 | HOMEPAGE = "https://pypi.org/project/service-identity" | ||
3 | AUTHOR = "Hynek Schlawack" | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8a0f079f4e6a215d6bd6f9d97cab4d5f" | ||
7 | |||
8 | SRC_URI[md5sum] = "5e5c195d8fcedc72f9068be2ad9b5a13" | ||
9 | SRC_URI[sha256sum] = "6e6c6086ca271dc11b033d17c3a8bea9f24ebff920c587da090afc9519419d34" | ||
10 | |||
11 | inherit pypi setuptools3 ptest | ||
12 | |||
13 | SRC_URI += " \ | ||
14 | file://run-ptest \ | ||
15 | " | ||
16 | |||
17 | RDEPENDS:${PN}-ptest += " \ | ||
18 | ${PYTHON_PN}-pytest \ | ||
19 | " | ||
20 | |||
21 | do_install_ptest() { | ||
22 | install -d ${D}${PTEST_PATH}/tests | ||
23 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
24 | cp -rf ${S}/setup.py ${D}${PTEST_PATH} | ||
25 | } | ||