pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/py-Levenshtein



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri May  5 19:32:18 UTC 2023

Modified Files:
        pkgsrc/textproc/py-Levenshtein: Makefile PLIST distinfo
Added Files:
        pkgsrc/textproc/py-Levenshtein/patches: patch-CMakeLists.txt
            patch-src_Levenshtein_CMakeLists.txt
Removed Files:
        pkgsrc/textproc/py-Levenshtein/patches: patch-setup.py

Log Message:
py-Levenshtein: updated to 0.21.0

v0.21.0

Changed

relax dependency requirement on rapidfuzz
v0.20.9

Fixed

fix function signature of get_requires_for_build_wheel
v0.20.8

Fixed

type hints for editops/opcoded/matching_blocks did not allow any hashable sequence
v0.20.7

Fixed

type hints did not get installed
v0.20.6

Fixed

fix incorrect result normalization in setratio and seqratio
v0.20.5

Fixed

fix support for cmake versions below 3.17
fix version requirement for rapidfuzz-cpp when building against a previously installed version
v0.20.4

Changed

modernize cmake build to fix most conda-forge builds
v0.20.3

Changed

Added support for Python3.11
v0.20.2

Fixed

fix matching_blocks conversion for empty editops
Changed

added in-tree build backend to install cmake and ninja only when it is not installed yet and only when wheels are available
v0.20.1

Fixed

fix broken matching_blocks conversion
v0.20.0

Changed

use matching_blocks/apply/remove_subsequence/inverse implementation from RapidFuzz
Fixed

stop adding data to wheels
fix segmentation fault on some invalid editop sequences in subtract_edit
detect duplicated entries in editops validation


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/textproc/py-Levenshtein/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/textproc/py-Levenshtein/PLIST
cvs rdiff -u -r1.7 -r1.8 pkgsrc/textproc/py-Levenshtein/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/textproc/py-Levenshtein/patches/patch-CMakeLists.txt \
    pkgsrc/textproc/py-Levenshtein/patches/patch-src_Levenshtein_CMakeLists.txt
cvs rdiff -u -r1.2 -r0 pkgsrc/textproc/py-Levenshtein/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-Levenshtein/Makefile
diff -u pkgsrc/textproc/py-Levenshtein/Makefile:1.6 pkgsrc/textproc/py-Levenshtein/Makefile:1.7
--- pkgsrc/textproc/py-Levenshtein/Makefile:1.6 Wed Mar  2 21:28:31 2022
+++ pkgsrc/textproc/py-Levenshtein/Makefile     Fri May  5 19:32:18 2023
@@ -1,15 +1,21 @@
-# $NetBSD: Makefile,v 1.6 2022/03/02 21:28:31 gutteridge Exp $
+# $NetBSD: Makefile,v 1.7 2023/05/05 19:32:18 adam Exp $
 
-DISTNAME=      python-Levenshtein-0.12.2
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/python-//}
-PKGREVISION=   2
+DISTNAME=      Levenshtein-0.21.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
-MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python-Levenshtein/}
+MASTER_SITES=  ${MASTER_SITE_PYPI:=L/Levenshtein/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://github.com/ztane/python-Levenshtein
+HOMEPAGE=      https://github.com/maxbachmann/Levenshtein
 COMMENT=       Python extension for computing string edit distances
 LICENSE=       gnu-gpl-v2
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-scikit-build>=0.13.0:../../devel/py-scikit-build
+DEPENDS+=      ${PYPKGPREFIX}-rapidfuzz>=2.3.0:../../textproc/py-rapidfuzz
+
+USE_LANGUAGES= c c++
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/textproc/py-Levenshtein/PLIST
diff -u pkgsrc/textproc/py-Levenshtein/PLIST:1.4 pkgsrc/textproc/py-Levenshtein/PLIST:1.5
--- pkgsrc/textproc/py-Levenshtein/PLIST:1.4    Wed Mar  2 21:28:32 2022
+++ pkgsrc/textproc/py-Levenshtein/PLIST        Fri May  5 19:32:18 2023
@@ -1,16 +1,16 @@
-@comment $NetBSD: PLIST,v 1.4 2022/03/02 21:28:32 gutteridge Exp $
+@comment $NetBSD: PLIST,v 1.5 2023/05/05 19:32:18 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/namespace_packages.txt
 ${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/Levenshtein/StringMatcher.py
 ${PYSITELIB}/Levenshtein/StringMatcher.pyc
 ${PYSITELIB}/Levenshtein/StringMatcher.pyo
 ${PYSITELIB}/Levenshtein/__init__.py
 ${PYSITELIB}/Levenshtein/__init__.pyc
+${PYSITELIB}/Levenshtein/__init__.pyi
 ${PYSITELIB}/Levenshtein/__init__.pyo
-${PYSITELIB}/Levenshtein/_levenshtein.c
-${PYSITELIB}/Levenshtein/_levenshtein.h
-${PYSITELIB}/Levenshtein/_levenshtein.so
+${PYSITELIB}/Levenshtein/levenshtein_cpp.so
+${PYSITELIB}/Levenshtein/py.typed

Index: pkgsrc/textproc/py-Levenshtein/distinfo
diff -u pkgsrc/textproc/py-Levenshtein/distinfo:1.7 pkgsrc/textproc/py-Levenshtein/distinfo:1.8
--- pkgsrc/textproc/py-Levenshtein/distinfo:1.7 Wed Mar  2 22:10:48 2022
+++ pkgsrc/textproc/py-Levenshtein/distinfo     Fri May  5 19:32:18 2023
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2022/03/02 22:10:48 gutteridge Exp $
+$NetBSD: distinfo,v 1.8 2023/05/05 19:32:18 adam Exp $
 
-BLAKE2s (python-Levenshtein-0.12.2.tar.gz) = 2b751dc3868485f7da0381fec35034cd90f6539e62b791f8e5f34db5d82467c2
-SHA512 (python-Levenshtein-0.12.2.tar.gz) = 97eac9d19121758af7620ad3963846e48434ceabb5376a83f28452015adf1a620620bfb53edb1c4f60b0fc8ec2b0faf35a105d7e2a0fc5df7a45fce81ba0dcdb
-Size (python-Levenshtein-0.12.2.tar.gz) = 50502 bytes
-SHA1 (patch-setup.py) = b9665f1b055350b2e779920072a42695c1413e0a
+BLAKE2s (Levenshtein-0.21.0.tar.gz) = 68e8187a2f26c840e6026e4992ba3b98937a0889417e823d8ac63c31e126b23f
+SHA512 (Levenshtein-0.21.0.tar.gz) = 1ca67e73b4f139a53fe15e594bba22ecbe41f9306cef9779019106880a82f46e7b376afd6aa665fdec2e7b133d85db5be350d461b166ecb4ae4e8eac588a596f
+Size (Levenshtein-0.21.0.tar.gz) = 122856 bytes
+SHA1 (patch-CMakeLists.txt) = 5e94c7bc9ca41189f8e36fd8ba5f0ff81df175a1
+SHA1 (patch-src_Levenshtein_CMakeLists.txt) = a7724036854fe1495c734094a7cb7993574661cf

Added files:

Index: pkgsrc/textproc/py-Levenshtein/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/textproc/py-Levenshtein/patches/patch-CMakeLists.txt:1.1
--- /dev/null   Fri May  5 19:32:18 2023
+++ pkgsrc/textproc/py-Levenshtein/patches/patch-CMakeLists.txt Fri May  5 19:32:18 2023
@@ -0,0 +1,14 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2023/05/05 19:32:18 adam Exp $
+
+INTERPROCEDURAL_OPTIMIZATION (LTO) is not portable.
+
+--- CMakeLists.txt.orig        2023-05-05 19:22:34.000000000 +0000
++++ CMakeLists.txt
+@@ -1,7 +1,6 @@
+ cmake_minimum_required(VERSION 3.12...3.24)
+ 
+ cmake_policy(SET CMP0054 NEW)
+-set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
+ set(SKBUILD_LINK_LIBRARIES_KEYWORD PRIVATE)
+ set(Python_FIND_IMPLEMENTATIONS CPython PyPy)
+ 
Index: pkgsrc/textproc/py-Levenshtein/patches/patch-src_Levenshtein_CMakeLists.txt
diff -u /dev/null pkgsrc/textproc/py-Levenshtein/patches/patch-src_Levenshtein_CMakeLists.txt:1.1
--- /dev/null   Fri May  5 19:32:18 2023
+++ pkgsrc/textproc/py-Levenshtein/patches/patch-src_Levenshtein_CMakeLists.txt Fri May  5 19:32:18 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_Levenshtein_CMakeLists.txt,v 1.1 2023/05/05 19:32:18 adam Exp $
+
+Avoid SOABI in module name, so PLIST is constant across platforms.
+
+--- src/Levenshtein/CMakeLists.txt.orig        2023-05-05 18:49:51.000000000 +0000
++++ src/Levenshtein/CMakeLists.txt
+@@ -18,7 +18,7 @@ function(rf_add_library name)
+         endif()
+         set_property (TARGET ${name} PROPERTY SUFFIX ".${Python_SOABI}${suffix}")
+     else()
+-        Python_add_library(${name} MODULE WITH_SOABI ${ARGV})
++        Python_add_library(${name} MODULE ${ARGV})
+     endif()
+ endfunction(rf_add_library)
+ 



Home | Main Index | Thread Index | Old Index