Skip to content

Commit

Permalink
release 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Jun 6, 2023
1 parent 2db5110 commit 9ea2269
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 10 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Changelog
---------

[3.1.1] - 2023-06-06
^^^^^^^^^^^^^^^^^^^^
Changed
~~~~~~~
- upgrade to ``taskflow==3.6``

Fixed
~~~~~
- replace usage of ``isnan`` with ``std::isnan`` which fixes the build on NetBSD


[3.1.0] - 2023-06-02
^^^^^^^^^^^^^^^^^^^^
Changed
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ check_cpu_arch_x64(RAPIDFUZZ_ARCH_X64)

set(RF_BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)

find_package(Taskflow 3.0.0 QUIET)
find_package(Taskflow 3.3.0 QUIET)
if(Taskflow_FOUND)
message(STATUS "Using system supplied version of Taskflow")
else()
Expand Down
2 changes: 1 addition & 1 deletion extern/taskflow
Submodule taskflow updated 1033 files
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def show_message(*lines):

setup_args = {
"name": "rapidfuzz",
"version": "3.1.0",
"version": "3.1.1",
"extras_require": {"full": ["numpy"]},
"url": "https://github.com/maxbachmann/RapidFuzz",
"author": "Max Bachmann",
Expand Down
2 changes: 1 addition & 1 deletion src/rapidfuzz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

__author__: str = "Max Bachmann"
__license__: str = "MIT"
__version__: str = "3.1.0"
__version__: str = "3.1.1"

from rapidfuzz import distance, fuzz, process, utils

Expand Down
4 changes: 2 additions & 2 deletions src/rapidfuzz/distance/metrics_cpp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ from cpp_common cimport (
SetScorerAttrs,
preprocess_strings,
)
from libc.math cimport isnan
from libcpp.cmath cimport isnan
from libc.stdint cimport INT64_MAX, int64_t
from libc.stdlib cimport free, malloc
from libcpp cimport bool
Expand Down Expand Up @@ -177,7 +177,7 @@ cdef inline bool is_none(s):
if s is None:
return True

if isinstance(s, float) and isnan(s):
if isinstance(s, float) and isnan(<double>s):
return True

return False
Expand Down
4 changes: 2 additions & 2 deletions src/rapidfuzz/fuzz_cpp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ from cpp_common cimport (
SetScorerAttrs,
preprocess_strings,
)
from libc.math cimport isnan
from libcpp.cmath cimport isnan
from libc.stdint cimport int64_t, uint32_t
from libcpp cimport bool

Expand Down Expand Up @@ -66,7 +66,7 @@ cdef inline bool is_none(s):
if s is None:
return True

if isinstance(s, float) and isnan(s):
if isinstance(s, float) and isnan(<double>s):
return True

return False
Expand Down
1 change: 1 addition & 0 deletions src/rapidfuzz/process_cpp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "cpp_common.hpp"
#include "rapidfuzz.h"
#include "taskflow/taskflow.hpp"
#include "taskflow/algorithm/for_each.hpp"
#include <atomic>
#include <chrono>
#include <exception>
Expand Down
4 changes: 2 additions & 2 deletions src/rapidfuzz/process_cpp_impl.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ from cpython.exc cimport PyErr_CheckSignals
from cpython.list cimport PyList_New, PyList_SET_ITEM
from cpython.object cimport PyObject
from cpython.ref cimport Py_INCREF
from libc.math cimport floor, isnan
from libcpp.cmath cimport floor, isnan
from libc.stdint cimport int32_t, int64_t, uint8_t, uint64_t
from libcpp cimport algorithm, bool
from libcpp.utility cimport move
Expand Down Expand Up @@ -132,7 +132,7 @@ cdef inline bool is_none(s):
if s is None:
return True

if isinstance(s, float) and isnan(s):
if isinstance(s, float) and isnan(<double>s):
return True

return False
Expand Down

0 comments on commit 9ea2269

Please sign in to comment.