aboutsummaryrefslogtreecommitdiff
path: root/python/python3-rapidfuzz
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-rapidfuzz')
-rw-r--r--python/python3-rapidfuzz/README3
-rw-r--r--python/python3-rapidfuzz/python3-rapidfuzz.SlackBuild20
-rw-r--r--python/python3-rapidfuzz/python3-rapidfuzz.info16
3 files changed, 20 insertions, 19 deletions
diff --git a/python/python3-rapidfuzz/README b/python/python3-rapidfuzz/README
index 90107c0967..137d37ce76 100644
--- a/python/python3-rapidfuzz/README
+++ b/python/python3-rapidfuzz/README
@@ -2,6 +2,3 @@ python3-rapidfuzz (Rapid fuzzy string matching)
RapidFuzz is a fast string matching library for Python and C++,
which is using the string similarity calculations from FuzzyWuzzy.
-
-NOTE: Unable to support newer versions than 1.9.1 due to requiring a
-newer Cython than included in Slackware (needs 3.0.9).
diff --git a/python/python3-rapidfuzz/python3-rapidfuzz.SlackBuild b/python/python3-rapidfuzz/python3-rapidfuzz.SlackBuild
index 9f6e500559..c874baa044 100644
--- a/python/python3-rapidfuzz/python3-rapidfuzz.SlackBuild
+++ b/python/python3-rapidfuzz/python3-rapidfuzz.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python3-rapidfuzz
-# Copyright 2024 Jeremy Hansen <jebrhansen+SBo@gmail.com>
+# Copyright 2024-2025 Jeremy Hansen <jebrhansen+SBo@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,9 +24,9 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-rapidfuzz
-VERSION=${VERSION:-1.9.1}
-RAPIDCPPVER=${RAPIDCPPVER:-103674db0785f6c1c8e247abc850e48c75c22e1c}
-TASKVER=${TASKVER:-2.7.0}
+VERSION=${VERSION:-3.13.0}
+RAPIDCPPVER=${RAPIDCPPVER:-2440ffa}
+TASKVER=${TASKVER:-130f795}
SRCNAM=${SRCNAM:-RapidFuzz}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -56,11 +56,11 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
-tar xvf $CWD/rapidfuzz-cpp-$RAPIDCPPVER.tar.gz
-tar xvf $CWD/taskflow-$TASKVER.tar.gz
+tar xvf $CWD/rapidfuzz-cpp-$RAPIDCPPVER*.tar.gz
+tar xvf $CWD/taskflow-$TASKVER*.tar.gz
rmdir $SRCNAM-$VERSION/extern/{rapidfuzz-cpp,taskflow}
-mv rapidfuzz-cpp-$RAPIDCPPVER $SRCNAM-$VERSION/extern/rapidfuzz-cpp
-mv taskflow-$TASKVER $SRCNAM-$VERSION/extern/taskflow
+mv rapidfuzz-cpp-$RAPIDCPPVER* $SRCNAM-$VERSION/extern/rapidfuzz-cpp
+mv taskflow-$TASKVER* $SRCNAM-$VERSION/extern/taskflow
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
@@ -72,6 +72,10 @@ find -L . \
# Just allow any numpy
sed -i 's|oldest-supported-numpy|numpy|' pyproject.toml
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH="/opt/python$PYVER/site-packages:/opt/cython/python$PYVER/site-packages"
+export PATH="/opt/cython/bin:$PATH"
+
python3 -m build --wheel --no-isolation
python3 -m installer --destdir=$PKG dist/*.whl
diff --git a/python/python3-rapidfuzz/python3-rapidfuzz.info b/python/python3-rapidfuzz/python3-rapidfuzz.info
index 2774991711..5781c485c2 100644
--- a/python/python3-rapidfuzz/python3-rapidfuzz.info
+++ b/python/python3-rapidfuzz/python3-rapidfuzz.info
@@ -1,14 +1,14 @@
PRGNAM="python3-rapidfuzz"
-VERSION="1.9.1"
+VERSION="3.13.0"
HOMEPAGE="https://rapidfuzz.github.io/RapidFuzz/"
-DOWNLOAD="https://github.com/rapidfuzz/RapidFuzz/archive/refs/tags/v1.9.1/RapidFuzz-1.9.1.tar.gz \
- https://github.com/rapidfuzz/rapidfuzz-cpp/archive/103674d/rapidfuzz-cpp-103674db0785f6c1c8e247abc850e48c75c22e1c.tar.gz \
- https://github.com/taskflow/taskflow/archive/refs/tags/v2.7.0/taskflow-2.7.0.tar.gz"
-MD5SUM="07e3b7e4f00c1d339293682d22a60bd9 \
- ae491afac82458bf6387628199a5babe \
- 76273b0a4489d3c32fc0c8a093ebe902"
+DOWNLOAD="https://github.com/rapidfuzz/RapidFuzz/archive/refs/tags/v3.13.0/RapidFuzz-3.13.0.tar.gz \
+ https://github.com/rapidfuzz/rapidfuzz-cpp/archive/2440ffa/rapidfuzz-cpp-2440ffa67452f2feb8677deafd8abee995a20a87.tar.gz \
+ https://github.com/taskflow/taskflow/archive/130f795/taskflow-130f7952469c01eef8d7b635710bf9a8043f3172.tar.gz"
+MD5SUM="e6cbea6a7fb732def13bd81348f299bd \
+ 27fd0d3bf57102a7ad4cdb5194139a5a \
+ a05e339da966f3e1e5bb2cfb2f50e9b1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3-numpy"
+REQUIRES="python3-numpy python3-cython-opt python3-scikit-build-core"
MAINTAINER="Jeremy Hansen"
EMAIL="jebrhansen+SBo@gmail.com"