git: 969aad0ae3a2 - main - textproc/py-sacremoses: update 0.1.1 → 0.2.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 06 Sep 2026 17:50:41 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=969aad0ae3a2ccb25aa92b3e4e22885fb99e751a

commit 969aad0ae3a2ccb25aa92b3e4e22885fb99e751a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-06 15:59:27 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-06 17:50:24 +0000

    textproc/py-sacremoses: update 0.1.1 → 0.2.0
---
 textproc/py-sacremoses/Makefile  | 20 ++++++++++++--------
 textproc/py-sacremoses/distinfo  |  6 +++---
 textproc/py-sacremoses/pkg-descr |  2 ++
 3 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/textproc/py-sacremoses/Makefile b/textproc/py-sacremoses/Makefile
index 56dba0f3f173..f307cbd2c110 100644
--- a/textproc/py-sacremoses/Makefile
+++ b/textproc/py-sacremoses/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	sacremoses
-DISTVERSION=	0.1.1
+DISTVERSION=	0.2.0
 CATEGORIES=	textproc python # machine-learning
-#MASTER_SITES=	PYPI # no tests
+MASTER_SITES=	PYPI # no tests on PYPI, no latest tag in GH repo, use MASTER_SITES=PYPI here in order to keep updated, see https://github.com/hplt-project/sacremoses/issues/156
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -11,19 +11,23 @@ WWW=		https://github.com/hplt-project/sacremoses
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=7.1.2:devel/py-click@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}joblib>=1.1.0:devel/py-joblib@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}regex>=2020.1.8:textproc/py-regex@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tqdm>=4.64.0:misc/py-tqdm@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=8.0:devel/py-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}joblib>=1.2.0:devel/py-joblib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}regex>=2021.8.3:textproc/py-regex@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tqdm>=4.66.3:misc/py-tqdm@${PY_FLAVOR}
 
 USES=		python
 USE_PYTHON=	distutils autoplist pytest
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	hplt-project
+TEST_ARGS=	--disable-plugin-autoload \
+		--deselect=sacremoses/test/test_normalizer.py::TestNormalizer::test_moses_noralize_single_apostrophe
+
+#USE_GITHUB=	yes
+#GH_ACCOUNT=	hplt-project
 
 NO_ARCH=	yes
 
 # tests as of 0.1.1: 1 failed, 35 passed, 1 skipped in 15.70s, see https://github.com/hplt-project/sacremoses/issues/153
+# 0.2.0 is not easily testable due to missing tests on PYPI and missing tag in the GH repo
 
 .include <bsd.port.mk>
diff --git a/textproc/py-sacremoses/distinfo b/textproc/py-sacremoses/distinfo
index b06ad3a3bf45..58933c41f54f 100644
--- a/textproc/py-sacremoses/distinfo
+++ b/textproc/py-sacremoses/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1755454968
-SHA256 (hplt-project-sacremoses-0.1.1_GH0.tar.gz) = 139faad4800a5da04498e4b5c297a5a8e1c958877b59090715d8a3f90e0b9b76
-SIZE (hplt-project-sacremoses-0.1.1_GH0.tar.gz) = 889511
+TIMESTAMP = 1788710193
+SHA256 (sacremoses-0.2.0.tar.gz) = 5aec4792efc2726710243d3566b381990e6b678cb1fd7b9d2dae216b4b8f1b1e
+SIZE (sacremoses-0.2.0.tar.gz) = 868464
diff --git a/textproc/py-sacremoses/pkg-descr b/textproc/py-sacremoses/pkg-descr
index b2027d4eba1c..3c19ab50639c 100644
--- a/textproc/py-sacremoses/pkg-descr
+++ b/textproc/py-sacremoses/pkg-descr
@@ -1 +1,3 @@
 sacremoses is a Python port of Moses tokenizer, truecaser and normalizer.
+It supports tokenizer, truecaser, and normalizer operations commonly used in
+natural language processing pipelines.