Skip to content

Commit 0c6d3dc

Browse files
authored
fix jaro_winkler
1 parent acc0077 commit 0c6d3dc

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Changelog
22

3+
### v0.25.1
4+
#### Fixed
5+
- fix potentially incorrect results of `jaro_winkler` when using high prefix weights
6+
37
### v0.25.0
48
#### Changed
59
- improve type hints

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
setup(
99
name="Levenshtein",
10-
version="0.25.0",
10+
version="0.25.1",
1111
url="https://github.com/rapidfuzz/Levenshtein",
1212
author="Max Bachmann",
13-
install_requires=["rapidfuzz >= 3.1.0, < 4.0.0"],
13+
install_requires=["rapidfuzz >= 3.8.0, < 4.0.0"],
1414
author_email="pypi@maxbachmann.de",
1515
description="Python extension for computing string edit distances and similarities.",
1616
long_description=readme,

src/Levenshtein/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
__author__: str = "Max Bachmann"
2020
__license__: str = "GPL"
21-
22-
import importlib.metadata
21+
__version__: str = "0.25.1"
2322

2423
import rapidfuzz.distance.Hamming as _Hamming
2524
import rapidfuzz.distance.Indel as _Indel
@@ -42,11 +41,6 @@
4241
setratio,
4342
)
4443

45-
try:
46-
__version__: str = importlib.metadata.version(__package__ or __name__)
47-
except importlib.metadata.PackageNotFoundError:
48-
__version__: str = "0.0.0"
49-
5044
__all__ = [
5145
"quickmedian",
5246
"median",

0 commit comments

Comments
 (0)