From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id sGBjGPBOJGaVJwAAqHPOHw:P1 (envelope-from ) for ; Sun, 21 Apr 2024 01:25:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id sGBjGPBOJGaVJwAAqHPOHw (envelope-from ) for ; Sun, 21 Apr 2024 01:25:36 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=FPuywVE7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713655536; a=rsa-sha256; cv=none; b=BTBRv+gloUHB06UOTW13PxpiaaoSovLJnNZFFM+QhNXXbnUsDoKj4SgwLLL7GhhMqds8uh of8dRVEqjmdTDhlaN/wKFZG3WwyAe3aYMU/OUS0+dgiwKp/jytn6NfH8ABWj+sAqSJaKH8 iNp9I4QLtShlQOV4KD34sufqkssHRzN+LQM93ZCw3iKwqwIpH/Dlh9mH3TM/hZoik+Tdvh zz3679X0JkpcLTpGBZahmBLJI0uOQaJcutxkBYY8THvvmzIMImg5/NSJV/ldxJ1CEuG34G 9QF6gaaNT1TJWdcWGYfYRXie0xn30vIqYVFakSVOo1hUKNGdDahWlsQiFTCQOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=FPuywVE7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713655536; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mznjwx52Al9aXpmyy1ptG6FaexpbBQc6E710lCM0X8U=; b=Fu/s3av6LLOTkl2mZzWjR1QPNFkfqzIhloF4r0Dny3ISxPk/LpFwJxWgdHXSv/rzvFi5nD Ix815JiaA0P6Sh0fQwOBEC2k84sy9J3lm+1xjZGJpKjqak5Xj1Lmiux233lNw0ctyCLCIZ DTE3rccPRLfhF4LAx5MCfsqhOBZp7meQJFkxfJXHSmjBXGBe9dmTUbDQRkzpftwwQkeKiP aSl7kBt/9t4vc9CAgJ9sYUpUH8WToHAunGXYc3cvFReOv56nMUjxDD6s2qMbWOeDaN+Dnz A+1Rk/p9DyG83x9o37pOC+4Cy5wsD8BVaUYwC1EHXRJI+xQzj3A6n6RyUQ4vwg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3CAFC7AF78 for ; Sun, 21 Apr 2024 01:25:36 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryK4o-0003Zv-Vu; Sat, 20 Apr 2024 19:24:59 -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 1ryK4m-0003Vn-TY for guix-patches@gnu.org; Sat, 20 Apr 2024 19:24:56 -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 1ryK4m-0002UB-Jx for guix-patches@gnu.org; Sat, 20 Apr 2024 19:24:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ryK50-0000It-U7; Sat, 20 Apr 2024 19:25:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70489] [PATCH 21/47] gnu: python-synphot: Add custom check phase. 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: Sat, 20 Apr 2024 23:25:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70489 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70489@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 70489-submit@debbugs.gnu.org id=B70489.1713655495957 (code B ref 70489); Sat, 20 Apr 2024 23:25:10 +0000 Received: (at 70489) by debbugs.gnu.org; 20 Apr 2024 23:24:55 +0000 Received: from localhost ([127.0.0.1]:38974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryK4j-0000F5-U4 for submit@debbugs.gnu.org; Sat, 20 Apr 2024 19:24:54 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:52321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryK3H-0008OW-4W for 70489@debbugs.gnu.org; Sat, 20 Apr 2024 19:23:27 -0400 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-343cfa6faf0so2964027f8f.0 for <70489@debbugs.gnu.org>; Sat, 20 Apr 2024 16:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713655382; x=1714260182; 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=mznjwx52Al9aXpmyy1ptG6FaexpbBQc6E710lCM0X8U=; b=FPuywVE71yQD2Uaq/uhPS1hXt6iEFlU6P+8jTdeM+2SpLWwXfgZMyutvHmGSRyPVrl HOceQ3pF7RlbgEDwyC4xyd3p3awOmh62btb8WDhFT+zI4fGEfD4ZSFnYNAghh54TWHER 5XZadZhXEro3HOUl48g/R3seaNP6VdG0RpWlZUwjxHaXjPxBNoxGfMeXuZ+duln+c7m2 E86B09NuTkdrW6Cv+lrnzWrH6NNWYgL70ddKntf2PTo27WOaIVka0a94ovn4KIwfED1E ntN09ldZAHkjdsa9mLbBdktE1c0qHwboiubxbixNYTKP7tSaijsOumNte4O8OpwMVsAi y8ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713655382; x=1714260182; 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=mznjwx52Al9aXpmyy1ptG6FaexpbBQc6E710lCM0X8U=; b=ldnyXPLFNJ39iAsreJ1PwwizhScb7ECVyrCppaf2N4m7i6rJ6eKu/wGKSOKNAnvCC2 P0W6FSpX1Iv9utMK/JrGGxvYnlD8LHO7NU/gK1schjC6jHsTMubS0UQ6fR0CJFoAgCnA v3vO7gOQbVDqL7/H08uIQ65zWqU5/c+/l5q8b6np9gd7joJ8o3eGgRpSLigag3uM8GyZ bajFO6lLCdHhwT6FH8Vyzi2/m3Y8jOaYdjb4p60WUzoroRqtK2N1DvOFpXxbQUPoiUF6 02OiIsdhhBDAKMepUoPNHoXshNtOa2htYSYlE608GNhJYvHUF9pHGmyrma6k7qGl87zw 17hA== X-Gm-Message-State: AOJu0Yxip6vHGwhdDFK1FL8CjVIBpUgg3VxYuWPFhuNwKNnXLpJjtWJL s2xQONaV9uJQ0Bpa8ChSDZZP6VRIlNaFnHq25pQfUWGd2R76nBPy/NjCjCh1 X-Google-Smtp-Source: AGHT+IHNmxqe5DIVDxpR70cXEocXJelRQ5zVHZpNRzR0m0HoUl/o8DhzAlvy6YToi/3/HikR0HgkrQ== X-Received: by 2002:a05:600c:1f81:b0:418:5e80:a722 with SMTP id je1-20020a05600c1f8100b004185e80a722mr4448277wmb.24.1713655382386; Sat, 20 Apr 2024 16:23: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 g13-20020a05600c310d00b004196c93da22sm6474751wmo.2.2024.04.20.16.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 16:23:02 -0700 (PDT) From: Sharlatan Hellseher Date: Sun, 21 Apr 2024 00:22:10 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -3.78 X-Migadu-Queue-Id: 3CAFC7AF78 X-Migadu-Spam-Score: -3.78 X-Migadu-Scanner: mx10.migadu.com X-TUID: G5VYXEkObimz * gnu/packages/astronomy.scm (python-synphot): [arguments] <#:phases>: Remove 'prepare-test-environment phase; add custom 'check phase. Change-Id: I9cb6d65c226a555ccd62a3a6c08d00868a66f109 --- gnu/packages/astronomy.scm | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 4fea09067c..7ca051aa79 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -4348,19 +4348,14 @@ (define-public python-synphot (list #:phases #~(modify-phases %standard-phases - (add-before 'check 'prepare-test-environment - (lambda _ - (invoke "python" "setup.py" "build_ext" "--inplace") - ;; 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? + (invoke "python" "setup.py" "build_ext" "--inplace") + ;; 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-dust-extinction -- 2.41.0