Compare commits

...

2 Commits

Author SHA1 Message Date
Max Bachmann 42550d77f1 release v2.13.4 2022-12-08 20:51:48 +01:00
Max Bachmann 88d76ebf91 use absolute imports in tests 2022-12-08 18:02:56 +01:00
15 changed files with 16 additions and 15 deletions

View File

@ -1,12 +1,13 @@
## Changelog
### [2.14.0] -
### [2.13.4] - 2022-12-08
#### Changed
- handle `float("nan")` similar to None for query / choice, since this is common for
non-existent data in tools like numpy
#### Fixed
- fix handling on `None`/`float("nan")` in `process.distance`
- use absolute imports inside tests
### [2.13.3] - 2022-12-03
#### Fixed

View File

@ -13,7 +13,7 @@ with open("README.md", encoding="utf8") as f:
setup_args = {
"name": "rapidfuzz",
"version": "2.13.3",
"version": "2.13.4",
"extras_require": {"full": ["numpy"]},
"url": "https://github.com/maxbachmann/RapidFuzz",
"author": "Max Bachmann",

View File

@ -3,7 +3,7 @@ rapid string matching library
"""
__author__: str = "Max Bachmann"
__license__: str = "MIT"
__version__: str = "2.13.3"
__version__: str = "2.13.4"
from rapidfuzz import distance, fuzz, process, string_metric, utils

View File

@ -20,7 +20,7 @@ from rapidfuzz.distance import (
Prefix_cpp,
Prefix_py,
)
from ..common import GenericScorer, is_none
from tests.common import GenericScorer, is_none
def get_scorer_flags_damerau_levenshtein(s1, s2, **kwargs):

View File

@ -1,6 +1,6 @@
import pytest
from .common import DamerauLevenshtein
from tests.distance.common import DamerauLevenshtein
@pytest.mark.parametrize(

View File

@ -1,4 +1,4 @@
from .common import Hamming
from tests.distance.common import Hamming
def test_basic():

View File

@ -1,4 +1,4 @@
from .common import Indel
from tests.distance.common import Indel
def test_basic():

View File

@ -1,5 +1,5 @@
import pytest
from .common import Jaro
from tests.distance.common import Jaro
def test_hash_special_case():

View File

@ -1,5 +1,5 @@
import pytest
from .common import JaroWinkler
from tests.distance.common import JaroWinkler
def test_hash_special_case():

View File

@ -1,4 +1,4 @@
from .common import LCSseq
from tests.distance.common import LCSseq
def test_basic():

View File

@ -1,6 +1,6 @@
from rapidfuzz import process
from rapidfuzz.distance import Levenshtein_cpp, Levenshtein_py, Opcode, Opcodes
from .common import Levenshtein
from tests.distance.common import Levenshtein
class CustomHashable:

View File

@ -1,5 +1,5 @@
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):

View File

@ -1,4 +1,4 @@
from .common import Postfix
from tests.distance.common import Postfix
def test_basic():

View File

@ -1,4 +1,4 @@
from .common import Prefix
from tests.distance.common import Prefix
def test_basic():

View File

@ -1,5 +1,5 @@
import pytest
from .common import all_scorer_modules
from tests.distance.common import all_scorer_modules
@pytest.mark.parametrize("scorer", all_scorer_modules)