git: 8f518d5f9273 - main - math/py-edit-distance: New port: Computing edit distance on arbitrary Python sequences
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jul 2026 16:35:41 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8f518d5f9273959354aae5aeaedbfab3bc6cbfef
commit 8f518d5f9273959354aae5aeaedbfab3bc6cbfef
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-09 15:42:33 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-09 16:35:37 +0000
math/py-edit-distance: New port: Computing edit distance on arbitrary Python sequences
---
math/Makefile | 1 +
math/py-edit-distance/Makefile | 20 ++++++++++++++++++++
math/py-edit-distance/distinfo | 3 +++
math/py-edit-distance/pkg-descr | 4 ++++
4 files changed, 28 insertions(+)
diff --git a/math/Makefile b/math/Makefile
index b87aa0cc97cd..9958a878245a 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -998,6 +998,7 @@
SUBDIR += py-docplex
SUBDIR += py-ducc0
SUBDIR += py-ecos
+ SUBDIR += py-edit-distance
SUBDIR += py-emcee
SUBDIR += py-evalidate
SUBDIR += py-faiss
diff --git a/math/py-edit-distance/Makefile b/math/py-edit-distance/Makefile
new file mode 100644
index 000000000000..90338b8f77db
--- /dev/null
+++ b/math/py-edit-distance/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= edit-distance
+PORTVERSION= 1.0.9
+CATEGORIES= math python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= edit_distance-${PORTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Computing edit distance on arbitrary Python sequences
+WWW= https://github.com/belambert/edit-distance
+
+LICENSE= APACHE20
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/math/py-edit-distance/distinfo b/math/py-edit-distance/distinfo
new file mode 100644
index 000000000000..6a22d334db43
--- /dev/null
+++ b/math/py-edit-distance/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783090783
+SHA256 (edit_distance-1.0.9.tar.gz) = 074c29ec00c8e74ff2627759cf3d40aa2d95cd24a0cde4acc62c820df9f3af26
+SIZE (edit_distance-1.0.9.tar.gz) = 10041
diff --git a/math/py-edit-distance/pkg-descr b/math/py-edit-distance/pkg-descr
new file mode 100644
index 000000000000..6322adf753c5
--- /dev/null
+++ b/math/py-edit-distance/pkg-descr
@@ -0,0 +1,4 @@
+Edit Distance computes edit distance (Levenshtein distance) on
+arbitrary Python sequences. It provides efficient implementations
+of sequence comparison algorithms, supporting custom cost functions
+and operations for measuring similarity between sequences.