diff mbox series

[meta-security,1/2] python3-xmldiff: upgrade 2.6.3 -> 2.7.0

Message ID 20250327113854.1393190-1-changqing.li@windriver.com
State New
Headers show
Series [meta-security,1/2] python3-xmldiff: upgrade 2.6.3 -> 2.7.0 | expand

Commit Message

Changqing Li March 27, 2025, 11:38 a.m. UTC
From: Changqing Li <changqing.li@windriver.com>

Changes:
2.7.0 (2024-05-13)
    * Changed the comparison to make accurate and standard more accurate, although fast gets less accurate as a result.
    * Changed usage of deprecated pkg_resources package to importlib.metadata.
    * A use_replace flag was added to the XMLFormatter by Thomas Pfitzinger. It changes text replacement from delete and insert tags to a replace tag. It’s not currently accessaible thtough the CLI, the question is it is better to add a new formatter name, or an option to pass in formatter flags.
        - Added option to XMLFormatter to use replace tags
        - in _make_diff_tags after diffing, neighboring delete/insert diffs are joined to a replace tag
        - the deleted text is added as an attribute (“old-text”)
        - the inserted text is the element’s text

Refer:
https://pypi.org/project/xmldiff/2.7.0/

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 ...python3-xmldiff_2.6.3.bb => python3-xmldiff_2.7.0.bb} | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
 rename dynamic-layers/meta-python/recipes-devtools/python/{python3-xmldiff_2.6.3.bb => python3-xmldiff_2.7.0.bb} (57%)
diff mbox series

Patch

diff --git a/dynamic-layers/meta-python/recipes-devtools/python/python3-xmldiff_2.6.3.bb b/dynamic-layers/meta-python/recipes-devtools/python/python3-xmldiff_2.7.0.bb
similarity index 57%
rename from dynamic-layers/meta-python/recipes-devtools/python/python3-xmldiff_2.6.3.bb
rename to dynamic-layers/meta-python/recipes-devtools/python/python3-xmldiff_2.7.0.bb
index 811cf36..9d38065 100644
--- a/dynamic-layers/meta-python/recipes-devtools/python/python3-xmldiff_2.6.3.bb
+++ b/dynamic-layers/meta-python/recipes-devtools/python/python3-xmldiff_2.7.0.bb
@@ -2,7 +2,7 @@  DESCRIPTION="Creates diffs of XML files"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=0d0e9e3949e163c3edd1e097b8b0ed62"
 
-SRC_URI[sha256sum] = "19b030b3fa37d1f0b5c5ad9ada9059884c3bf2c751c5dd8f1eb4ed49cfe3fc60"
+SRC_URI[sha256sum] = "c0910b1f800366dd7ec62923e5d06e8b06a1bd9120569a1c27f4f2446b9c68a2"
 
 PYPI_PACKAGE = "xmldiff"
 
@@ -11,3 +11,10 @@  inherit pypi python_setuptools_build_meta
 DEPENDS += " \
     python3-setuptools-scm-native \
 "
+
+RDEPENDS:${PN} += " \
+    python3-json \
+    python3-email \
+    python3-lxml \
+    python3-difflib \
+"