summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-python/conf/include/ptest-packagelists-meta-python.inc1
-rw-r--r--meta-python/recipes-devtools/python/python3-traitlets/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-traitlets_5.14.1.bb23
3 files changed, 22 insertions, 5 deletions
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index 5d9eb0fa1c..d3096039bd 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 = "\
78 python3-arrow \ 78 python3-arrow \
79 python3-lz4 \ 79 python3-lz4 \
80 python3-marshmallow \ 80 python3-marshmallow \
81 python3-traitlets \
81 python3-yappi \ 82 python3-yappi \
82" 83"
83 84
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 0000000000..8d2017d39c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-traitlets/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --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 e650906aa9..3a65427850 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 @@
1SUMMARY = "Traitlets Python config system" 1SUMMARY = "Traitlets Python config system"
2HOMEPAGE = "http://ipython.org" 2HOMEPAGE = "https://github.com/ipython/traitlets"
3LICENSE = "BSD-3-Clause" 3LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=13bed0ee6f46a6f6dbf1f9f9572f250a" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=13bed0ee6f46a6f6dbf1f9f9572f250a"
5 5
6SRC_URI[sha256sum] = "8585105b371a04b8316a43d5ce29c098575c2e477850b62b848b964f1444527e" 6SRC_URI[sha256sum] = "8585105b371a04b8316a43d5ce29c098575c2e477850b62b848b964f1444527e"
7 7
8inherit pypi python_hatchling 8inherit pypi python_hatchling ptest
9 9
10RDEPENDS:${PN} = "\ 10SRC_URI += " \
11 python3-ipython-genutils \ 11 file://run-ptest \
12 python3-decorator \
13" 12"
13
14RDEPENDS:${PN}-ptest += " \
15 python3-argcomplete \
16 bash \
17 python3-mypy \
18 python3-pytest \
19 python3-pytest-mock \
20 python3-unittest-automake-output \
21"
22
23do_install_ptest() {
24 install -d ${D}${PTEST_PATH}/tests
25 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
26}