From patchwork Wed Mar 20 22:27:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 62042 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 5404A27BBEC; Wed, 20 Mar 2024 22:31:39 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS 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 AA38427BBE2 for ; Wed, 20 Mar 2024 22:31:37 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rn4SR-0000yB-Dn; Wed, 20 Mar 2024 18:30:54 -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 1rn4SC-0000mE-IZ for guix-patches@gnu.org; Wed, 20 Mar 2024 18:30:36 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rn4SC-0005kj-5G for guix-patches@gnu.org; Wed, 20 Mar 2024 18:30:36 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rn4Sp-0005gN-Ln; Wed, 20 Mar 2024 18:31:15 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69924] [PATCH 28/49] gnu: python-astroquery: Update to 0.4.7. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, bavier@posteo.net, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Wed, 20 Mar 2024 22:31:15 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69924 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69924@debbugs.gnu.org Cc: Sharlatan Hellseher , Andreas Enge , Eric Bavier , Sharlatan Hellseher X-Debbugs-Original-Xcc: Andreas Enge , Eric Bavier , Sharlatan Hellseher Received: via spool by 69924-submit@debbugs.gnu.org id=B69924.171097385821441 (code B ref 69924); Wed, 20 Mar 2024 22:31:15 +0000 Received: (at 69924) by debbugs.gnu.org; 20 Mar 2024 22:30:58 +0000 Received: from localhost ([127.0.0.1]:36380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4SX-0005Zg-HD for submit@debbugs.gnu.org; Wed, 20 Mar 2024 18:30:57 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:58440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4SN-0005V8-QC for 69924@debbugs.gnu.org; Wed, 20 Mar 2024 18:30:48 -0400 Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-414618e6820so2742085e9.0 for <69924@debbugs.gnu.org>; Wed, 20 Mar 2024 15:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710973742; x=1711578542; darn=debbugs.gnu.org; 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=7kL4Wljvtd/Wanto2Yc/O3OpLmNNQs36gGLkFukYCaQ=; b=RjqHthju2t794IxL1hemGyiWu9x1TrPjwqH+pLWsAQmL6hF1XNiic6oAtH5ZonFreB +yyq2yUIf0SWBYQcMLmUWJE6K2/aD+BlMpCxcC8IyT7Mwq/S88Fjxr8+ds41PVsq6LRu HaeDv0p2YxNfSMWQpY1zENHPI2Ay3KMdZRU+JXMro9RIXnDghNf3d6pT8fOT9sNrlCST y8X0WQTU0ia8EzWXI81UBb4Hb/yQszs8hON2h4eQQtFKKaEJDrRXKoqPvCouZ5aJbeMl 4nsX2WRdQe8qfOa9b/eWBs5pLSmtbRZP0mTfVcaw+mYfZYw65d3DEgSZGHtBzV5L29PL 1RtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710973742; x=1711578542; 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=7kL4Wljvtd/Wanto2Yc/O3OpLmNNQs36gGLkFukYCaQ=; b=ZfORNawa/ybMchrYZmnft1fxljSv0hH7nUzaOdsKG3JhgoSVoOZer+lqj/jnOVLC1P zkcxdT1CV1uyxnNs9DL28gK8zZVOwZCa5Wk2LPtt1MyOjd0ann03b7UwX/sCM2bdC747 uhUaaUWdBhonfWjzkQ7JPMQpqooLCtxlbM6XGg6MVS7/GRYP/tVEsz+JjBRBBNox4Wlo 5x8YZVL0dQS8eLiVkceyvGIsiQkIiwrIE+XzE+yl3/ORvikpMS/8cDziQ6fGhCd6TPh6 dhTzQuuC4dDVnifX1IH+E/a9rI37ku86KH6a6ar1wDXnvhsHgAlhWAgbwDlfAFu8ZiLI ltSg== X-Gm-Message-State: AOJu0Yxiw14drK8YBejGDhN4SQG7vfORoVv0BnHWLw1eKpQT+eRVue2L hl5PKSvhnOmOnsgssV+pfGhVhZY4c8v63phQPi3EQdTTm13Wr4a8V1peBRUqvZE= X-Google-Smtp-Source: AGHT+IH1e4Skm5e5xGmOacu9e84ra/buiIENK5I5WBDQ4aTfYb7RwwD8plTYOK3NmzzRmBhZQn18fg== X-Received: by 2002:a05:600c:1c88:b0:414:24b:302a with SMTP id k8-20020a05600c1c8800b00414024b302amr5811892wms.29.1710973742596; Wed, 20 Mar 2024 15:29:02 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id fm22-20020a05600c0c1600b004147266a37dsm543921wmb.30.2024.03.20.15.29.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 15:29:02 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 20 Mar 2024 22:27:58 +0000 Message-ID: <723a2b917889f249f18648e4aaaa7d07ef7fbf81.1710967274.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.41.0 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-astroquery): Update to 0.4.7. [arguments] <#:test-flags>: Disable one failing test. <#:phases>: Remove 'prepare-test-environment phase. Add custom 'check phase. Change-Id: I159a9d765de7f8de00c4bf226febfc90d2ba6c76 --- gnu/packages/astronomy.scm | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index b3ce51c8df..efd70f5500 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1739,34 +1739,37 @@ (define-public python-astropy-iers-data (define-public python-astroquery (package (name "python-astroquery") - (version "0.4.6") + (version "0.4.7") (source (origin (method url-fetch) (uri (pypi-uri "astroquery" version)) (sha256 - (base32 "1vhkzsqlgn3ji5by2rdf2gwklhbyzvpzb1iglalhqjkkrdaaaz1h")))) + (base32 "1jbyfhqk74wsdjxzqi0hcrgc7ha4q8cyjx96nv6w9bjg1b5vlzq4")))) (build-system pyproject-build-system) (arguments (list #:test-flags #~(list "--pyargs" "astroquery" - "-m" "not remote_data") + "-m" "not remote_data" + ;; Some tests failed with parallel run, see + ;; . + ;; "-n" "auto" + "-k" (string-append + ;; Failed: DID NOT RAISE + "not test_raises_deprecation_warning")) #:phases #~(modify-phases %standard-phases - (add-before 'check 'prepare-test-environment - (lambda _ - (setenv "HOME" (getcwd)) ; some tests need a writable home - ;; To solve pytest/conftest issue. Pytest tries to load all - ;; files with word 'test' in them. - ;; - ;; ImportError while loading conftest ... - ;; _pytest.pathlib.ImportPathMismatchError: ... - ;; - (call-with-output-file "pytest.ini" - (lambda (port) - (format port "[pytest] -python_files = test_*.py")))))))) + (replace 'check + (lambda* (#:key tests? test-flags #:allow-other-keys) + (when tests? + ;; Some tests require write access to $HOME. + (setenv "HOME" "/tmp") + ;; Step out of the source directory to avoid interference; + ;; we want to run the installed code with extensions etc. + (with-directory-excursion "/tmp" + (apply invoke "pytest" "-v" test-flags)))))))) (propagated-inputs (list python-astropy python-beautifulsoup4