Sun Dec 31 21:33:52 2023 UTC (148d)
py-rapidfuzz: update to 3.6.1.

[3.6.1] - 2023-12-28
^^^^^^^^^^^^^^^^^^^^
Fixed
~~~~~
- fix overflow error on systems with ``sizeof(size_t) < 8``

[3.6.0] - 2023-12-26
^^^^^^^^^^^^^^^^^^^^
Fixed
~~~~~
- fix pure python fallback implementation of ``fuzz.token_set_ratio``
- properly link with ``-latomic`` if ``std::atomic<uint64_t>`` is not natively supported

Performance
~~~~~~~~~~~
* add banded implementation of LCS / Indel. This improves the runtime from ``O((|s1|/64) * |s2|)`` to ``O((score_cutoff/64) * |s2|)``

Changed
~~~~~~~
* upgrade to ``Cython==3.0.7``
* cdist for many metrics now returns a matrix of ``uint32`` instead of ``int32`` by default


(wiz)
diff -r1.17 -r1.18 pkgsrc/textproc/py-rapidfuzz/Makefile
diff -r1.6 -r1.7 pkgsrc/textproc/py-rapidfuzz/distinfo

cvs diff -r1.17 -r1.18 pkgsrc/textproc/py-rapidfuzz/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/py-rapidfuzz/Makefile 2023/12/25 22:19:59 1.17
+++ pkgsrc/textproc/py-rapidfuzz/Makefile 2023/12/31 21:33:52 1.18
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.17 2023/12/25 22:19:59 spz Exp $ 1# $NetBSD: Makefile,v 1.18 2023/12/31 21:33:52 wiz Exp $
2 2
3DISTNAME= rapidfuzz-3.5.2 3DISTNAME= rapidfuzz-3.6.1
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= textproc python 5CATEGORIES= textproc python
6MASTER_SITES= ${MASTER_SITE_PYPI:=r/rapidfuzz/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=r/rapidfuzz/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/maxbachmann/RapidFuzz 9HOMEPAGE= https://github.com/maxbachmann/RapidFuzz
10COMMENT= Rapid fuzzy string matching 10COMMENT= Rapid fuzzy string matching
11LICENSE= mit 11LICENSE= mit
12 12
13TOOL_DEPENDS+= cmake-[0-9]*:../../devel/cmake 13TOOL_DEPENDS+= cmake-[0-9]*:../../devel/cmake
14TOOL_DEPENDS+= ${PYPKGPREFIX}-scikit-build>=0.17.0:../../devel/py-scikit-build 14TOOL_DEPENDS+= ${PYPKGPREFIX}-scikit-build>=0.17.0:../../devel/py-scikit-build
15TEST_DEPENDS+= ${PYPKGPREFIX}-test>=7.1:../../devel/py-test 15TEST_DEPENDS+= ${PYPKGPREFIX}-test>=7.1:../../devel/py-test
16# optional dependency, but not optional for testing 16# optional dependency, but not optional for testing
@@ -18,27 +18,27 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-numpy>=0:. @@ -18,27 +18,27 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-numpy>=0:.
18TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=0:../../devel/py-hypothesis 18TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=0:../../devel/py-hypothesis
19 19
20PYTHON_VERSIONS_INCOMPATIBLE= 27 38 20PYTHON_VERSIONS_INCOMPATIBLE= 27 38
21 21
22PLIST_SUBST+= PYTHON_VERSION=${_PYTHON_VERSION} 22PLIST_SUBST+= PYTHON_VERSION=${_PYTHON_VERSION}
23PLIST_VARS+= avx2 23PLIST_VARS+= avx2
24PLIST_VARS+= sse2 24PLIST_VARS+= sse2
25# x86_64 may use avx2, i386 may use avx2 or sse2 25# x86_64 may use avx2, i386 may use avx2 or sse2
26# docs say it'll build them in any case and then autodetect at runtime 26# docs say it'll build them in any case and then autodetect at runtime
27# whether the system supports it (using _feature_detector_cpp.so) 27# whether the system supports it (using _feature_detector_cpp.so)
28.if ${MACHINE_ARCH} == "x86_64" 28.if ${MACHINE_ARCH} == "x86_64"
29PLIST.avx2= yes 29PLIST.avx2= yes
30.else 30.else
31. if ${MACHINE_ARCH} == "i386" 31. if ${MACHINE_ARCH} == "i386"
32PLIST.avx2= yes 32PLIST.avx2= yes
33PLIST.sse2= yes 33PLIST.sse2= yes
34. endif 34. endif
35.endif 35.endif
36 36
37USE_CXX_FEATURES= c++17 37USE_CXX_FEATURES= c++17
38USE_LANGUAGES= c c++ 38USE_LANGUAGES= c c++
39GCC_REQD+= 10 39GCC_REQD+= 10
40 40
41BUILDLINK_TRANSFORM.SunOS+= rm:-fno-fat-lto-objects 41BUILDLINK_TRANSFORM.SunOS+= rm:-fno-fat-lto-objects
42 42
43.include "../../lang/python/wheel.mk" 43.include "../../lang/python/wheel.mk"
44.include "../../mk/bsd.pkg.mk" 44.include "../../mk/bsd.pkg.mk"

cvs diff -r1.6 -r1.7 pkgsrc/textproc/py-rapidfuzz/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/py-rapidfuzz/distinfo 2023/11/07 09:14:23 1.6
+++ pkgsrc/textproc/py-rapidfuzz/distinfo 2023/12/31 21:33:52 1.7
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
1$NetBSD: distinfo,v 1.6 2023/11/07 09:14:23 wiz Exp $ 1$NetBSD: distinfo,v 1.7 2023/12/31 21:33:52 wiz Exp $
2 2
3BLAKE2s (rapidfuzz-3.5.2.tar.gz) = e88f37414015f6d1667e1b3f721a9b5ce10f7df0ca2e85f2364617f4c4dbcc48 3BLAKE2s (rapidfuzz-3.6.1.tar.gz) = 90ec1a82d3336c58963c9460b9b5e95e18fe3016461d6d92746925a06d4c204a
4SHA512 (rapidfuzz-3.5.2.tar.gz) = 65f7041558c1932ca916faa3c165f62694c7b261d626eb87579e25cd544e9be5bf6da073b6ee621ba2eba4662183315836acb0deda9bb33c1dc927e692438754 4SHA512 (rapidfuzz-3.6.1.tar.gz) = 17b40c9c3f94277340568f32ef121b277882e9191ad445df930cb394adb47bc4207008932550e74990af0d284c7af00e8ea3003114113a109a629117ebd9859c
5Size (rapidfuzz-3.5.2.tar.gz) = 1524315 bytes 5Size (rapidfuzz-3.6.1.tar.gz) = 1559239 bytes
6SHA1 (patch-src_rapidfuzz_CMakeLists.txt) = c8295aeb7bcd3e2d0a1cc87ee608187606c88959 6SHA1 (patch-src_rapidfuzz_CMakeLists.txt) = c8295aeb7bcd3e2d0a1cc87ee608187606c88959
7SHA1 (patch-src_rapidfuzz_distance_CMakeLists.txt) = 09a0d18a1bfa53164d163225c6bf6b51b8f81ba0 7SHA1 (patch-src_rapidfuzz_distance_CMakeLists.txt) = 09a0d18a1bfa53164d163225c6bf6b51b8f81ba0