From be5dfe9b7bca7140d7838eb1e1d5b60bf6c08a99 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Thu, 31 Jul 2025 07:29:12 +0800 Subject: python3-inline-snapshot: upgrade 0.24.0 -> 0.25.3 Changelog: =============== - New external() implementation with support for different data formats. - Ability to declare custom external formats with @register_format. - external() can now be used without snapshot(), such as assert "long text" == external() or inside snapshots like dirty-equals. - You now have to declare format aliases if you used outsource() with a different suffix than .txt or .bin in the past. - external_file() now follows the aliases defined by register_format_alias(). - Removed unnecessary uuid7 dependency introduced in 0.25.0 - improved performance by checking for "external" in the code string before parsing the code and checking the AST - solved incompatibility with pytest_pretty - Fix issue terminal with is preserved - cleanup temporary path Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-inline-snapshot_0.25.3.bb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-inline-snapshot_0.25.3.bb (limited to 'meta-python/recipes-devtools/python/python3-inline-snapshot_0.25.3.bb') diff --git a/meta-python/recipes-devtools/python/python3-inline-snapshot_0.25.3.bb b/meta-python/recipes-devtools/python/python3-inline-snapshot_0.25.3.bb new file mode 100644 index 0000000000..4f7949bf41 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-inline-snapshot_0.25.3.bb @@ -0,0 +1,21 @@ +SUMMARY = "golden master/snapshot/approval testing library which puts the values right into your source code" +HOMEPAGE = "https://15r10nk.github.io/inline-snapshot" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7a35eb90dfdf03953dd2074d0fdba1d4" + +DEPENDS = "python3-hatchling-native" +SRC_URI[sha256sum] = "99fc959d1362443b7551246d787f80c4c1d7cc69963ac018caeda3f0a0b3736f" + +inherit pypi python_hatchling + +PYPI_PACKAGE = "inline_snapshot" +UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" + +RDEPENDS:${PN} = "python3-asttokens \ + python3-black \ + python3-click \ + python3-executing \ + python3-rich \ + python3-tomli \ + python3-typing-extensions \ + " -- cgit v1.2.3-54-g00ecf