From patchwork Wed Dec 20 00:53:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 57844 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 DB09027BBEC; Tue, 19 Dec 2023 21:56:22 +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,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 1A6DC27BBE2 for ; Tue, 19 Dec 2023 21:56:22 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rFi4U-0004nv-Fy; Tue, 19 Dec 2023 16:56:14 -0500 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 1rFi3R-0004ML-71 for guix-patches@gnu.org; Tue, 19 Dec 2023 16:55:14 -0500 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 1rFi3Q-0003OF-9f for guix-patches@gnu.org; Tue, 19 Dec 2023 16:55:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rFi3T-0005l7-0n; Tue, 19 Dec 2023 16:55:11 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67915] [PATCH 22/32] gnu: python-spherical-geometry: Update to 1.3.1. 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: Tue, 19 Dec 2023 21:55:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67915 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67915@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 67915-submit@debbugs.gnu.org id=B67915.170302286821823 (code B ref 67915); Tue, 19 Dec 2023 21:55:10 +0000 Received: (at 67915) by debbugs.gnu.org; 19 Dec 2023 21:54:28 +0000 Received: from localhost ([127.0.0.1]:37600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rFi2l-0005fn-OB for submit@debbugs.gnu.org; Tue, 19 Dec 2023 16:54:28 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:52712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rFi2W-0005bx-Ep for 67915@debbugs.gnu.org; Tue, 19 Dec 2023 16:54:13 -0500 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3367903b4dcso183256f8f.1 for <67915@debbugs.gnu.org>; Tue, 19 Dec 2023 13:54:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703022844; x=1703627644; 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=SuxWXOQlBNGTyyptBxQmduYs+YwjoMXD0B2t/f1jjzA=; b=nhvtKXoXeu3i1DlaqdRzMUTbomFHc68OCKwXGvpO44FygaYrS+9pIwjo2SSWiTCgdi E1Y76rTvVE4eor5ymCZLmaKP/pZ/LfAbJbUrUp13zVzS/CYhEC5Ut4snSZ8qjVfUi2W8 YTcvNM8AqEriBRgZZCPiAODsEiScUTrVMsbLFx1TEViwXwghLy3RzUMQN8wlKBqGRvKU Mdi1up+CcUGlAVlDsL/4hRqbQpRLaHV888l2uA3LV5mgoHbi9ONhEpkmDHiUa7Ch+Nkm nd63/SU/CAdrwNF1iypP/GMQxpAOwdca7dbk0gxW5p4czG6oZsrqCNxOMe45zsaEECwJ yDyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703022844; x=1703627644; 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=SuxWXOQlBNGTyyptBxQmduYs+YwjoMXD0B2t/f1jjzA=; b=J1tOJfAvVcg57ahA5x9rVHNhUPBQcnohTE6E5RLZm11NNyYpVhoVxJtkKSXWFdswHH Ugik5ZM9M3DjWG6WrxBYvbozxGpZ2bzTMyTHituxmTpgItA2Ipq2XFacCkXEPqV74V2l xYE7n7gpDl7XQvAozwa0rknuiwKKyogu0ySUaMam5FF8CFsmRPfE4PAoimolAlRWTaHW 2eEo4UX3mlLzSYnNA0+ENa+XoIoKw7X6ZSSnt3bhX9VY0NtaAGt4dU2PzRzjnTVEbLTk 3AipoOrkAWVmlVHrruq2cw/ni+b0MMWfbaMMizPKK8SAEZ97B5/KqYoOsXgWZhPvOGeJ 4O1w== X-Gm-Message-State: AOJu0Ywoj6NJH+G3RSG6iwnbAcbQdZrCnHUP/RrOW6mUsMPy737MI21j fOHiusTMBbhNphGsj5JCtYRKBGtmrQv3tQ== X-Google-Smtp-Source: AGHT+IFf4FgAAIHtp6cRHU3Ud2vFSoyrdD6f0XSlsMpe3ehJTmP0/Gydb4SnN4peNTeQiDqDQPYoZg== X-Received: by 2002:a05:600c:5408:b0:40d:2f89:2dfa with SMTP id he8-20020a05600c540800b0040d2f892dfamr458366wmb.50.1703022843831; Tue, 19 Dec 2023 13:54:03 -0800 (PST) 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 a8-20020a05600c348800b0040b4b66110csm4799867wmq.22.2023.12.19.13.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 13:54:03 -0800 (PST) From: Sharlatan Hellseher Date: Wed, 20 Dec 2023 00:53:29 +0000 Message-ID: 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-spherical-geometry): Update to 1.3.1. [arguments]<#:phases>: Replace 'build-extension with 'prepare-test-environment phase which includes Pytest config set up to prevent tests from failure. [native-inputs]: Add python-pytest-astropy-header. [home-page]: Correct it. Change-Id: Ib49201f62c32555355df5821383ef416245d4d50 --- gnu/packages/astronomy.scm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 9012f758d6..cc1a78b90e 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -2602,9 +2602,7 @@ (define-public python-spectral-cube (define-public python-spherical-geometry (package (name "python-spherical-geometry") - ;; XXX: Can't be updated to the latest see: - ;; https://github.com/spacetelescope/spherical_geometry/issues/227 - (version "1.2.22") + (version "1.3.1") (source (origin (method git-fetch) @@ -2613,7 +2611,7 @@ (define-public python-spherical-geometry (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "0kzcncqir4v7nhk9lxj9gxr32p3krkaqa58y2i4kksgxxy24qw4z")))) + (base32 "172f81h42jq6mv3gpx497z2nkhkx11w4pzmcqljcicri2zqj1m6g")))) (build-system pyproject-build-system) (arguments (list @@ -2627,18 +2625,23 @@ (define-public python-spherical-geometry (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version) ;; Use our own libraries in place of bundles. (setenv "USE_SYSTEM_QD" "1"))) - (add-before 'check 'build-extensions + (add-before 'check 'prepare-test-environment (lambda _ - (invoke "python" "setup.py" "build_ext" "--inplace")))))) + (invoke "python" "setup.py" "build_ext" "--inplace") + (call-with-output-file "pytest.ini" + (lambda (port) + (format port "[pytest] +python_files = test_*.py")))))))) (native-inputs (list python-pytest + python-pytest-astropy-header python-setuptools-scm)) (inputs (list qd)) (propagated-inputs (list python-astropy python-numpy)) - (home-page "https://github.com/spacetelescope/tweakwcs") + (home-page "https://github.com/spacetelescope/spherical_geometry") (synopsis "Python astronimical package for handling spherical polygons") (description "The @code{spherical_geometry} library is a Python package for handling