git: 8ba200d0c676 - main - misc/py-optuna: update 3.6.1 → 4.0.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 03 Sep 2024 08:36:15 UTC
The branch main has been updated by yuri:

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

commit 8ba200d0c676492b40c646cdcd96e0a12e2e4859
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-09-03 08:12:41 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-09-03 08:35:55 +0000

    misc/py-optuna: update 3.6.1 → 4.0.0
    
    Reported by:    portscout
---
 misc/py-optuna/Makefile | 7 ++++---
 misc/py-optuna/distinfo | 6 +++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/misc/py-optuna/Makefile b/misc/py-optuna/Makefile
index e4e37980ad08..5f04910d845d 100644
--- a/misc/py-optuna/Makefile
+++ b/misc/py-optuna/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	optuna
-DISTVERSION=	3.6.1
-PORTREVISION=	1
+DISTVERSION=	4.0.0
 CATEGORIES=	misc # machine-learning
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -30,8 +29,10 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR}
 		# tests also depend on Kaleido but it isn't clear how to build it
 
 USES=		python
-USE_PYTHON=	pep517 concurrent autoplist pytest
+USE_PYTHON=	pep517 concurrent autoplist pytest # 2 tests fail, see https://github.com/optuna/optuna/issues/5658
 
 NO_ARCH=	yes
 
+TEST_ENV=	${MAKE_ENV} PATH=${STAGEDIR}${PREFIX}/bin:${PATH} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
 .include <bsd.port.mk>
diff --git a/misc/py-optuna/distinfo b/misc/py-optuna/distinfo
index ad21e8f1a05b..d6ae50a12663 100644
--- a/misc/py-optuna/distinfo
+++ b/misc/py-optuna/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1719076429
-SHA256 (optuna-3.6.1.tar.gz) = 146e530b57b4b9afd7526b3e642fbe65491f7e292b405913355f8e438e361ecf
-SIZE (optuna-3.6.1.tar.gz) = 292748
+TIMESTAMP = 1725348294
+SHA256 (optuna-4.0.0.tar.gz) = 844949f09e2a7353ab414e9cfd783cf0a647a65fc32a7236212ed6a37fe08973
+SIZE (optuna-4.0.0.tar.gz) = 280224