From 50dd0240cdd8e35ef0c954343a83bde1af7ae775 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 26 Sep 2023 19:56:47 -0400 Subject: [PATCH 1/2] Update python-Levenshtein GitHub URL The current URL corresponding to https://pypi.org/project/python-Levenshtein/ is https://github.com/maxbachmann/python-Levenshtein. --- README.md | 2 +- constraints.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 67c07e3..6745696 100755 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ Supported libraries: 1. [jellyfish](https://github.com/jamesturk/jellyfish) 1. [py_stringmatching](https://github.com/anhaidgroup/py_stringmatching) 1. [pylev](https://github.com/toastdriven/pylev) -1. [python-Levenshtein](https://github.com/ztane/python-Levenshtein) +1. [python-Levenshtein](https://github.com/maxbachmann/python-Levenshtein) 1. [pyxDamerauLevenshtein](https://github.com/gfairchild/pyxDamerauLevenshtein) Algorithms: diff --git a/constraints.txt b/constraints.txt index d8cec6a..f5ebdec 100644 --- a/constraints.txt +++ b/constraints.txt @@ -4,7 +4,7 @@ jellyfish # https://github.com/jamesturk/jellyfish numpy py_stringmatching # https://github.com/anhaidgroup/py_stringmatching pylev # https://github.com/toastdriven/pylev -python-Levenshtein # https://github.com/ztane/python-Levenshtein +python-Levenshtein # https://github.com/maxbachmann/python-Levenshtein pyxDamerauLevenshtein # https://github.com/gfairchild/pyxDamerauLevenshtein tabulate From 4ce495b785a96ac0984fe6702a7da34840ba4785 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 26 Sep 2023 19:59:41 -0400 Subject: [PATCH 2/2] Depend on Levenshtein instead of python-Levenshtein MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From https://github.com/maxbachmann/python-Levenshtein/blob/de2b1d5fcd1d4d8fc376f2c6c9d9f8901e68d14b/README.md, “The package was renamed to Levenshtein and can be found [here](https://github.com/maxbachmann/Levenshtein). The python-Levenshtein package will continue to be updated alongside the new package” --- README.md | 2 +- constraints.txt | 2 +- setup.py | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6745696..bf7ef90 100755 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ Supported libraries: 1. [jellyfish](https://github.com/jamesturk/jellyfish) 1. [py_stringmatching](https://github.com/anhaidgroup/py_stringmatching) 1. [pylev](https://github.com/toastdriven/pylev) -1. [python-Levenshtein](https://github.com/maxbachmann/python-Levenshtein) +1. [Levenshtein](https://github.com/maxbachmann/Levenshtein) 1. [pyxDamerauLevenshtein](https://github.com/gfairchild/pyxDamerauLevenshtein) Algorithms: diff --git a/constraints.txt b/constraints.txt index f5ebdec..463f683 100644 --- a/constraints.txt +++ b/constraints.txt @@ -4,7 +4,7 @@ jellyfish # https://github.com/jamesturk/jellyfish numpy py_stringmatching # https://github.com/anhaidgroup/py_stringmatching pylev # https://github.com/toastdriven/pylev -python-Levenshtein # https://github.com/maxbachmann/python-Levenshtein +Levenshtein # https://github.com/maxbachmann/Levenshtein pyxDamerauLevenshtein # https://github.com/gfairchild/pyxDamerauLevenshtein tabulate diff --git a/setup.py b/setup.py index 486d517..75d8dc5 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ 'abydos', 'jellyfish', # for DamerauLevenshtein 'numpy', # for SmithWaterman and other - 'python-Levenshtein', # for Jaro and Levenshtein + 'Levenshtein', # for Jaro and Levenshtein 'pyxDamerauLevenshtein', # for DamerauLevenshtein 'rapidfuzz>=2.6.0', # for Jaro, Levenshtein and other ], @@ -21,7 +21,7 @@ 'abydos', 'jellyfish', 'numpy', - 'python-Levenshtein', + 'Levenshtein', 'pyxDamerauLevenshtein', 'rapidfuzz>=2.6.0', # slow @@ -64,7 +64,7 @@ 'pyxDamerauLevenshtein', # for any iterators ], 'Hamming': [ - 'python-Levenshtein', # only same length and strings + 'Levenshtein', # only same length and strings 'rapidfuzz>=2.6.0', # only same length, any iterators of hashable elements 'jellyfish', # only strings, any length 'distance', # only same length, any iterators @@ -72,7 +72,7 @@ ], 'Jaro': [ 'rapidfuzz>=2.6.0', # any iterators of hashable elements - 'python-Levenshtein', # only text + 'Levenshtein', # only text ], 'JaroWinkler': [ 'rapidfuzz>=2.6.0', # any iterators of hashable elements @@ -80,7 +80,7 @@ ], 'Levenshtein': [ 'rapidfuzz>=2.6.0', # any iterators of hashable elements - 'python-Levenshtein', # only text + 'Levenshtein', # only text # yeah, other libs slower than textdistance ], }