From patchwork Tue May 16 23:23:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 50067 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 4959327BBE2; Wed, 17 May 2023 00:26:03 +0100 (BST) 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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 4CD4E27BBEC for ; Wed, 17 May 2023 00:26:00 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pz42X-0005NI-GW; Tue, 16 May 2023 19:25:09 -0400 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 1pz42V-0005LB-2W for guix-patches@gnu.org; Tue, 16 May 2023 19:25:07 -0400 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 1pz42U-0002Rl-Qv for guix-patches@gnu.org; Tue, 16 May 2023 19:25:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pz42U-0004Im-N5 for guix-patches@gnu.org; Tue, 16 May 2023 19:25:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63542] [PATCH 13/19] gnu: python-pynbody: Update to 1.3.1, simplify. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 May 2023 23:25:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63542 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63542@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 63542-submit@debbugs.gnu.org id=B63542.168427945016341 (code B ref 63542); Tue, 16 May 2023 23:25:06 +0000 Received: (at 63542) by debbugs.gnu.org; 16 May 2023 23:24:10 +0000 Received: from localhost ([127.0.0.1]:48282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pz41Z-0004FO-CS for submit@debbugs.gnu.org; Tue, 16 May 2023 19:24:09 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:56525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pz41S-0004Bi-IQ for 63542@debbugs.gnu.org; Tue, 16 May 2023 19:24:03 -0400 Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-3063891d61aso46803f8f.0 for <63542@debbugs.gnu.org>; Tue, 16 May 2023 16:24:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684279437; x=1686871437; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gH0uee+WOHz0KwKQoCrBUsohG1nwKmGh9XiwkIRIspY=; b=FefZf0A1VGygpKkKIfq+N6UkRCwcca8rkQVZG8yWyVEQmxylmj7V3b2KYTftQ85SLm dG+JhSYP76kjEoJ6H33qEUT62A9b4zSFCy1GSz9zpnyyw7Ac6IJNYHpgmkNyMp2/36Am eHuLgIXZqJ3hbZvbBt4CmyMCu4FCR4elQZkFRcBV32S9/j0wSfkkVAuWlgiG/6q1e5Fa Gw4BYcBS6ZCx60eeVoMJqB4gbQ3FyxzeiLcc2xmUeR0YI6GcefDAsWZ+rJIGCns0WpJu Vtnzv0OAKU9mokktKLqXihbVGZAO3k3WCKDmO5g6OqpwQdhC6iAnA6geD9o/IxjR8Id/ yvBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684279437; x=1686871437; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gH0uee+WOHz0KwKQoCrBUsohG1nwKmGh9XiwkIRIspY=; b=OwXEh/D9GrafuKa9iBuCHPqRmMph759wmM2pUxvQOw8HY/D8xPW/chyixDSkp2hNG7 Y5BLrnSXrfHYl/R8wvHnT5W1uXeVGqA6uZ+XJ0iA5Sx3xgqiZzkP04sLbjc9MBraJpv/ Xp3NJmdIaAvQQBRLKwbvXSXEwBjef5vS+8FSw0wGBbqYpglcxQgBCYMYMXWHargVFXJa AqW9cjqjPWZeX5Lo8TdK4xOtMlmC/EqQTCQzfuZBaeO0R3GVPY8P68Ck8S1Ze4Uyva8v 1FqvGH6iBvjUpI0PHn0SRvxO++tUaDFI652pUOsGzWbwvevbKryixgkc53nGSYSlVADl YD5w== X-Gm-Message-State: AC+VfDwDNihyTxaAlFGcZfg2DXMIPde8TmwyuqIAED9ddwopRvHSSEQR OaFHqsB5MPySwW6IFcSwTe2iVWHNvnI= X-Google-Smtp-Source: ACHHUZ5z2znVknA/XEGcJN5HcQ42ub0ILA5YopQTaP5M1Y5dpjpnNaSRaGUgWAh21TaJxnV5/UYzWw== X-Received: by 2002:adf:f211:0:b0:309:3ce4:d4d7 with SMTP id p17-20020adff211000000b003093ce4d4d7mr650018wro.56.1684279436948; Tue, 16 May 2023 16:23:56 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id n10-20020a5d67ca000000b0030796e103a1sm949609wrw.5.2023.05.16.16.23.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 16:23:56 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 17 May 2023 00:23:42 +0100 Message-Id: <60d6982378d94467982a1ba02100ceb57ccedd2b.1684276665.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 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/astronomy.scm (python-pynbody): Update to 1.3.1, simplify package. [build-system]: Shift to pyproject-build-system. [arguments]: Do not modify standard phases, use #:test-flags instead. --- gnu/packages/astronomy.scm | 77 +++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 43 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 5f5de193d0..058d3a6dcc 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -2603,55 +2603,46 @@ (define-public python-pyerfa (define-public python-pynbody (package (name "python-pynbody") - (version "1.2.3") + (version "1.3.1") (source (origin (method url-fetch) (uri (pypi-uri "pynbody" version)) (sha256 - (base32 "1jxwk2s4qz1znvyak2lj7ld01kl1jh87xp81ki7a8dz1gcy93fkx")))) - (build-system python-build-system) + (base32 "1yp7ja66zqmbnh7bbwbyimxq1nkrmjrcif2rzfm1hswm0fp2fbga")))) + (build-system pyproject-build-system) (arguments - (list #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-tests-require-testdata - (lambda _ - ;; Disable tests which need to download additional 1.0GiB+ - ;; of test data archive from - ;; http://star.ucl.ac.uk/~app/testdata.tar.gz - ;; https://github.com/pynbody/pynbody/blob/ \ - ;; f4bd482dc47532831b3ec115c7cb07149d61bfc5/ \ - ;; .github/workflows/build-test.yaml#L41 - (with-directory-excursion "tests" - (for-each delete-file - '("gravity_test.py" - "adaptahop_test.py" - "ahf_halos_test.py" - "array_test.py" - "bridge_test.py" - "family_test.py" - "partial_tipsy_test.py" - "snapshot_test.py" - "test_profile.py" - "gadget_test.py" - "gadgethdf_test.py" - "grafic_test.py" - "halotools_test.py" - "nchilada_test.py" - "ramses_new_ptcl_format_test.py" - "ramses_test.py" - "rockstar_test.py" - "sph_image_test.py" - "sph_smooth_test.py" - "subfind_test.py" - "subfindhdf_gadget4_test.py" - "tipsy_test.py"))))) - (replace 'check - (lambda* (#:key tests? inputs outputs #:allow-other-keys) - (when tests? - (add-installed-pythonpath inputs outputs) - (setenv "HOME" "/tmp") - (invoke "pytest" "-vv"))))))) + (list + #:test-flags + #~(list + ;; Disable tests which need to download additional 1.0GiB+ + ;; of test data archive from + ;; http://star.ucl.ac.uk/~app/testdata.tar.gz + ;; https://github.com/pynbody/pynbody/blob/ \ + ;; f4bd482dc47532831b3ec115c7cb07149d61bfc5/ \ + ;; .github/workflows/build-test.yaml#L41 + "--ignore=tests/gravity_test.py" + "--ignore=tests/adaptahop_test.py" + "--ignore=tests/ahf_halos_test.py" + "--ignore=tests/array_test.py" + "--ignore=tests/bridge_test.py" + "--ignore=tests/family_test.py" + "--ignore=tests/partial_tipsy_test.py" + "--ignore=tests/snapshot_test.py" + "--ignore=tests/test_profile.py" + "--ignore=tests/gadget_test.py" + "--ignore=tests/gadgethdf_test.py" + "--ignore=tests/grafic_test.py" + "--ignore=tests/halotools_test.py" + "--ignore=tests/nchilada_test.py" + "--ignore=tests/ramses_new_ptcl_format_test.py" + "--ignore=tests/ramses_test.py" + "--ignore=tests/rockstar_test.py" + "--ignore=tests/sph_image_test.py" + "--ignore=tests/sph_smooth_test.py" + "--ignore=tests/subfind_test.py" + "--ignore=tests/subfindhdf_gadget4_test.py" + "--ignore=tests/tipsy_test.py"))) (native-inputs (list python-cython python-pandas