From patchwork Mon Dec 12 14:27:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Wurmus X-Patchwork-Id: 45197 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7B15427BBF1; Mon, 12 Dec 2022 14:29:03 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CC99727BBE9 for ; Mon, 12 Dec 2022 14:29:00 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4jmw-0005jP-Uy; Mon, 12 Dec 2022 09:28:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4jml-0005TP-Gc for guix-patches@gnu.org; Mon, 12 Dec 2022 09:28:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4jml-0006Cj-8y for guix-patches@gnu.org; Mon, 12 Dec 2022 09:28:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p4jml-0007UW-2f for guix-patches@gnu.org; Mon, 12 Dec 2022 09:28:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60009] [PATCH 02/18] gnu: python-hyperopt: Update to 0.2.7. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Dec 2022 14:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60009 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 60009@debbugs.gnu.org Cc: Ricardo Wurmus Received: via spool by 60009-submit@debbugs.gnu.org id=B60009.167085525128653 (code B ref 60009); Mon, 12 Dec 2022 14:28:02 +0000 Received: (at 60009) by debbugs.gnu.org; 12 Dec 2022 14:27:31 +0000 Received: from localhost ([127.0.0.1]:53262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4jmE-0007S5-MT for submit@debbugs.gnu.org; Mon, 12 Dec 2022 09:27:31 -0500 Received: from sender3-of-o57.zoho.com ([136.143.184.57]:21736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4jmD-0007Rs-3v for 60009@debbugs.gnu.org; Mon, 12 Dec 2022 09:27:29 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1670855246; cv=none; d=zohomail.com; s=zohoarc; b=Edp0D38R4IW3mA0aKkFBBsKseV5O7a021maiNEF9bXSDkfL0vE8Whlhtz0yRJ5WjX0S2d2HSI/OmT0DvPIav6uWMwqpN7SE9yA56vnqJg34j9zsGKlljMa7s/c9EUUsisUjGqYlkKDGtZ6r5JPJs+Y1Di/PPXlxnQTH2pXqq4HM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670855246; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=KWmVAVCjSRVQaXzflRd6IXdJBNoQFS3pft6odi6wybA=; b=Wqh7H0EPh+1lFtVQrTTKR/b1VYq8di6k+IUw9cDme6isG7DjYzE4aO4fo4kkkrxyXD4Rb5MwNsXQrhZik7DhdAQcI0DCn2qj4TMDEyJFVfCX/FoiTp9Lao6U1aGyCiAq/cC9gMoWCRQFzVVk75Cl59Tk9XP9dsJFJkzWldfO23w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1670855246; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=KWmVAVCjSRVQaXzflRd6IXdJBNoQFS3pft6odi6wybA=; b=G4Go2qX4fc12Gf0maE+TCa0v22aq40AO1HpBkG6p2fi4vYxY+bXrEA4rzCWyeeAS 6VCh0Wg6WMX+e6SqHS0+IG6d0Vo1zWmeVuw7aRabDWLYKNkqiRkAuhNdJ5vjMyL48Dg bgzeHSeVrD/a73NTcttjJT+PLzxijy8YdKbtxC68= Received: from localhost (48-111-142-46.pool.kielnet.net [46.142.111.48]) by mx.zohomail.com with SMTPS id 1670855243841677.1003526184394; Mon, 12 Dec 2022 06:27:23 -0800 (PST) From: Ricardo Wurmus Date: Mon, 12 Dec 2022 15:27:00 +0100 Message-Id: <20221212142716.9460-2-rekado@elephly.net> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221212142716.9460-1-rekado@elephly.net> References: <87h6y03dkr.fsf@elephly.net> <20221212142716.9460-1-rekado@elephly.net> MIME-Version: 1.0 X-ZohoMailClient: External X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/machine-learning.scm (python-hyperopt): Update to 0.2.7. [arguments]: Adjust check phase; disable test_distribution_rvs test. [build-system]: Use pyproject-build-system. [propagated-inputs]: Add python-py4j. [native-inputs]: Remove python-ipython and python-ipyparallel. --- gnu/packages/machine-learning.scm | 36 ++++++++++++++++--------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index fc8de01066..3dbe54a24a 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -1552,35 +1552,39 @@ (define-public vowpal-wabbit (define-public python-hyperopt (package (name "python-hyperopt") - (version "0.2.5") + (version "0.2.7") (source (origin (method url-fetch) (uri (pypi-uri "hyperopt" version)) (sha256 - (base32 "1k4ma8ci0bxghw7g4ms944zak1pi83yv2d6bxd7fcslm1zalfq5w")))) - (build-system python-build-system) + (base32 "0jd1ghmm423kbhjvd6pxq92y5vkz25390687fcnd7fshh3jrmy0v")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases + (list + #:phases + '(modify-phases %standard-phases (replace 'check - (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (lambda* (#:key tests? #:allow-other-keys) (when tests? - (add-installed-pythonpath inputs outputs) - (invoke "python" "-m" "pytest" "--ignore" + (invoke "python" "-m" "pytest" ;; Needs python-pyspark. - "hyperopt/tests/test_spark.py" + "--ignore" "hyperopt/tests/integration/test_spark.py" ;; Needs both python-scikit-learn and python-lightgbm. - "--ignore" "hyperopt/tests/test_atpe_basic.py" + "--ignore" "hyperopt/tests/unit/test_atpe_basic.py" ;; The tests below need python-lightgbm. - "-k" (string-append "not test_branin" - " and not test_distractor" - " and not test_q1lognormal" - " and not test_quadratic1" - " and not test_twoarms")))))))) + "-k" + (string-append "not test_branin" + " and not test_distractor" + " and not test_q1lognormal" + " and not test_quadratic1" + " and not test_twoarms" + ;; XXX Type error with this version of scipy + " and not test_distribution_rvs")))))))) (propagated-inputs (list python-cloudpickle python-future + python-py4j python-networkx python-numpy python-scipy @@ -1588,8 +1592,6 @@ (define-public python-hyperopt python-tqdm)) (native-inputs (list python-black - python-ipython - python-ipyparallel python-nose python-pymongo python-pytest))