diff options
Diffstat (limited to 'meta-python')
3 files changed, 48 insertions, 0 deletions
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index bdcd658d98..56a5cf2f09 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc | |||
| @@ -97,6 +97,7 @@ PTESTS_SLOW_META_PYTHON = "\ | |||
| 97 | python3-pytest-localserver \ | 97 | python3-pytest-localserver \ |
| 98 | python3-scrypt \ | 98 | python3-scrypt \ |
| 99 | python3-traitlets \ | 99 | python3-traitlets \ |
| 100 | python3-typer \ | ||
| 100 | python3-yappi \ | 101 | python3-yappi \ |
| 101 | " | 102 | " |
| 102 | 103 | ||
diff --git a/meta-python/recipes-devtools/python/python3-typer/run-ptest b/meta-python/recipes-devtools/python/python3-typer/run-ptest new file mode 100644 index 0000000000..94b40789b1 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-typer/run-ptest | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Ignore the test_tutorial and test_completion. | ||
| 4 | # Because it needs the docs_src package what is not in Yocto. | ||
| 5 | # And the tests are not that useful for Yocto. | ||
| 6 | pytest --automake --ignore tests/test_tutorial --ignore tests/test_completion | ||
diff --git a/meta-python/recipes-devtools/python/python3-typer_0.12.3.bb b/meta-python/recipes-devtools/python/python3-typer_0.12.3.bb new file mode 100644 index 0000000000..cc8669c375 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-typer_0.12.3.bb | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | SUMMARY = "Typer, build great CLIs. Easy to code. Based on Python type hints." | ||
| 2 | DESCRIPTION = "\ | ||
| 3 | Typer is a library for building CLI applications that users will love using and developers will love creating. Based on Python type hints. \ | ||
| 4 | It's also a command line tool to run scripts, automatically converting them to CLI applications. \ | ||
| 5 | " | ||
| 6 | HOMEPAGE = "https://github.com/tiangolo/typer" | ||
| 7 | LICENSE = "MIT" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=173d405eb704b1499218013178722617" | ||
| 9 | |||
| 10 | SRC_URI[sha256sum] = "49e73131481d804288ef62598d97a1ceef3058905aa536a1134f90891ba35482" | ||
| 11 | |||
| 12 | inherit pypi python_setuptools_build_meta ptest | ||
| 13 | |||
| 14 | DEPENDS += "\ | ||
| 15 | python3-pdm-backend-native \ | ||
| 16 | python3-pdm-native \ | ||
| 17 | " | ||
| 18 | |||
| 19 | SRC_URI:append = " \ | ||
| 20 | file://run-ptest \ | ||
| 21 | " | ||
| 22 | |||
| 23 | PYPI_PACKAGE = "typer" | ||
| 24 | |||
| 25 | RDEPENDS:${PN} += "\ | ||
| 26 | python3-click \ | ||
| 27 | python3-shellingham \ | ||
| 28 | " | ||
| 29 | |||
| 30 | RDEPENDS:${PN}-ptest += "\ | ||
| 31 | python3-coverage \ | ||
| 32 | python3-pytest \ | ||
| 33 | python3-typing-extensions \ | ||
| 34 | python3-unittest-automake-output \ | ||
| 35 | " | ||
| 36 | |||
| 37 | do_install_ptest() { | ||
| 38 | install -d ${D}${PTEST_PATH}/tests | ||
| 39 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 40 | } | ||
| 41 | |||
