diff mbox series

[meta-python,1/3] python3-configargparse: Upgrade 1.10.1 -> 1.10.2

Message ID 20261120172740.3283871-1-leon.anavi@konsulko.com
State Accepted
Headers show
Series [meta-python,1/3] python3-configargparse: Upgrade 1.10.1 -> 1.10.2 | expand

Commit Message

Leon Anavi Nov. 20, 2026, 5:27 p.m. UTC
Upgrade to release 1.10.2:

Fixes a regression in 1.10.0 and 1.10.1, and a bug in how
TomlConfigParser reads section names.

- None as a command line arg works again.
  parser.parse_args(['--foo', None]) raised TypeError: object of
  type 'NoneType' has no len() in 1.10.0 and 1.10.1. It gives
  foo=None again, as 1.9.0 and plain argparse do. The same goes for
  0 and False.
- A quoted part of a TOML section name can now hold a dot when it
  is in single quotes or comes after a space (#370).
  TomlConfigParser(["tool.'a.b'"]) and TomlConfigParser(['tool .
  "a.b"']) now read the table [tool."a.b"]. Before, both names were
  split at the dot inside the quotes, so that table's settings were
  silently not read (tool."a.b" already worked). Writing a config
  file with such a section name now writes [tool."a.b"] too.

With that fix, the quoted parts of a section name follow TOML's rules
more closely:

- Backslash escapes are read in a double-quoted part and left as
  they are in a single-quoted part.
- Spaces inside double quotes are kept. tool." a " used to be read
  as tool.a.
- A quote character in the middle of an unquoted part, which isn't
  valid TOML, now starts a quoted part, so tool.it's.x is no longer
  split at the second dot. Write it as tool."it's".x, which works
  in earlier versions too.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 ...onfigargparse_1.10.1.bb => python3-configargparse_1.10.2.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-configargparse_1.10.1.bb => python3-configargparse_1.10.2.bb} (86%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-configargparse_1.10.1.bb b/meta-python/recipes-devtools/python/python3-configargparse_1.10.2.bb
similarity index 86%
rename from meta-python/recipes-devtools/python/python3-configargparse_1.10.1.bb
rename to meta-python/recipes-devtools/python/python3-configargparse_1.10.2.bb
index 8631ebc7ab..eac7a19dfd 100644
--- a/meta-python/recipes-devtools/python/python3-configargparse_1.10.1.bb
+++ b/meta-python/recipes-devtools/python/python3-configargparse_1.10.2.bb
@@ -3,7 +3,7 @@  HOMEPAGE = "https://github.com/bw2/ConfigArgParse"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=da746463714cc35999ed9a42339f2943"
 
-SRC_URI[sha256sum] = "8ee7c4429e6402b881c9a85569eb9484db2f63260718b45c67c59625284371c8"
+SRC_URI[sha256sum] = "2deb0b3d6d46ff6e3218fcd350127507c5e3c11e21c8072a9fb24531dfc9bd4a"
 
 
 inherit pypi python_setuptools_build_meta