commit: eccb18eab329ee4df3a0c67f4cba9a77a65fa3fb Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Apr 8 02:56:01 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Apr 8 03:03:19 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eccb18ea
dev-python/Levenshtein: Bump to 0.25.1 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/Levenshtein/Levenshtein-0.25.1.ebuild | 48 ++++++++++++++++++++++++ dev-python/Levenshtein/Manifest | 1 + 2 files changed, 49 insertions(+) diff --git a/dev-python/Levenshtein/Levenshtein-0.25.1.ebuild b/dev-python/Levenshtein/Levenshtein-0.25.1.ebuild new file mode 100644 index 000000000000..743a37508403 --- /dev/null +++ b/dev-python/Levenshtein/Levenshtein-0.25.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 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 + +DESCRIPTION="Functions for fast computation of Levenshtein distance, and edit operations" +HOMEPAGE=" + https://pypi.org/project/Levenshtein/ + https://github.com/rapidfuzz/Levenshtein/ +" +SRC_URI=" + https://github.com/rapidfuzz/Levenshtein/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +DEPEND=" + <dev-cpp/rapidfuzz-cpp-4 + >=dev-cpp/rapidfuzz-cpp-3.0.0 +" +RDEPEND=" + <dev-python/rapidfuzz-4.0.0[${PYTHON_USEDEP}] + >=dev-python/rapidfuzz-3.8.0[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/cython-3.0.2[${PYTHON_USEDEP}] + >=dev-python/scikit-build-0.13.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + # sterilize build flags + sed -i -e '/CMAKE_INTERPROCEDURAL_OPTIMIZATION/d' CMakeLists.txt || die + + distutils-r1_src_prepare +} diff --git a/dev-python/Levenshtein/Manifest b/dev-python/Levenshtein/Manifest index 889681eb2d1e..1f7fe4550525 100644 --- a/dev-python/Levenshtein/Manifest +++ b/dev-python/Levenshtein/Manifest @@ -1 +1,2 @@ DIST Levenshtein-0.25.0.gh.tar.gz 39076 BLAKE2B cb3bb55b37b5bfa8dc95d78dc6898154b4d4240c27348c6e03b13cdaa2c8ff19d1e8f2bf3d6b4fcc5c77be917afaa391276e93dcac24c2c19e1b285653a45c72 SHA512 e07ea1cef83c19a2a24ae76647ae2c534213ac6044b50a78dd1f2007936eb46032db326728b420471b6cb63ba6ac80a11c575ab277ae77116c592d113daba74c +DIST Levenshtein-0.25.1.gh.tar.gz 39060 BLAKE2B 9d058d910be7c6c3e668cca631a7da5bed678e219c96e4255dbf69c46cb3c55002928fcd90f39916b6c1a57845e9cf1a2327701ae21c662b81f909b9ea1f4bff SHA512 936dab36b15df6f2ee5425efb1fdb1490fb8f618ba453f464a6dd615bcc427e55ceee7474f06b34392871d9f38470b853602a11d8f9776eee66ec34156511ca4