Skip to content

Commit

Permalink
We can use importlib.metadata now (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
regebro authored Oct 16, 2023
1 parent d82e1fe commit b1f29ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Changes
- 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`.


2.6.3 (2023-05-21)
------------------
Expand Down
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,7 @@ Contributors

* Filip Demski, [email protected]

* Jacek Chałupka, [email protected]

The diff algorithm is based on "`Change Detection in Hierarchically Structured Information <http://ilpubs.stanford.edu/115/1/1995-46.pdf>`_",
and the text diff is using Google's ``diff_match_patch`` algorithm.
4 changes: 2 additions & 2 deletions xmldiff/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""All major API points and command-line tools"""
import pkg_resources
from importlib import metadata

from argparse import ArgumentParser, ArgumentTypeError
from lxml import etree
from xmldiff import diff, formatting, patch

__version__ = pkg_resources.require("xmldiff")[0].version
__version__ = metadata.version("xmldiff")

FORMATTERS = {
"diff": formatting.DiffFormatter,
Expand Down

0 comments on commit b1f29ac

Please sign in to comment.