Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 2026 07:21:14 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f1b24b81f5be - main - textproc/py-simplebayes: update 1.5=?utf-8?Q?=2E8 =E2=86=92 3?=.2.0
Message-ID:  <69d9f66a.3a193.56f3546d@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

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

commit f1b24b81f5bee41cb40bd2dbf78174db416966fd
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-04-11 04:59:45 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-04-11 07:21:06 +0000

    textproc/py-simplebayes: update 1.5.8 → 3.2.0
---
 textproc/py-simplebayes/Makefile                   | 32 ++++++++++++++++++++--
 textproc/py-simplebayes/distinfo                   |  6 ++--
 textproc/py-simplebayes/files/patch-pyproject.toml | 11 ++++++++
 3 files changed, 43 insertions(+), 6 deletions(-)

diff --git a/textproc/py-simplebayes/Makefile b/textproc/py-simplebayes/Makefile
index 9b77ba363134..bd6de5a01c04 100644
--- a/textproc/py-simplebayes/Makefile
+++ b/textproc/py-simplebayes/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	simplebayes
-PORTVERSION=	1.5.8
-PORTREVISION=	1
+DISTVERSION=	3.2.0
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,11 +11,38 @@ WWW=		https://github.com/hickeroar/simplebayes
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}fastapi>=0.116.1:www/py-fastapi@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}snowballstemmer>=3.0.1:textproc/py-snowballstemmer@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}uvicorn>=0.35.0:www/py-uvicorn@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	autoplist distutils
+USE_PYTHON=	pep517 concurrent autoplist pytest
+
 NO_ARCH=	yes
 
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+# FreeBSD's packaged snowballstemmer lacks Yiddish stemming support; disable
+# upstream's coverage gate as well because port tests only need functional checks.
+TEST_ARGS=	--no-cov \
+		tests/test_api_endpoints.py \
+		tests/test_cli.py \
+		tests/test_cli_integration.py \
+		tests/test_concurrency.py \
+		tests/test_contracts.py \
+		tests/test_persistence.py \
+		tests/test_runtime_readiness.py \
+		tests/test_tokenization.py \
+		-k 'not test_create_tokenizer_language_yiddish_has_stopwords'
+#TEST_WRKSRC=	${WRKSRC}/tests
+
 post-extract: # https://github.com/hickeroar/simplebayes/issues/3
 	@truncate -s 0 ${WRKSRC}/README.rst
 
+# tests as of 3.2.0:
+# Results (3.30s):
+#        273 passed
+#          2 warnings
+
 .include <bsd.port.mk>
diff --git a/textproc/py-simplebayes/distinfo b/textproc/py-simplebayes/distinfo
index 7874dd8cc88d..f82d0039b624 100644
--- a/textproc/py-simplebayes/distinfo
+++ b/textproc/py-simplebayes/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1532798910
-SHA256 (simplebayes-1.5.8.tar.gz) = 363418c0ef185ac2158ebbd6d8afb45aa997254fcb809a73ed20a7d5dccf8b85
-SIZE (simplebayes-1.5.8.tar.gz) = 5972
+TIMESTAMP = 1775882477
+SHA256 (simplebayes-3.2.0.tar.gz) = 2d3e801409e88a1db76a070e1a28f9dbd1068102cb2d2e6967854abc082aa896
+SIZE (simplebayes-3.2.0.tar.gz) = 70833
diff --git a/textproc/py-simplebayes/files/patch-pyproject.toml b/textproc/py-simplebayes/files/patch-pyproject.toml
new file mode 100644
index 000000000000..3627ccd8ca11
--- /dev/null
+++ b/textproc/py-simplebayes/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2026-04-11 04:41:31 UTC
++++ pyproject.toml
+@@ -7,8 +7,6 @@ readme = "README.md"
+ version = "3.2.0"
+ description = "A memory-based, optional-persistence naïve bayesian text classifier."
+ readme = "README.md"
+-license = "MIT"
+-license-files = ["LICENSE"]
+ requires-python = ">=3.10"
+ authors = [
+     {name = "Ryan Vennell", email = "ryan.vennell@gmail.com"}


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d9f66a.3a193.56f3546d>