summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-inline-snapshot_0.18.1.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2024-12-24 17:26:30 +0800
committerKhem Raj <raj.khem@gmail.com>2024-12-24 08:23:08 -0800
commitbcaf41ab0abd6b8bc392c5699403bd9a04504c53 (patch)
tree720e60a3024aa33849e1462b86b7fca007a9c7e8 /meta-python/recipes-devtools/python/python3-inline-snapshot_0.18.1.bb
parent5404103913c02984e4326bf3705512a3cf6ba477 (diff)
downloadmeta-openembedded-bcaf41ab0abd6b8bc392c5699403bd9a04504c53.tar.gz
python3-inline-snapshot: upgrade 0.14.0 -> 0.18.1
Changelog: ========== - uv is now only used during test time if you run the inline-snapshot tests with pytest --use-uv - Add support for a new storage-dir configuration option, to tell inline-snapshot where to store data files such as external snapshots. - pydantic v1 is supported again. pydantic v1 & v2 create now the same snapshots. - Find pyproject.toml file in parent directories, not just next to the Pytest configuration file. - Code generation for sets is now deterministic. - attrs can now contain unmanaged values - Add inline_snapshot.extra.warns to captures warnings and compares them against expected warnings. - solved a bug caused by a variable inside a snapshot - snapshots inside snapshots are now supported. - runtime values can now be part of snapshots. - f-strings can now also be used within snapshots, but are currently not fixed by inline-snapshot. - dirty-equals expressions are now treated like runtime values or snapshots within snapshots and are not modified by inline-snapshot. - inline-snapshot checks now if the given command line flags (--inline-snapshot=...) are valid - Example(...).run_pytest(raise=snapshot(...)) uses now the flags from the current run and not the flags from the Example. - do not crash when handling raw f-strings (rf"",RF"",...) - Don't crash for snapshots like snapshot(f"") - skip formatting if black returns an error Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-inline-snapshot_0.18.1.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-inline-snapshot_0.18.1.bb21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-inline-snapshot_0.18.1.bb b/meta-python/recipes-devtools/python/python3-inline-snapshot_0.18.1.bb
new file mode 100644
index 0000000000..cd5e850455
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-inline-snapshot_0.18.1.bb
@@ -0,0 +1,21 @@
1SUMMARY = "golden master/snapshot/approval testing library which puts the values right into your source code"
2HOMEPAGE = "https://15r10nk.github.io/inline-snapshot"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=7a35eb90dfdf03953dd2074d0fdba1d4"
5
6DEPENDS = "python3-hatchling-native"
7SRC_URI[sha256sum] = "a93bcf0aec68edf27323fa8dfc902354ef9a730050ab8939a4b174419828db6b"
8
9inherit pypi python_hatchling
10
11PYPI_PACKAGE = "inline_snapshot"
12UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
13
14RDEPENDS:${PN} = "python3-asttokens \
15 python3-black \
16 python3-click \
17 python3-executing \
18 python3-rich \
19 python3-tomli \
20 python3-typing-extensions \
21 "