14
0

Compare commits

4 Commits

Author SHA256 Message Date
17f9c9966a Accepting request 1297579 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1297579
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xmldiff?expand=0&rev=24
2025-08-05 12:21:36 +00:00
ada69fc355 - add fix-error-type.patch to fix tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=23
2025-08-04 20:20:51 +00:00
1bcac09a28 Accepting request 1221495 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1221495
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xmldiff?expand=0&rev=23
2024-11-06 15:51:28 +00:00
577b21b7a3 - Update to 2.7.0
* 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
- Drop README.txt from %files section, removed upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmldiff?expand=0&rev=21
2024-11-05 15:33:50 +00:00
5 changed files with 44 additions and 6 deletions

13
fix-error-type.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: xmldiff-2.7.0/tests/test_main.py
===================================================================
--- xmldiff-2.7.0/tests/test_main.py.orig
+++ xmldiff-2.7.0/tests/test_main.py
@@ -44,7 +44,7 @@ class MainAPITests(unittest.TestCase):
with open(LEFT_FILE, "rb") as infile:
with open(RIGHT_FILE, "rb") as infile:
# Give something else, and it fails:
- with self.assertRaises(ValueError):
+ with self.assertRaises(TypeError):
main.diff_texts(infile, infile)
def test_api_diff_trees(self):

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Fri Aug 1 12:32:54 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- add fix-error-type.patch to fix tests
-------------------------------------------------------------------
Tue Nov 5 14:15:34 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.7.0
* 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
- Drop README.txt from %files section, removed upstream
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 5 04:33:13 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com> Tue Mar 5 04:33:13 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-xmldiff # spec file for package python-xmldiff
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,12 +18,14 @@
%define oldpython python %define oldpython python
Name: python-xmldiff Name: python-xmldiff
Version: 2.6.3 Version: 2.7.0
Release: 0 Release: 0
Summary: Tree to tree correction between XML documents Summary: Tree to tree correction between XML documents
License: MIT License: MIT
URL: https://github.com/Shoobx/xmldiff URL: https://github.com/Shoobx/xmldiff
Source: https://files.pythonhosted.org/packages/source/x/xmldiff/xmldiff-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/x/xmldiff/xmldiff-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-error-type.patch taken from https://github.com/Shoobx/xmldiff/commit/57e16ce3d92067c6246c3de04f2d4b9803f6f25b
Patch0: fix-error-type.patch
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
@@ -72,7 +74,7 @@ Garcia-Molina, and J. Widom, Stanford University, 1996.
%python_uninstall_alternative xmldiff %python_uninstall_alternative xmldiff
%files %{python_files} %files %{python_files}
%doc CHANGES.rst README.rst README.txt %doc CHANGES.rst README.rst
%license LICENSE.txt %license LICENSE.txt
%python_alternative %{_bindir}/xmldiff %python_alternative %{_bindir}/xmldiff
%python_alternative %{_bindir}/xmlpatch %python_alternative %{_bindir}/xmlpatch

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:19b030b3fa37d1f0b5c5ad9ada9059884c3bf2c751c5dd8f1eb4ed49cfe3fc60
size 86132

3
xmldiff-2.7.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c0910b1f800366dd7ec62923e5d06e8b06a1bd9120569a1c27f4f2446b9c68a2
size 87596