diff options
Diffstat (limited to 'dev-python/rapidfuzz')
-rw-r--r-- | dev-python/rapidfuzz/Manifest | 2 | ||||
-rw-r--r-- | dev-python/rapidfuzz/rapidfuzz-3.5.2.ebuild | 58 |
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/rapidfuzz/Manifest b/dev-python/rapidfuzz/Manifest index 1b42d51a9800..f6a7559d9081 100644 --- a/dev-python/rapidfuzz/Manifest +++ b/dev-python/rapidfuzz/Manifest @@ -5,6 +5,7 @@ DIST rapidfuzz-3.3.0.tar.gz 1507179 BLAKE2B 59f45a3a2551d4ccc1e3c077abbd2ce2e569 DIST rapidfuzz-3.3.1.tar.gz 1507246 BLAKE2B 66964d155d682704266a32ce6632d91db4c0fdcf82722c6d58e7c305b0c4a341890b3c57d9936cc0f019b4aa5658279fc6d2f8885c17096ed8cb1721e2c633d3 SHA512 13f32818bdf1e71a30610c252afa1685ad64b858bff5b4309b5dfeca5f281096fc9fcd0683ed543bca0cee00db96df1c4fb6e0b76408c3694b508a9735d6cffc DIST rapidfuzz-3.4.0.tar.gz 1490201 BLAKE2B c82d72d2ef807f236ab9f0807de466f3434fbfc143cbe2128520003f8d300a6bed3a5967ee7bc48a354be4c549557e85a05c4d2d45d294b8a9b93cef71f2d7ff SHA512 b90ef939d53b9ae775422ded53d9523da49c09a4e78aefeb19e2b47f365de00ae0e6d5729171aa28057011551308ae240114edaab7876687983aaed53176f3dd DIST rapidfuzz-3.5.1.tar.gz 1524202 BLAKE2B dcd2e8cb206018fdd78bda727a74d65768835eae67e9338b3fc1d9cf25f36aff8cb018285ec8309d6a67f78c6b87e03b42e694d13a1d8a2513403ccb728cf482 SHA512 346f02c69995d250e023475eccc6da8ed99ab837a209d1f5f7c30f22cb42e883dec9ec7cc7d1b7c89176c976cc9a0db00eb5658b5dfb0b6088f02f9686c895c1 +DIST rapidfuzz-3.5.2.tar.gz 1524315 BLAKE2B 0877a38f3d4229b12944ede688891f5cc401ac644439d93e02a424370ab0e64eebab283de8d921a6e51ff622e425f8ba3b4f13f4eb16f0764440d9c62eca2c50 SHA512 65f7041558c1932ca916faa3c165f62694c7b261d626eb87579e25cd544e9be5bf6da073b6ee621ba2eba4662183315836acb0deda9bb33c1dc927e692438754 EBUILD rapidfuzz-3.1.1.ebuild 1142 BLAKE2B 3b40fe069a5fafbdca34c9280be10b59d8cfadcb74aecb74dff5ed4a8746342a65bdd9b186746a17edfca492e824037d291694ce61c359621a3e9dbf3cabd02b SHA512 30cb62c353237f9e9c03bab362195fbb24f01cbf9bff6e0d3ed1765bdd2402f5f324de7c62fd5117b06eb0a87b194ee476df6a2da1ad778521218e785dfbbcd8 EBUILD rapidfuzz-3.1.2.ebuild 1212 BLAKE2B 34efa40553e76336f3cd31ed176d9f1ded6c137ced880e63fb3c1644068d6129a5ef11908357be8510f4dbdddcb781aad8a8b184787e5dc6f134309bca68cf41 SHA512 76c49ee7537e3f25d1a252712058919b3311805bf2039aa5876a6cde6b17bd0b4a386062d722c18661272a097d5c14f50eaffce0e2d67a5a6e6c580be086e941 EBUILD rapidfuzz-3.2.0.ebuild 1225 BLAKE2B 0c1d62dde943fbce8322234df770b2befdd184bf3e8bfd50eea7a105255a53ff577bf61689264fe46584af3f7a21f942c33f2c1c706fd9dac688dddd41a82b0a SHA512 f3ae71a9f9d360345ca050527a9d4bc6ad78177c64cc5cbb30cb4130cbc04d6d24cc2a7d146762cdb9b52df1389b09856cd37e434920e93e0c253c3d8e3fcca7 @@ -12,4 +13,5 @@ EBUILD rapidfuzz-3.3.0.ebuild 1219 BLAKE2B a6944b7b3b0c25a8a56a10a33b19d882a43bc EBUILD rapidfuzz-3.3.1.ebuild 1225 BLAKE2B 0c1d62dde943fbce8322234df770b2befdd184bf3e8bfd50eea7a105255a53ff577bf61689264fe46584af3f7a21f942c33f2c1c706fd9dac688dddd41a82b0a SHA512 f3ae71a9f9d360345ca050527a9d4bc6ad78177c64cc5cbb30cb4130cbc04d6d24cc2a7d146762cdb9b52df1389b09856cd37e434920e93e0c253c3d8e3fcca7 EBUILD rapidfuzz-3.4.0.ebuild 1225 BLAKE2B c0fa149bf273c9a8d51e47d72e38d1304d68c6b0ab1400c757b4fe4cfdac8310a58bf5a399507afacc73fc7d2138044d12a9dabb909e44d756a4df56e583021e SHA512 78d01ae760be9c8a0b4b58d8fe698e46ced9dfe1dc8bc081fd6459a37152a63c70c3fb06b5ecf6be43345e245d064a59fc970af24645b40c818b2cc91ca26e78 EBUILD rapidfuzz-3.5.1.ebuild 1225 BLAKE2B e60f40738deefd125d28a8d0e847bcae0aa92a07a01c9779a49e5381304ce08727b59515a85b51a4677a236e106189b3789e52d6bb3839e91d61226d82e07cf1 SHA512 eeed0faf5dc2dc6819f3f5741a15d0760c2f793549d5d907d58e6ac9988dc72a809dbc198ee63b479c0a9892eafe4bd9a6f32625a356ebefdc4fd60960b822ee +EBUILD rapidfuzz-3.5.2.ebuild 1446 BLAKE2B d453fc1f52d902ea806f495cd904830ef431c9e7eb5911850ed7a487e6edbf5a9c2e83d8aa7414d62cd86c39fbc1dc05fc721c0c81298482be0afca9ecac7ad4 SHA512 6cd743a29bbe0ca8583d76be9f49ca05a0dadfb0cbd2dac48ec620746c882dd1ff0bf9d015517d9c6a1fa498cb4625ad96ee9bd8d8848aaa5cb5a2926310b7d3 MISC metadata.xml 374 BLAKE2B e6ee89a9850276b8c22c9bc851ebea2cde2ea696d122d70c6465e09a9371c59f81d1976b3253e8ee90afae5e3e30e993481b402058bac0c58ec01f71a0b7c3b4 SHA512 9a39c4bcf8e8de0a6d6a356a9aeb415f8f49667caf5716eee50bf251f1fd53bb076e817fac0b15bf64e65c1b9625c78810da61a5d96b273a20b2669a18084d6e diff --git a/dev-python/rapidfuzz/rapidfuzz-3.5.2.ebuild b/dev-python/rapidfuzz/rapidfuzz-3.5.2.ebuild new file mode 100644 index 000000000000..fd598b73e4e8 --- /dev/null +++ b/dev-python/rapidfuzz/rapidfuzz-3.5.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +# custom wrapper over setuptools +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 multiprocessing pypi + +DESCRIPTION="Rapid fuzzy string matching in Python using various string metrics" +HOMEPAGE=" + https://github.com/maxbachmann/RapidFuzz/ + https://pypi.org/project/rapidfuzz/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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-2.2.3 + dev-python/numpy[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/cython-3[${PYTHON_USEDEP}] + dev-python/rapidfuzz-capi[${PYTHON_USEDEP}] + >=dev-python/scikit-build-0.16.2[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +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 + + distutils-r1_src_prepare + + export RAPIDFUZZ_BUILD_EXTENSION=1 +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p xdist -n "$(makeopts_jobs)" --dist=worksteal +} |