git: eefec8b899e9 - main - math/py-pytensor: update 3.1.2 → 3.3.2

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 19 Sep 2026 22:42:50 UTC
The branch main has been updated by yuri:

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

commit eefec8b899e90264da10595090d380e3bcaa13c0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-19 19:35:02 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-19 22:42:21 +0000

    math/py-pytensor: update 3.1.2 → 3.3.2
---
 math/py-pytensor/Makefile                   | 19 +++++++++++--------
 math/py-pytensor/distinfo                   |  6 +++---
 math/py-pytensor/files/patch-pyproject.toml |  7 +++++--
 3 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/math/py-pytensor/Makefile b/math/py-pytensor/Makefile
index 89d2f5490dcb..1e2c2d48a71a 100644
--- a/math/py-pytensor/Makefile
+++ b/math/py-pytensor/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	pytensor
-DISTVERSION=	3.1.2
+DISTVERSION=	3.3.2
 CATEGORIES=	math python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -16,18 +16,21 @@ BUILD_DEPENDS=	${PY_SETUPTOOLS} \
 		${PYTHON_PKGNAMEPREFIX}numpy>=2.0:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}versioneer>=0.29:devel/py-versioneer@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cons>0:devel/py-cons@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}etuples>0:devel/py-etuples@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}filelock>=3.15:sysutils/py-filelock@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}logical-unification>0:math/py-logical-unification@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}miniKanren>0:devel/py-miniKanren@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}filelock>=3.15:sysutils/py-filelock@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}numba>=0.58:devel/py-numba@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}numpy>=2.0:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}scipy>=1:science/py-scipy@${PY_FLAVOR}
+RUN_DEPENDS_kanren=	\
+		${PYTHON_PKGNAMEPREFIX}cons>0:devel/py-cons@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}etuples>0:devel/py-etuples@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}logical-unification>0:math/py-logical-unification@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}miniKanren>0:devel/py-miniKanren@${PY_FLAVOR}
+RUN_DEPENDS+=	${RUN_DEPENDS_kanren}
 
 USES=		python
 USE_PYTHON=	pep517 cython autoplist pytest # tests fail to run, see https://github.com/pymc-devs/pytensor/issues/355
-TEST_ARGS=	tests/test_basic.py tests/test_config.py
+TEST_ENV=	${MAKE_ENV} LD_LIBRARY_PATH=/lib
+TEST_ARGS=	--disable-plugin-autoload tests/test_basic.py tests/test_config.py
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pytensor/scan/scan_perform${PYTHON_TAG}.so
@@ -37,6 +40,6 @@ post-install:
 # BUG: sdist omits test helpers such as tests/unittest_tools.py and
 # tests/graph/utils.py, so run only tests present in the distfile.
 
-# tests as of 3.1.2: 19 passed in 8.21s
+# tests as of 3.3.2: 19 passed, 1 warning in 8.93s
 
 .include <bsd.port.mk>
diff --git a/math/py-pytensor/distinfo b/math/py-pytensor/distinfo
index d21eb3a19901..83982b92e5e9 100644
--- a/math/py-pytensor/distinfo
+++ b/math/py-pytensor/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1783459689
-SHA256 (pytensor-3.1.2.tar.gz) = 2b0eafee4a431654dc3b836bd904211e4dccf8756820ea415d46b82d2d1c26ea
-SIZE (pytensor-3.1.2.tar.gz) = 5189499
+TIMESTAMP = 1789490570
+SHA256 (pytensor-3.3.2.tar.gz) = 6d340a333ff6bfb2f7962a1d7647ab64225518073b9f49f53590db763ed81fa2
+SIZE (pytensor-3.3.2.tar.gz) = 5249207
diff --git a/math/py-pytensor/files/patch-pyproject.toml b/math/py-pytensor/files/patch-pyproject.toml
index ed24cc45f332..afa890b6c5d2 100644
--- a/math/py-pytensor/files/patch-pyproject.toml
+++ b/math/py-pytensor/files/patch-pyproject.toml
@@ -1,3 +1,6 @@
+-- Drop PEP 639 license metadata until the FreeBSD pyproject toolchain handles it.
+-- Remove the setuptools runtime dependency because the port only needs setuptools to build.
+
 --- pyproject.toml.orig	2025-10-07 21:08:35 UTC
 +++ pyproject.toml
 @@ -14,8 +14,6 @@ readme = "README.rst"
@@ -9,11 +12,11 @@
  classifiers = [
      "Development Status :: 6 - Mature",
      "Intended Audience :: Education",
-@@ -47,7 +45,6 @@ dependencies = [
+@@ -46,7 +44,6 @@ dependencies = [
      "differentiation",
  ]
  dependencies = [
 -    "setuptools>=59.0.0",
      "scipy>=1,<2",
-     "numpy>=1.17.0",
+     "numpy>=2.0",
      "filelock>=3.15",