From c83eb3b1ba4ba501b8c44ac1cda58f981c2a2b11 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 31 May 2025 10:07:31 -0700 Subject: python3-typer: Upgrade to 0.16.0 Upgrades Add compatibility with Click 8.2. PR #1222 by @tiangolo. When using the CliRunner with Click < 8.2, to be able to access the stderr output, you needed to set the mix_stderr parameter to True. Since Click 8.2 (and Typer 0.160 this release supporting it) this is no longer necessary, so this parameter has been removed. Refactors Refactor tests for compatibility with Click 8.2. PR #1230 by @tiangolo. Internal Remove Google Analytics. PR #1229 by @tiangolo. Signed-off-by: Khem Raj --- .../python/python3-typer_0.15.4.bb | 45 ---------------------- .../python/python3-typer_0.16.0.bb | 45 ++++++++++++++++++++++ 2 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-typer_0.15.4.bb create mode 100644 meta-python/recipes-devtools/python/python3-typer_0.16.0.bb (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-typer_0.15.4.bb b/meta-python/recipes-devtools/python/python3-typer_0.15.4.bb deleted file mode 100644 index 26b0c042be..0000000000 --- a/meta-python/recipes-devtools/python/python3-typer_0.15.4.bb +++ /dev/null @@ -1,45 +0,0 @@ -SUMMARY = "Typer, build great CLIs. Easy to code. Based on Python type hints." -DESCRIPTION = "\ - Typer is a library for building CLI applications that users will love using and developers will love creating. Based on Python type hints. \ - It's also a command line tool to run scripts, automatically converting them to CLI applications. \ -" -HOMEPAGE = "https://github.com/tiangolo/typer" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=173d405eb704b1499218013178722617" - -SRC_URI[sha256sum] = "89507b104f9b6a0730354f27c39fae5b63ccd0c95b1ce1f1a6ba0cfd329997c3" - -inherit pypi python_setuptools_build_meta ptest - -DEPENDS += "\ - python3-pdm-backend-native \ - python3-pdm-native \ -" - -SRC_URI:append = " \ - file://run-ptest \ -" - -PYPI_PACKAGE = "typer" - -RDEPENDS:${PN} += "\ - python3-click \ - python3-typing-extensions \ -" -# python3-misc for webbrowser module -RDEPENDS:${PN}-ptest += "\ - python3-misc \ - python3-mypy \ - python3-pytest \ - python3-pytest-cov \ - python3-pytest-xdist \ - python3-rich \ - python3-shellingham \ - python3-toml \ - python3-unittest-automake-output \ -" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -} diff --git a/meta-python/recipes-devtools/python/python3-typer_0.16.0.bb b/meta-python/recipes-devtools/python/python3-typer_0.16.0.bb new file mode 100644 index 0000000000..87e258ae1f --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-typer_0.16.0.bb @@ -0,0 +1,45 @@ +SUMMARY = "Typer, build great CLIs. Easy to code. Based on Python type hints." +DESCRIPTION = "\ + Typer is a library for building CLI applications that users will love using and developers will love creating. Based on Python type hints. \ + It's also a command line tool to run scripts, automatically converting them to CLI applications. \ +" +HOMEPAGE = "https://github.com/fastapi/typer" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=173d405eb704b1499218013178722617" + +SRC_URI[sha256sum] = "af377ffaee1dbe37ae9440cb4e8f11686ea5ce4e9bae01b84ae7c63b87f1dd3b" + +inherit pypi python_setuptools_build_meta ptest + +DEPENDS += "\ + python3-pdm-backend-native \ + python3-pdm-native \ +" + +SRC_URI:append = " \ + file://run-ptest \ +" + +PYPI_PACKAGE = "typer" + +RDEPENDS:${PN} += "\ + python3-click \ + python3-typing-extensions \ +" +# python3-misc for webbrowser module +RDEPENDS:${PN}-ptest += "\ + python3-misc \ + python3-mypy \ + python3-pytest \ + python3-pytest-cov \ + python3-pytest-xdist \ + python3-rich \ + python3-shellingham \ + python3-toml \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} -- cgit v1.2.3-54-g00ecf