* [gentoo-commits] repo/gentoo:master commit in: dev-python/levenshtein/files/, dev-python/levenshtein/
@ 2025-03-02 3:07 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2025-03-02 3:07 UTC (permalink / raw
To: gentoo-commits
commit: 13db669cd30e4d47579eac6d045ebe2c13f97b1d
Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sat Mar 1 18:46:29 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar 2 02:33:03 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13db669c
dev-python/levenshtein: add 0.27.0
Bug: https://bugs.gentoo.org/946989
Bug: https://bugs.gentoo.org/950453
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40837
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/levenshtein/Manifest | 1 +
....27.0-fix-scikit-build-core-0.11-breakage.patch | 51 +++++++++++++++++++++
dev-python/levenshtein/levenshtein-0.27.0.ebuild | 52 ++++++++++++++++++++++
3 files changed, 104 insertions(+)
diff --git a/dev-python/levenshtein/Manifest b/dev-python/levenshtein/Manifest
index f3d04f66f18c..f13678442371 100644
--- a/dev-python/levenshtein/Manifest
+++ b/dev-python/levenshtein/Manifest
@@ -1 +1,2 @@
DIST Levenshtein-0.26.1.gh.tar.gz 38429 BLAKE2B d217bf620f5ebe68a50230f7ce91f292f0a9cd9781b29a9e328e1e788d2d2f2ee71362a1ab660794f6adfa7e7267d9bc3685e9460754354226a6b964affd0ade SHA512 589b1f404108f488caf880063f20ee9c6a2033b0a2cd819352bf15e285ea8537c1dc8117de70679f720fd3da47546f7e0e5c620e4da8cf09bf8df9b119e6abc9
+DIST Levenshtein-0.27.0.gh.tar.gz 38338 BLAKE2B 2f4942907f5ccd1d9b521bf83fe0da93989825a9cdd12b768ccdc9213c5d47cebdf5f02cda6a21b9c6b41e02a4d755165d8ec234861aedb6a68ccb112f05510e SHA512 d66aea6b30365e43aa8a0492b15830872c422c8097c24d64a4b45756c28b74f7794363e332b9a13321e30728626ecdb9ffc8465f7c2f573a5fab27c735d5a5f6
diff --git a/dev-python/levenshtein/files/levenshtein-0.27.0-fix-scikit-build-core-0.11-breakage.patch b/dev-python/levenshtein/files/levenshtein-0.27.0-fix-scikit-build-core-0.11-breakage.patch
new file mode 100644
index 000000000000..62caf04314fc
--- /dev/null
+++ b/dev-python/levenshtein/files/levenshtein-0.27.0-fix-scikit-build-core-0.11-breakage.patch
@@ -0,0 +1,51 @@
+https://bugs.gentoo.org/950453
+https://github.com/rapidfuzz/Levenshtein/pull/72
+
+From f5e782d3efd640be48c59f2b7efa4e19466476a9 Mon Sep 17 00:00:00 2001
+From: Cristian Le <git@lecris.dev>
+Date: Fri, 28 Feb 2025 13:20:27 +0100
+Subject: [PATCH 1/2] fix: pyproject.toml metadata
+
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -26,6 +26,8 @@ classifiers=[
+ "Programming Language :: Python :: 3.13",
+ "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
+ ]
++
++[project.urls]
+ Homepage = "https://github.com/rapidfuzz/Levenshtein"
+ Documentation = "https://rapidfuzz.github.io/Levenshtein/"
+ Repository = "https://github.com/rapidfuzz/Levenshtein.git"
+
+From 2da6de08ce367858c29602a059d72427a4b15de6 Mon Sep 17 00:00:00 2001
+From: Cristian Le <git@lecris.dev>
+Date: Fri, 28 Feb 2025 16:31:56 +0100
+Subject: [PATCH 2/2] Use PEP639 license
+
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,6 +1,6 @@
+ [build-system]
+ requires = [
+- "scikit-build-core>=0.10.7",
++ "scikit-build-core>=0.11",
+ "Cython>=3.0.11,<3.1.0"
+ ]
+ build-backend = "scikit_build_core.build"
+@@ -17,6 +17,7 @@ authors = [
+ ]
+ description = "Python extension for computing string edit distances and similarities."
+ readme = "README.md"
++license = "GPL-2.0-or-later"
+ classifiers=[
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.9",
+@@ -24,7 +25,6 @@ classifiers=[
+ "Programming Language :: Python :: 3.11",
+ "Programming Language :: Python :: 3.12",
+ "Programming Language :: Python :: 3.13",
+- "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
+ ]
+
+ [project.urls]
diff --git a/dev-python/levenshtein/levenshtein-0.27.0.ebuild b/dev-python/levenshtein/levenshtein-0.27.0.ebuild
new file mode 100644
index 000000000000..4eaa26d45844
--- /dev/null
+++ b/dev-python/levenshtein/levenshtein-0.27.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=scikit-build-core
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1
+
+MY_P=${P^}
+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
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+DEPEND="
+ <dev-cpp/rapidfuzz-cpp-4
+ >=dev-cpp/rapidfuzz-cpp-3.2.0
+"
+RDEPEND="
+ <dev-python/rapidfuzz-4.0.0[${PYTHON_USEDEP}]
+ >=dev-python/rapidfuzz-3.9.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ >=dev-python/cython-3.0.11[${PYTHON_USEDEP}]
+ >=dev-python/scikit-build-core-0.11[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+ "${FILESDIR}"/levenshtein-0.27.0-fix-scikit-build-core-0.11-breakage.patch
+)
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # sterilize build flags
+ sed -i -e '/CMAKE_INTERPROCEDURAL_OPTIMIZATION/d' CMakeLists.txt || die
+
+ distutils-r1_src_prepare
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-02 3:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-02 3:07 [gentoo-commits] repo/gentoo:master commit in: dev-python/levenshtein/files/, dev-python/levenshtein/ Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox