From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1673377-garchives=archives.gentoo.org@lists.gentoo.org>
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 EB46C158083
	for <garchives@archives.gentoo.org>; Tue, 24 Sep 2024 06:41:54 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 382D1E2AC5;
	Tue, 24 Sep 2024 06:41:54 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 1B1FEE2AC5
	for <gentoo-commits@lists.gentoo.org>; Tue, 24 Sep 2024 06:41:54 +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) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 228813434D5
	for <gentoo-commits@lists.gentoo.org>; Tue, 24 Sep 2024 06:41:53 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 7DCEE1F46
	for <gentoo-commits@lists.gentoo.org>; Tue, 24 Sep 2024 06:41:51 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
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" <mgorny@gentoo.org>
Message-ID: <1727160095.9440eae99fdc21dbe62e9e6aa28f6b0bcce30f70.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/metadata.xml dev-python/rapidfuzz/rapidfuzz-3.10.0.ebuild
X-VCS-Directories: dev-python/rapidfuzz/
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: 9440eae99fdc21dbe62e9e6aa28f6b0bcce30f70
X-VCS-Branch: master
Date: Tue, 24 Sep 2024 06:41:51 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 82550de3-2f38-4341-ba7f-0725e50e69ef
X-Archives-Hash: e0b688214d277cd844f3166e1016af4a

commit:     9440eae99fdc21dbe62e9e6aa28f6b0bcce30f70
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 24 05:36:28 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Sep 24 06:41:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9440eae9

dev-python/rapidfuzz: Bump to 3.10.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/rapidfuzz/Manifest                |  1 +
 dev-python/rapidfuzz/metadata.xml            |  2 +-
 dev-python/rapidfuzz/rapidfuzz-3.10.0.ebuild | 57 ++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+), 1 deletion(-)

diff --git a/dev-python/rapidfuzz/Manifest b/dev-python/rapidfuzz/Manifest
index aeacfac51ea5..34f3f6741e2c 100644
--- a/dev-python/rapidfuzz/Manifest
+++ b/dev-python/rapidfuzz/Manifest
@@ -1,2 +1,3 @@
+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

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..833f7d5ba897
--- /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 ~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
+}