summaryrefslogtreecommitdiff
path: root/dev-python/rapidfuzz
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-25 01:25:44 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-25 01:25:44 +0100
commitc25088d4fc442a7d6dc3a8d0498b43024888318d (patch)
treefdb19b6a9b3a20669ecb49f0ba8d9f435fbb4b1a /dev-python/rapidfuzz
parentd80b870c42fbe218389ffaf86f0f2a39404deca1 (diff)
gentoo auto-resync : 25:09:2024 - 01:25:44
Diffstat (limited to 'dev-python/rapidfuzz')
-rw-r--r--dev-python/rapidfuzz/Manifest6
-rw-r--r--dev-python/rapidfuzz/metadata.xml2
-rw-r--r--dev-python/rapidfuzz/rapidfuzz-3.10.0.ebuild57
-rw-r--r--dev-python/rapidfuzz/rapidfuzz-3.9.7.ebuild2
4 files changed, 63 insertions, 4 deletions
diff --git a/dev-python/rapidfuzz/Manifest b/dev-python/rapidfuzz/Manifest
index 17b6de637a9a..e6a2d028f7a5 100644
--- a/dev-python/rapidfuzz/Manifest
+++ b/dev-python/rapidfuzz/Manifest
@@ -1,5 +1,7 @@
+DIST rapidfuzz-3.10.0.tar.gz 57942780 BLAKE2B 3510ef495e9eb2a158eae73526e109809a9487ce48a70189b0c6f25957e46a6a640f1d0f9ef00203ea7730a2ba2b1086db9faf20434c92afb6b7205057aa5c22 SHA512 88e92ac4bfd72288546265c4d3957ce672f314f08f39b11ba21c267b07797eec45315af788f94152a4704e0782df77fbcb40ef6773be7d3a5d3684fd7230e437
DIST rapidfuzz-3.9.6.tar.gz 1596107 BLAKE2B e108320e05ad3ad194b1ffa05d5fddc5bb6080e73ecb031117a0552d5685734870af4a87503022fceadf3fd38b31e71f85c05483b4aaaf4a9d7358d4566699b4 SHA512 015b947dcfd12ee48c7592ac2fc204833d8aa8e43110dab12dff7650e9f309a9a2017d2faf89b3c154cead23d9dc7fc1658f0ff5d2f8b5b3c73b2c97f021c7d9
DIST rapidfuzz-3.9.7.tar.gz 1596228 BLAKE2B ba3188748dc408cbe91718e890fd67e9ee47feacfe2b307038d7bfc6ffdb7aebb016b2276b591a1fd3a5c59df29a1b55a9555505f938638907d11deec9575f98 SHA512 b1a50f3ff0af044e0aa57a053bcefb3227dce2ed17b94ed82afe72203c6e858221c5ca955e4f190a0cb7adaeada11fab7fa5958e1c439deec60d96899207269d
+EBUILD rapidfuzz-3.10.0.ebuild 1304 BLAKE2B 33f919e149d5ac17aafcb3a5cd3c85a6e60237ffc4469d7a86cc97ec17f51a77c5efc70a22f3443707e996cc89055153c96518336b6671d7101c5856dfb2310d SHA512 fd4ea05f4f823a7366863dfc9c28d806a5c5cfba8806ffa8a70564dea33212cf5af30ea2105d32ce9152ab116bdb6a7952e809c6d58a7c76490ac2ddbe4d45dd
EBUILD rapidfuzz-3.9.6.ebuild 1584 BLAKE2B a82d3c988cf3b83f5b1cd9955d3effa17723e49544c7f1b7aced89df52b62a0e0662f96c5b6c338209b60d669b429ac26c3793c700637b4bec23e6b5c71f4d36 SHA512 38b2451743ffb00568ee7fc3113573f74c56a3799a6941342cb8712c844f720ab62e870bb244d2dd5e91fb8f023928f1425ec9e52192df447f40278699a55574
-EBUILD rapidfuzz-3.9.7.ebuild 1587 BLAKE2B e633b8c342d822919acf519e26f23a064d23c44f895a2948e1b37b051371b1bfa8ad2af2cd5e9d475ce682c6d778fde146844473b0703d0c45152a4047fc6b14 SHA512 5747110d11dab95a3aba27701cd447a2e7117b7ce5bd03d7522aef6158b5df989240759af4e87a87d098cef401b6549d93bcea35cd6f332939729ca7f7f33c6d
-MISC metadata.xml 372 BLAKE2B 79ce98b986a4193ec72cfc1ef0a1e1970e2e6333da3dc0abdc24de4148932c4f81e68a4d85cedf308d79ee5fe61c1d2573889fe4f89025b7b4848caf4380596c SHA512 014b2de4c7eb3976799f76ca01c59585be12ff0718cb8378ce0aabf40113d8fd402e0a8ef26fd8924ee0840fa7e99677e5e31698180a0537a0627c464c29e34e
+EBUILD rapidfuzz-3.9.7.ebuild 1586 BLAKE2B 96fd075fd2f43c1b62391d4a545ab6c667fb3ddfc5cdff0056f0ca9eb896aff59d52f3243ba82128f892b21e8daf9026d0660e6bd6efd8194056dc1317508015 SHA512 5956eb6f3a55d392cfbff6c829f6ff45f16c2330ba1d5b430623f1754b84682307290dcf4722a8ff1d2fb0434761bbc2d0bf87932015f44637a33490a7a9cec2
+MISC metadata.xml 372 BLAKE2B 813733515163b827652c103af137a7adb5c126ee46ad654306e35e958bd5e5d5f9711c388ac0731203b29b441f075cf23d5090388aa4bc454f824697d2c8302e SHA512 a3e13245f49647e164df0554168f45861556a931963776457fa64c0f690c76da302b8a32dadd145dc70887bc1b927f71b06db196ec2b15e89e3702208b85fa59
diff --git a/dev-python/rapidfuzz/metadata.xml b/dev-python/rapidfuzz/metadata.xml
index e69b40da9b2f..b9e1b20ae859 100644
--- a/dev-python/rapidfuzz/metadata.xml
+++ b/dev-python/rapidfuzz/metadata.xml
@@ -7,6 +7,6 @@
</maintainer>
<upstream>
<remote-id type="github">rapidfuzz/RapidFuzz</remote-id>
- <remote-id type="pypi">rapidfuzz</remote-id>
+ <remote-id type="pypi">RapidFuzz</remote-id>
</upstream>
</pkgmetadata>
diff --git a/dev-python/rapidfuzz/rapidfuzz-3.10.0.ebuild b/dev-python/rapidfuzz/rapidfuzz-3.10.0.ebuild
new file mode 100644
index 000000000000..e47eb63b97c3
--- /dev/null
+++ b/dev-python/rapidfuzz/rapidfuzz-3.10.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=scikit-build-core
+PYPI_PN=RapidFuzz
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Rapid fuzzy string matching in Python using various string metrics"
+HOMEPAGE="
+ https://github.com/rapidfuzz/RapidFuzz/
+ https://pypi.org/project/RapidFuzz/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+# all these are header-only libraries
+DEPEND="
+ >=dev-cpp/taskflow-3.0.0
+ >=dev-cpp/rapidfuzz-cpp-3.0.5
+ dev-python/numpy[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ >=dev-python/cython-3[${PYTHON_USEDEP}]
+ test? (
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+src_prepare() {
+ # sterilize build flags
+ sed -i -e '/CMAKE_INTERPROCEDURAL_OPTIMIZATION/d' CMakeLists.txt || die
+ # remove bundled libraries
+ rm -r extern || die
+ # force recythonization
+ find src -name '*.cxx' -delete || die
+ # do not require exact taskflow version
+ sed -i -e '/Taskflow/s:3\.7\.0::' CMakeLists.txt || die
+
+ distutils-r1_src_prepare
+
+ export RAPIDFUZZ_BUILD_EXTENSION=1
+}
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}
diff --git a/dev-python/rapidfuzz/rapidfuzz-3.9.7.ebuild b/dev-python/rapidfuzz/rapidfuzz-3.9.7.ebuild
index b94b3279fb63..54534f44e80f 100644
--- a/dev-python/rapidfuzz/rapidfuzz-3.9.7.ebuild
+++ b/dev-python/rapidfuzz/rapidfuzz-3.9.7.ebuild
@@ -18,7 +18,7 @@ HOMEPAGE="
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
# all these are header-only libraries
DEPEND="