From f316a559f4448f5478629fe144a04a831468c5da Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 6 Jan 2025 17:23:19 +0200 Subject: python3-tomli-w: Upgrade 1.0.0 -> 1.1.0 Upgrade to release 1.1.0: - Accept generic collections.abc.Mapping, not just dict, as input. - indent keyword argument for customizing indent width of arrays. - Type annotate dump function's output stream object as typing.IO[bytes] (previously typing.BinaryIO) Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- .../python/python3-tomli-w_1.1.0.bb | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb (limited to 'meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb') diff --git a/meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb b/meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb new file mode 100644 index 0000000000..dded2cbf42 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-tomli-w_1.1.0.bb @@ -0,0 +1,34 @@ +DESCRIPTION = "Tomli-W is a Python library for writing TOML. It is a write-only counterpart to Tomli, which is a read-only TOML parser." +HOMEPAGE = "https://github.com/hukkin/tomli-w" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=aaaaf0879d17df0110d1aa8c8c9f46f5" + +SRCREV = "179105660c367874818f2cdd1e06ed98eea668f1" +PYPI_SRC_URI = "git://github.com/hukkin/tomli-w.git;protocol=https;branch=master" + +inherit pypi python_flit_core ptest + +S = "${WORKDIR}/git" + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-tomli \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + install -d ${D}${PTEST_PATH}/benchmark + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ + cp -rf ${S}/benchmark/* ${D}${PTEST_PATH}/benchmark/ +} + +RDEPENDS:${PN} += " \ + python3-datetime \ + python3-numbers \ + python3-stringold \ +" -- cgit v1.2.3-54-g00ecf