diff mbox series

[meta-python,6/7] python3-traitlets: Fix ptests fails

Message ID 20251210081607.3196421-6-raj.khem@gmail.com
State New
Headers show
Series [meta-networking,1/7] frr: Upgrade to 10.5.0 | expand

Commit Message

Khem Raj Dec. 10, 2025, 8:16 a.m. UTC
Python 3.13 changed how argparse handles % in help strings,
now treating them all as format placeholders

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...-start-testing-on-3.14-and-3.14t-929.patch | 25 +++++++++++++++++++
 .../python/python3-traitlets_5.14.3.bb        |  3 ++-
 2 files changed, 27 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-traitlets/0001-start-testing-on-3.14-and-3.14t-929.patch
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-traitlets/0001-start-testing-on-3.14-and-3.14t-929.patch b/meta-python/recipes-devtools/python/python3-traitlets/0001-start-testing-on-3.14-and-3.14t-929.patch
new file mode 100644
index 0000000000..275f77a371
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-traitlets/0001-start-testing-on-3.14-and-3.14t-929.patch
@@ -0,0 +1,25 @@ 
+From 472cf29d06edce66db4af7eb47f601e40cff71c8 Mon Sep 17 00:00:00 2001
+From: M Bussonnier <bussonniermatthias@gmail.com>
+Date: Tue, 14 Oct 2025 08:55:52 +0200
+Subject: [PATCH] start testing on 3.14 and 3.14t (#929)
+
+Upstream-Status: Backport [https://github.com/ipython/traitlets/pull/929]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ traitlets/config/application.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/traitlets/config/application.py b/traitlets/config/application.py
+index b01a11e..2860de7 100644
+--- a/traitlets/config/application.py
++++ b/traitlets/config/application.py
+@@ -215,7 +215,8 @@ class Application(SingletonConfigurable):
+     _log_formatter_cls = LevelFormatter
+
+     log_datefmt = Unicode(
+-        "%Y-%m-%d %H:%M:%S", help="The date format used by logging formatters for %(asctime)s"
++        "%Y-%m-%d %H:%M:%S",
++        help="The date format used by logging formatters for `asctime`",
+     ).tag(config=True)
+
+     log_format = Unicode(
diff --git a/meta-python/recipes-devtools/python/python3-traitlets_5.14.3.bb b/meta-python/recipes-devtools/python/python3-traitlets_5.14.3.bb
index 5142e92a04..827fb4ca4e 100644
--- a/meta-python/recipes-devtools/python/python3-traitlets_5.14.3.bb
+++ b/meta-python/recipes-devtools/python/python3-traitlets_5.14.3.bb
@@ -7,7 +7,8 @@  SRC_URI[sha256sum] = "9ed0579d3502c94b4b3732ac120375cda96f923114522847de4b3bb98b

 inherit pypi python_hatchling ptest

-SRC_URI += " \
+SRC_URI += "\
+        file://0001-start-testing-on-3.14-and-3.14t-929.patch \
         file://run-ptest \
 "