diff mbox series

[meta-python,094/105] python3-typer: upgrade 0.28.0 -> 0.29.1

Message ID 20261116175359.342679-94-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,001/105] python3-absl: upgrade 2.1.0 -> 2.5.1 | expand

Commit Message

Khem Raj Nov. 16, 2026, 5:53 p.m. UTC
Typer now depends on pydantic. Also drop tests/test_docs_cleanup.py from
the ptest, it imports typer's unshipped release scripts.

Changes:
- 0.29.0: Typer now uses Pydantic internally to validate command-line
  parameters. NEW DEPENDENCY: pydantic >=2.5.3 is required.
- BREAKING: click_type removed from typer.Option()/Argument(); some
  defaults validated more strictly (e.g. (None, None, None) tuple
  default now fails); datetime parsing follows Pydantic rules;
  callback parameter objects no longer expose Click's .type,
  .make_metavar(), .human_readable_name, .type_cast_value().
- Terminal control characters are escaped in Pydantic validation
  errors.
- 0.29.1: added Python 3.15 and 3.15t support.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../{python3-typer_0.28.0.bb => python3-typer_0.29.1.bb}   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-typer_0.28.0.bb => python3-typer_0.29.1.bb} (80%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-typer_0.28.0.bb b/meta-python/recipes-devtools/python/python3-typer_0.29.1.bb
similarity index 80%
rename from meta-python/recipes-devtools/python/python3-typer_0.28.0.bb
rename to meta-python/recipes-devtools/python/python3-typer_0.29.1.bb
index 9d80300421..851d3d53ae 100644
--- a/meta-python/recipes-devtools/python/python3-typer_0.28.0.bb
+++ b/meta-python/recipes-devtools/python/python3-typer_0.29.1.bb
@@ -7,7 +7,7 @@  HOMEPAGE = "https://github.com/fastapi/typer"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=173d405eb704b1499218013178722617"
 
-SRC_URI[sha256sum] = "69ab84ef79fd601cff071bbd2566d855ecadfd93adbc4b3360b9924359bdd857"
+SRC_URI[sha256sum] = "ab6eb3880bf67ce96147734717f9ec333c06f66e361f3ea947d0be43da39f242"
 
 inherit pypi python_pdm ptest
 
@@ -22,6 +22,7 @@  RDEPENDS:${PN} += "\
     python3-difflib \
     python3-io \
     python3-math \
+    python3-pydantic \
     python3-rich \
     python3-shell \
     python3-shellingham \
@@ -45,6 +46,6 @@  RDEPENDS:${PN}-ptest += "\
 do_install_ptest() {
     install -d ${D}${PTEST_PATH}/tests
     cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
-    # references the unshipped top-level 'scripts' package used by typer's release tooling
-    rm -f ${D}${PTEST_PATH}/tests/test_prepare_release.py
+    # reference the unshipped top-level 'scripts' package used by typer's release tooling
+    rm -f ${D}${PTEST_PATH}/tests/test_prepare_release.py ${D}${PTEST_PATH}/tests/test_docs_cleanup.py
 }