From 9c3d4b89d736cfb828ad53fce495a2c6d535a3f3 Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Fri, 21 Aug 2026 15:56:51 +0200 Subject: machine-learning: python-optuna: Update to 4.9.0, fix build. * guix-science/packages/machine-learning.scm (python-optuna) [source]: Update to 4.9.0. [arguments]<#:test-flags>: Run core tests only. [propagated-inputs]: Set to required dependencies only. --- guix-science/packages/machine-learning.scm | 48 +++++++++--------------------- 1 file changed, 14 insertions(+), 34 deletions(-) diff --git a/guix-science/packages/machine-learning.scm b/guix-science/packages/machine-learning.scm index 262bf11..62097ff 100644 --- a/guix-science/packages/machine-learning.scm +++ b/guix-science/packages/machine-learning.scm @@ -791,7 +791,7 @@ a delightful developer experience.") (define-public python-optuna (package (name "python-optuna") - (version "4.6.0") + (version "4.9.0") (source (origin (method git-fetch) @@ -800,22 +800,21 @@ a delightful developer experience.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "18yh7l5gzcfcw96yqf9ba1vxyya4vg6c65hjdbq09b63jwrr5h2m")))) + (base32 "0hkjp853x93ckmw8mjar7l9dqi0xdrnhbgd4wiq5ycmknkj75106")))) (build-system pyproject-build-system) (arguments (list #:test-flags - #~(list - ;; Ignore slow tests. - "-m" - "not slow" - ;; Ignore grpc and redis tests: - ;; * grpc: Yields timeout error, - ;; * redis: Yields unknown command. - "-k" - "not (grpc or redis)" - ;; Requires python-kaleido. - "--ignore=tests/visualization_tests") + #~(list "tests/test_callbacks.py" + "tests/test_cli.py" + "tests/test_convert_positional_args.py" + "tests/test_deprecated.py" + "tests/test_distributions.py" + "tests/test_experimental.py" + "tests/test_imports.py" + "tests/test_logging.py" + "tests/test_multi_objective.py" + "tests/test_transform.py") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-pytest-configuration @@ -825,32 +824,13 @@ a delightful developer experience.") (("--color=yes") "--color=auto"))))))) (propagated-inputs (list python-alembic - python-boto3 - python-cmaes python-colorlog - python-google-cloud-storage - python-greenlet - python-grpcio - python-matplotlib python-numpy python-packaging - python-pandas - ;; python-google-cloud-storage propagates - ;; default python-protobuf, use it to - ;; avoid collision. - python-protobuf - python-plotly - python-pytorch python-pyyaml - python-redis - python-scikit-learn - python-scipy - ;; python-alembic propagates - ;; python-sqlalchemy-2, use it to avoid - ;; collision. - python-sqlalchemy-2 + python-sqlalchemy python-tqdm)) - (native-inputs (list python-fakeredis python-moto python-pytest + (native-inputs (list python-fakeredis python-pandas python-pytest python-setuptools)) (home-page "https://optuna.org/") (synopsis "Automatic hyperparameter optimization framework") -- cgit v1.2.3