mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-26 07:27:20 +00:00
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> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
24 lines
676 B
BlitzBasic
24 lines
676 B
BlitzBasic
SUMMARY = "A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables."
|
|
HOMEPAGE = "https://github.com/bw2/ConfigArgParse"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=da746463714cc35999ed9a42339f2943"
|
|
|
|
SRC_URI[sha256sum] = "2deb0b3d6d46ff6e3218fcd350127507c5e3c11e21c8072a9fb24531dfc9bd4a"
|
|
|
|
|
|
inherit pypi python_setuptools_build_meta
|
|
|
|
DEPENDS += "python3-setuptools-scm-native"
|
|
|
|
PACKAGECONFIG ?= "yaml toml"
|
|
PACKAGECONFIG[yaml] = ",,,python3-pyyaml"
|
|
PACKAGECONFIG[toml] = ",,,python3-toml"
|
|
|
|
RDEPENDS:${PN} += "\
|
|
python3-core \
|
|
python3-shell \
|
|
python3-json \
|
|
"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|