From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 YD0jOphTJGYZZAEAe85BDQ:P1 (envelope-from ) for ; Sun, 21 Apr 2024 01:45:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YD0jOphTJGYZZAEAe85BDQ (envelope-from ) for ; Sun, 21 Apr 2024 01:45:29 +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=AtgbZ5NS; 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=1713656728; a=rsa-sha256; cv=none; b=MuYcf+px1A9PvNxWzYFraeDRQ34ji7MiEAdIA7HL9XTFbQ/F7PiFjOMZYNhfxFAl410D1W pappDLUzeHuqi/Ip6CY/XINSXb8RTLweFwbnOLky7yWrBYlkvv/02XivSKpWeMWUL8qaAj ocFYdxMe1FKxcsd8pdZzPI0rLgdYxJO7KmQnRWR+ernndzjdxEiR0EI2sMuDLoAnyFASBu rS2QnDG1UM+0IcMouDSh5ElYznF+zlPIcgthXlVa0bzGC8AHjxcaLstWX01+w6qFwPMK5j ArSs1aQMPmBCjxFxSSHTL+7VxjdnvkvdLbNSpB61VIIGSZCr6IZHR3SsG4wAUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=AtgbZ5NS; 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=1713656728; 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=nb5N+X7LLvDLW8Eec6vtHNAo2Sr+g9IvUG0cu63gE18=; b=VR9vC7rhqD4RnpR9KJU2iPe2QB8DDg7lVXP3zeX3EJ7UnZnOu6oP4xWCc6wNx5Ptq4hh+S i2ZegHTw7gCveTXQYfA032L28KJNmevj+YF+MZNovi6fYSbGz/uBSiVbyIy9lfvYFHvpCu ShS8Gx/mGa5UsPkj5cpzHLjvfvQR9DN0ut7U005l7CLc4b4iUjbBUoJDMX47hnJDwh4owd vfkPjdhBrOu5t25Y+pNPHhArjOHs8ssAXZz5nwoLLtZZXBCRXkMQYuuKpy1za2oz84LZBm /Tz3E7fUBiTzlonkHrqpOLbpTFNizVhq3doxddox2XZqiAFP8wSUqAbpCcF0Qw== 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 B1FD27B0E9 for ; Sun, 21 Apr 2024 01:45:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryK6N-0004tv-8N; Sat, 20 Apr 2024 19:26:35 -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 1ryK69-0004hm-88 for guix-patches@gnu.org; Sat, 20 Apr 2024 19:26:22 -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 1ryK69-0002yz-0N for guix-patches@gnu.org; Sat, 20 Apr 2024 19:26:21 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ryK6N-0000Z2-Ti; Sat, 20 Apr 2024 19:26:35 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70489] [PATCH 41/47] gnu: python-reproject: Enable tests. 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:26:35 +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.17136555681760 (code B ref 70489); Sat, 20 Apr 2024 23:26:35 +0000 Received: (at 70489) by debbugs.gnu.org; 20 Apr 2024 23:26:08 +0000 Received: from localhost ([127.0.0.1]:39067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryK5u-0000Rg-6Y for submit@debbugs.gnu.org; Sat, 20 Apr 2024 19:26:08 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:59683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryK3V-0008Sb-OZ for 70489@debbugs.gnu.org; Sat, 20 Apr 2024 19:23:41 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-41a0979b9aeso3116085e9.3 for <70489@debbugs.gnu.org>; Sat, 20 Apr 2024 16:23:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713655397; x=1714260197; 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=nb5N+X7LLvDLW8Eec6vtHNAo2Sr+g9IvUG0cu63gE18=; b=AtgbZ5NSIzfHTUtyTfBfeA954zepkCWirCgAlQbTce7Gw6n0tBL/a2q+yLHvvl9FyS HJPOjQM9jP/1zNx0e7H/AHNGW+0/Q5FelR9pV5OluXCxzXDKtB+hev1a1KNabEa7gvdM 2OtOHp5DqbqZKI4/k3J+dxt0/DHGqsOayrzgj1RyTBSubynHS0qbl+6yX1AglT0tJJXI hGHU4+bvpokKDi49GZr1Uj9nSq5BBsAYgIO7W0R3sySSesQyzsUxxZm7lYkhpHknW6jp EC8LXO0jJhiJj6f14o22ftiWtUsGHNVCkmK2KAf+W/iSvvJEFRvatbRNpnU86oUpL8ZX LV7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713655397; x=1714260197; 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=nb5N+X7LLvDLW8Eec6vtHNAo2Sr+g9IvUG0cu63gE18=; b=Jt0LWKoMHltu4/WwYJP2TPOAQ+s1xQNOOTO0PF51al2L91K486gnilcKD1UyyDkPHs Rt1R3/yq7Xv1TZwox4fQE7rcoJBpm+1Mg/s4msuz1iGcBurYOZ382IWnCL2Fycan4pdF tS+w9XrgNLvkO6rGQPUaF603avLrYM2cpAMR9E0p4T+yij6bcbVXWBf91zO6q1DCtCF4 m3ANxzU9+34OxrGa6dJOD2ggXseM/hujEra/jh3YFEqo1ISSoTMpvEIxeIatjAl06ftc /E7EeZrJZf7gVy76DW1ig3zRLmDzjBQIbR4ZWYulxDr8fTHRYXKPm4h/oJT00yIsSAbM pXog== X-Gm-Message-State: AOJu0YxzVbdJ0gaqNy8Vo7dNrA+aVtTIU3tuxCyj7zCg5AnEECyDBPzL H3fkSpO88DRtMoQUaSOWd16K+uV/TfkmT6e7Q/T6DgIqMvE50ldjvmi6+Sek X-Google-Smtp-Source: AGHT+IFisBPafO4PeL21Yo8XG4gIunTw1ym814lmx9OPmnUz508l9O5WzGxZKD8UNNwOMd80i8SleQ== X-Received: by 2002:a05:600c:4447:b0:41a:385:508d with SMTP id v7-20020a05600c444700b0041a0385508dmr1616794wmn.9.1713655397069; Sat, 20 Apr 2024 16:23:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 16:23:16 -0700 (PDT) From: Sharlatan Hellseher Date: Sun, 21 Apr 2024 00:22:30 +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: B1FD27B0E9 X-Migadu-Spam-Score: -3.78 X-Migadu-Scanner: mx10.migadu.com X-TUID: kyK7rxuTxLei * gnu/packages/astronomy.scm (python-reproject): Enable tests. [arguments]: <#:tests-flags>: Add them as seen in tox.ini. <#:phases>: Rename 'writable-home to 'prepare-test-environment to reflect purpose and build extension before tests. [native-inputs]: Add python-xdist. Change-Id: I7a5454e3ce241b7a54626f8aba27602b4965c25b --- gnu/packages/astronomy.scm | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 32c70b9bdf..58bf607059 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -2742,16 +2742,11 @@ (define-public python-reproject (build-system pyproject-build-system) (arguments (list - ;; FIXME: Failing tests - ;; - ;; reproject/adaptive/core.py:7: in - ;; from .deforest import map_coordinates - ;; E ModuleNotFoundError: No module named 'reproject.adaptive.deforest' - ;; - ;; Project removed setup.py and there is no alternative to `python - ;; setup.py build_ext' - ;; See: https://github.com/pypa/setuptools/discussions/3388 - #:tests? #f + #:test-flags + #~(list "--arraydiff" + "--arraydiff-default-format=fits" + "--numprocesses" "auto" + "--pyargs" "reproject") #:phases #~(modify-phases %standard-phases ;; setup.py was removed in a659a260bdd7635cddc8f33c4ea04a3b6d8c1f84 @@ -2771,9 +2766,11 @@ (define-public python-reproject (add-before 'check 'writable-compiler (lambda _ (make-file-writable "reproject/_compiler.c"))) - (add-before 'check 'writable-home + (add-before 'check 'prepare-test-environment (lambda _ - (setenv "HOME" (getcwd))))))) + (setenv "HOME" "/tmp") + ;; Cython extensions have to be built before running the tests. + (invoke "python" "setup.py" "build_ext" "--inplace")))))) (propagated-inputs (list python-asdf python-astropy @@ -2791,9 +2788,11 @@ (define-public python-reproject (native-inputs (list python-cython-3 python-extension-helpers + python-pytest python-pytest-astropy + python-pytest-xdist + ;; python-sunpy ; circular dependencies, test optional python-semantic-version - python-pytest python-setuptools-scm)) (home-page "https://reproject.readthedocs.io") (synopsis "Astronomical image reprojection in Python") -- 2.41.0