Compare commits
2 Commits
3f83cba3ce
...
42550d77f1
Author | SHA1 | Date |
---|---|---|
Max Bachmann | 42550d77f1 | |
Max Bachmann | 88d76ebf91 |
|
@ -1,12 +1,13 @@
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
### [2.14.0] -
|
### [2.13.4] - 2022-12-08
|
||||||
#### Changed
|
#### Changed
|
||||||
- handle `float("nan")` similar to None for query / choice, since this is common for
|
- handle `float("nan")` similar to None for query / choice, since this is common for
|
||||||
non-existent data in tools like numpy
|
non-existent data in tools like numpy
|
||||||
|
|
||||||
#### Fixed
|
#### Fixed
|
||||||
- fix handling on `None`/`float("nan")` in `process.distance`
|
- fix handling on `None`/`float("nan")` in `process.distance`
|
||||||
|
- use absolute imports inside tests
|
||||||
|
|
||||||
### [2.13.3] - 2022-12-03
|
### [2.13.3] - 2022-12-03
|
||||||
#### Fixed
|
#### Fixed
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -13,7 +13,7 @@ with open("README.md", encoding="utf8") as f:
|
||||||
|
|
||||||
setup_args = {
|
setup_args = {
|
||||||
"name": "rapidfuzz",
|
"name": "rapidfuzz",
|
||||||
"version": "2.13.3",
|
"version": "2.13.4",
|
||||||
"extras_require": {"full": ["numpy"]},
|
"extras_require": {"full": ["numpy"]},
|
||||||
"url": "https://github.com/maxbachmann/RapidFuzz",
|
"url": "https://github.com/maxbachmann/RapidFuzz",
|
||||||
"author": "Max Bachmann",
|
"author": "Max Bachmann",
|
||||||
|
|
|
@ -3,7 +3,7 @@ rapid string matching library
|
||||||
"""
|
"""
|
||||||
__author__: str = "Max Bachmann"
|
__author__: str = "Max Bachmann"
|
||||||
__license__: str = "MIT"
|
__license__: str = "MIT"
|
||||||
__version__: str = "2.13.3"
|
__version__: str = "2.13.4"
|
||||||
|
|
||||||
from rapidfuzz import distance, fuzz, process, string_metric, utils
|
from rapidfuzz import distance, fuzz, process, string_metric, utils
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ from rapidfuzz.distance import (
|
||||||
Prefix_cpp,
|
Prefix_cpp,
|
||||||
Prefix_py,
|
Prefix_py,
|
||||||
)
|
)
|
||||||
from ..common import GenericScorer, is_none
|
from tests.common import GenericScorer, is_none
|
||||||
|
|
||||||
|
|
||||||
def get_scorer_flags_damerau_levenshtein(s1, s2, **kwargs):
|
def get_scorer_flags_damerau_levenshtein(s1, s2, **kwargs):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from .common import DamerauLevenshtein
|
from tests.distance.common import DamerauLevenshtein
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from .common import Hamming
|
from tests.distance.common import Hamming
|
||||||
|
|
||||||
|
|
||||||
def test_basic():
|
def test_basic():
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from .common import Indel
|
from tests.distance.common import Indel
|
||||||
|
|
||||||
|
|
||||||
def test_basic():
|
def test_basic():
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import pytest
|
import pytest
|
||||||
from .common import Jaro
|
from tests.distance.common import Jaro
|
||||||
|
|
||||||
|
|
||||||
def test_hash_special_case():
|
def test_hash_special_case():
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import pytest
|
import pytest
|
||||||
from .common import JaroWinkler
|
from tests.distance.common import JaroWinkler
|
||||||
|
|
||||||
|
|
||||||
def test_hash_special_case():
|
def test_hash_special_case():
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from .common import LCSseq
|
from tests.distance.common import LCSseq
|
||||||
|
|
||||||
|
|
||||||
def test_basic():
|
def test_basic():
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from rapidfuzz import process
|
from rapidfuzz import process
|
||||||
from rapidfuzz.distance import Levenshtein_cpp, Levenshtein_py, Opcode, Opcodes
|
from rapidfuzz.distance import Levenshtein_cpp, Levenshtein_py, Opcode, Opcodes
|
||||||
from .common import Levenshtein
|
from tests.distance.common import Levenshtein
|
||||||
|
|
||||||
|
|
||||||
class CustomHashable:
|
class CustomHashable:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from rapidfuzz.distance import OSA_cpp, OSA_py
|
from rapidfuzz.distance import OSA_cpp, OSA_py
|
||||||
from .common import OSA
|
from tests.distance.common import OSA
|
||||||
|
|
||||||
|
|
||||||
def isclose(a, b, rel_tol=1e-09, abs_tol=0.0):
|
def isclose(a, b, rel_tol=1e-09, abs_tol=0.0):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from .common import Postfix
|
from tests.distance.common import Postfix
|
||||||
|
|
||||||
|
|
||||||
def test_basic():
|
def test_basic():
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from .common import Prefix
|
from tests.distance.common import Prefix
|
||||||
|
|
||||||
|
|
||||||
def test_basic():
|
def test_basic():
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import pytest
|
import pytest
|
||||||
from .common import all_scorer_modules
|
from tests.distance.common import all_scorer_modules
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("scorer", all_scorer_modules)
|
@pytest.mark.parametrize("scorer", all_scorer_modules)
|
||||||
|
|
Loading…
Reference in New Issue