Message ID | 20240307130143.185290-1-alperyasinak1@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [meta-python] python3-traitlets: add ptest and update runtime dependencies | expand |
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 5d9eb0fa1..d3096039b 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -78,6 +78,7 @@ PTESTS_SLOW_META_PYTHON = "\ python3-arrow \ python3-lz4 \ python3-marshmallow \ + python3-traitlets \ python3-yappi \ " diff --git a/meta-python/recipes-devtools/python/python3-traitlets/run-ptest b/meta-python/recipes-devtools/python/python3-traitlets/run-ptest new file mode 100644 index 000000000..8d2017d39 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-traitlets/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-python/recipes-devtools/python/python3-traitlets_5.14.1.bb b/meta-python/recipes-devtools/python/python3-traitlets_5.14.1.bb index e650906aa..3a6542785 100644 --- a/meta-python/recipes-devtools/python/python3-traitlets_5.14.1.bb +++ b/meta-python/recipes-devtools/python/python3-traitlets_5.14.1.bb @@ -1,13 +1,26 @@ SUMMARY = "Traitlets Python config system" -HOMEPAGE = "http://ipython.org" +HOMEPAGE = "https://github.com/ipython/traitlets" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=13bed0ee6f46a6f6dbf1f9f9572f250a" SRC_URI[sha256sum] = "8585105b371a04b8316a43d5ce29c098575c2e477850b62b848b964f1444527e" -inherit pypi python_hatchling +inherit pypi python_hatchling ptest -RDEPENDS:${PN} = "\ - python3-ipython-genutils \ - python3-decorator \ +SRC_URI += " \ + file://run-ptest \ " + +RDEPENDS:${PN}-ptest += " \ + python3-argcomplete \ + bash \ + python3-mypy \ + python3-pytest \ + python3-pytest-mock \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +}
* Upstream provides a pyproject.toml and updated runtime dependencies accordingly to it. * Ptest tested on qemux86-64 and qemuarm64 * Add ptest into PTESTS_SLOW_META_PYTHON Ptest result: ============== qemux86-64: Testsuite summary TOTAL: 567 PASS: 567 SKIP: 0 XFAIL: 0 FAIL: 0 XPASS: 0 ERROR: 0 DURATION: 48 END: /usr/lib/python3-traitlets/ptest 2024-03-07T12:37 STOP: ptest-runner TOTAL: 1 FAIL: 0 qemuarm64: Testsuite summary TOTAL: 567 PASS: 567 SKIP: 0 XFAIL: 0 FAIL: 0 XPASS: 0 ERROR: 0 DURATION: 41 END: /usr/lib/python3-traitlets/ptest 2024-03-07T12:41 STOP: ptest-runner TOTAL: 1 FAIL: 0 Signed-off-by: alperak <alperyasinak1@gmail.com> --- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-traitlets/run-ptest | 3 +++ .../python/python3-traitlets_5.14.1.bb | 23 +++++++++++++++---- 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-traitlets/run-ptest