From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B305C158004 for ; Mon, 9 Oct 2023 13:59:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CAB552BC02C; Mon, 9 Oct 2023 13:59:41 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B42192BC02C for ; Mon, 9 Oct 2023 13:59:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0845A335C7E for ; Mon, 9 Oct 2023 13:59:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9CFFEF2E for ; Mon, 9 Oct 2023 13:59:39 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1696859973.57a43399c57b0e82d26264a2c73e817c7d3ba059.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rapidfuzz/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/rapidfuzz/Manifest dev-python/rapidfuzz/rapidfuzz-3.4.0.ebuild X-VCS-Directories: dev-python/rapidfuzz/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 57a43399c57b0e82d26264a2c73e817c7d3ba059 X-VCS-Branch: master Date: Mon, 9 Oct 2023 13:59:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4690b065-3c64-4fd8-84c2-1456a13291c7 X-Archives-Hash: 2ba031f28b8db67ea83a220307c4ae2e commit: 57a43399c57b0e82d26264a2c73e817c7d3ba059 Author: Michał Górny gentoo org> AuthorDate: Mon Oct 9 13:35:08 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Oct 9 13:59:33 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57a43399 dev-python/rapidfuzz: Bump to 3.4.0 Signed-off-by: Michał Górny gentoo.org> dev-python/rapidfuzz/Manifest | 1 + dev-python/rapidfuzz/rapidfuzz-3.4.0.ebuild | 50 +++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/dev-python/rapidfuzz/Manifest b/dev-python/rapidfuzz/Manifest index 9c7814d797b3..e7dcbdd58a2c 100644 --- a/dev-python/rapidfuzz/Manifest +++ b/dev-python/rapidfuzz/Manifest @@ -3,3 +3,4 @@ DIST rapidfuzz-3.1.2.tar.gz 1280133 BLAKE2B 5f1d3175bc5ded1900f31c73d0e9fdfd6035 DIST rapidfuzz-3.2.0.tar.gz 1472554 BLAKE2B 7946f6139aec1ca9ccc623750bd09601e04171f3030bb7cfeac5cedf9ec1a639c444e9fd3394efde199e447a6834dce46be20dfb8be33232a324e4dea23b9cf1 SHA512 0ea0ecc62e2493519a302edd090521ed7efeae35e73812aeadaca2e2369362b57b1a095a09296edfa8db07b6bf58de4451dc71e96e6c215ebbe96dc1f8e7e995 DIST rapidfuzz-3.3.0.tar.gz 1507179 BLAKE2B 59f45a3a2551d4ccc1e3c077abbd2ce2e569be51dd72b0378a2744557d65588d9a98c53048471fe8f1b4600f3b997e26477d65bac983954ae9d8331aea4dc5c3 SHA512 ee3a362f7c9bf4c54cff93a8c3d830541f07ed67628469b1406261fca086bd15eb4a418ece56fa3e4f25e0c6b859080d19582f5eea90547541a39d35ec70ea19 DIST rapidfuzz-3.3.1.tar.gz 1507246 BLAKE2B 66964d155d682704266a32ce6632d91db4c0fdcf82722c6d58e7c305b0c4a341890b3c57d9936cc0f019b4aa5658279fc6d2f8885c17096ed8cb1721e2c633d3 SHA512 13f32818bdf1e71a30610c252afa1685ad64b858bff5b4309b5dfeca5f281096fc9fcd0683ed543bca0cee00db96df1c4fb6e0b76408c3694b508a9735d6cffc +DIST rapidfuzz-3.4.0.tar.gz 1490201 BLAKE2B c82d72d2ef807f236ab9f0807de466f3434fbfc143cbe2128520003f8d300a6bed3a5967ee7bc48a354be4c549557e85a05c4d2d45d294b8a9b93cef71f2d7ff SHA512 b90ef939d53b9ae775422ded53d9523da49c09a4e78aefeb19e2b47f365de00ae0e6d5729171aa28057011551308ae240114edaab7876687983aaed53176f3dd diff --git a/dev-python/rapidfuzz/rapidfuzz-3.4.0.ebuild b/dev-python/rapidfuzz/rapidfuzz-3.4.0.ebuild new file mode 100644 index 000000000000..c8d2f8c7faa4 --- /dev/null +++ b/dev-python/rapidfuzz/rapidfuzz-3.4.0.ebuild @@ -0,0 +1,50 @@ +# 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 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.1.1 + dev-python/numpy[${PYTHON_USEDEP}] +" +BDEPEND=" + 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}] + ) +" + +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 + + distutils-r1_src_prepare + + # TODO: re-cythonnize when we can reliably dep on Cython >= 3 + export RAPIDFUZZ_BUILD_EXTENSION=1 +}