summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/py-optuna/Makefile7
-rw-r--r--misc/py-optuna/distinfo6
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