From patchwork Wed Jun 21 06:33:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 51123 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 AED2A27BBE9; Wed, 21 Jun 2023 07:37:05 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, 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 5003927BBE2 for ; Wed, 21 Jun 2023 07:37:04 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBrRU-0001lr-M8; Wed, 21 Jun 2023 02:35:48 -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 1qBrR6-0001eF-Vx for guix-patches@gnu.org; Wed, 21 Jun 2023 02:35:35 -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 1qBrQp-00068H-UT for guix-patches@gnu.org; Wed, 21 Jun 2023 02:35:22 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBrQp-0007kl-KP; Wed, 21 Jun 2023 02:35:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64201] [PATCH 14/20] gnu: python-pyerfa: Fix tests. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, efraim@flashner.co.il, bavier@posteo.net, guix-patches@gnu.org Resent-Date: Wed, 21 Jun 2023 06:35:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64201 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64201@debbugs.gnu.org Cc: Sharlatan Hellseher , Andreas Enge , Efraim Flashner , Eric Bavier X-Debbugs-Original-Xcc: Andreas Enge , Efraim Flashner , Eric Bavier Received: via spool by 64201-submit@debbugs.gnu.org id=B64201.168732926529582 (code B ref 64201); Wed, 21 Jun 2023 06:35:07 +0000 Received: (at 64201) by debbugs.gnu.org; 21 Jun 2023 06:34:25 +0000 Received: from localhost ([127.0.0.1]:60373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBrQ8-0007gy-Jd for submit@debbugs.gnu.org; Wed, 21 Jun 2023 02:34:24 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:59782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBrQ2-0007e8-UC for 64201@debbugs.gnu.org; Wed, 21 Jun 2023 02:34:19 -0400 Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-3112c11fdc9so3556466f8f.3 for <64201@debbugs.gnu.org>; Tue, 20 Jun 2023 23:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687329253; x=1689921253; 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=YUw+dP2qp5OUyNdCcxtFMYCs9XB0oZyvxsrR1DqFtiw=; b=k5bWWIMe3XiOyeQiz1mTYVlw4U5YfL5kdbSKFijZMCkdNEfthCG3tNV9ThiuXdxAdV 41jjSWN0kCjxe6r34GaeB8HOcjUMxrwg5tu96UUHdC4blVhrVsXvXhWyc4Azb4YqkaN5 yWxcQcfsrE0JyAEkF0dKxkD4Ef1qknzf2iQ+nwgazqE49t+9JebadF/V+jbVWNhkj3mw 1tgklE2FjeEOjkiHXdVnTxkXQAYR3TgKYjxVqYEc4YhnqjtnbneV8pbMsHgTCzHYu2vF pgWLFSsgXmYlyNFLa1lqzZQsdW/OV8gvU4Blv9Fz8vWhpWKxxqdaSSzV4mHoPMPZ61Rd j/Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687329253; x=1689921253; 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=YUw+dP2qp5OUyNdCcxtFMYCs9XB0oZyvxsrR1DqFtiw=; b=G0a3M8/dL+TA403LW1NR2Go7DHNz+yp5KU65+e4Bf+U6OcwVxSVzVHTILKsH8B8rk0 xHIiZMoqTW9a1+aOD8M1tlyCy4mRcr2siJAQplWKM2OXhucN4UxJ948IkcfuPPaW4hWD P017nVB18mflloFoW32OEb6tR1+g70C46GoI2aW99flqNWV+yPtSmJiHcKjLPW5DjzmY jwXny6hrLWtZ9Paonn0G/JHp/BJ26ub8LqWFvYG8QcwKS9qWX4EPK8VwMM+vjnl2kOC6 cTVS407BIDlPSeiNSQiw7NS6G0TT3HsUiLhRpojXoBPuamMeo2rJNV1A9qX28ZuTwsqd w74w== X-Gm-Message-State: AC+VfDw6RPJHqh7q6GPwZPGz3hwz+bkBHTH5ckqqGDXx7hD5FFPHtDS3 YqPNCCasQoSjVuRSm0roL4QBA11Dje0= X-Google-Smtp-Source: ACHHUZ5QujQ6jS+pc7rdTq/Y8p/oT+vD53BNCSNx+3pxCk02vycKeo7ZI6hN73gFWX3nsymCd7avNw== X-Received: by 2002:adf:eb42:0:b0:30f:b7b4:3e55 with SMTP id u2-20020adfeb42000000b0030fb7b43e55mr8738887wrn.19.1687329253228; Tue, 20 Jun 2023 23:34:13 -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 r15-20020a5d52cf000000b0030af72bca98sm3553471wrv.103.2023.06.20.23.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 23:34:12 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 21 Jun 2023 07:33:53 +0100 Message-Id: <595e0877cca0d1b9a65e5c59cdb9651971154a5b.1687302523.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.40.1 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-pyerfa): Fix tests. [snippet]: Use G-expressions. [arguments]: Use G-expressions. Add new phase 'tests-preparation. --- gnu/packages/astronomy.scm | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 829ee6bcd4..514aa53258 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -3037,17 +3037,23 @@ (define-public python-pyerfa (base32 "0f8zykzxjsiwv5ibdn5asla2ng2xl0xdkrcrrd61j31mb3xbnzyp")) (modules '((guix build utils))) (snippet - '(begin - ;; Remove bundled submodule library. - (delete-file-recursively "liberfa") - #t)))) - (build-system python-build-system) + #~(begin + ;; Remove bundled submodule library. + (delete-file-recursively "liberfa"))))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-before 'build 'use-system-liberfa - (lambda _ - (setenv "PYERFA_USE_SYSTEM_LIBERFA" "1")))))) + (list + ;; Disable only one failing test: + ;; AttributeError: __warningregistry__ + #:test-flags #~(list "-k" "not test_errwarn_reporting") + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'use-system-liberfa + (lambda _ + (setenv "PYERFA_USE_SYSTEM_LIBERFA" "1"))) + (add-before 'check 'tests-preparation + (lambda _ + (invoke "python" "setup.py" "build_ext" "--inplace")))))) (native-inputs (list python-pytest-doctestplus python-pytest python-setuptools-scm)) (inputs