unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 66778@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>,
	Andreas Enge <andreas@enge.fr>,
	Efraim Flashner <efraim@flashner.co.il>,
	Eric Bavier <bavier@posteo.net>
Subject: [bug#66778] [PATCH 04/19] gnu: python-spherical-geometry: Enable tests.
Date: Fri, 27 Oct 2023 23:14:47 +0100	[thread overview]
Message-ID: <cf71644ac87d4723fa1af63a7d1fabbb7bad6b28.1698444193.git.sharlatanus@gmail.com> (raw)
In-Reply-To: <cover.1698444193.git.sharlatanus@gmail.com>

* gnu/packages/astronomy.scm (python-spherical-geometry): Enable tests.
[build-system]: Switch to pyproject-build-system.
[arguments]{phases}: Add 'build-extensions phase.
---
 gnu/packages/astronomy.scm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 18cf562e12..3b85d4ec9e 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2470,19 +2470,22 @@ (define-public python-spherical-geometry
        (file-name (git-file-name name version))
        (sha256
         (base32 "0kzcncqir4v7nhk9lxj9gxr32p3krkaqa58y2i4kksgxxy24qw4z"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
      (list
-      ;; NOTE: (Sharlatan-20220523T231348+0100): Tests depends on old Python2
-      ;; libarry `sphere'
-      #:tests? #f
+      ;; XXX: Disable one failing test
+      ;; See https://github.com/spacetelescope/spherical_geometry/issues/252
+      #:test-flags #~(list "-k" "not test_overlap")
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'preparations
             (lambda _
               (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)
               ;; Use our own libraries in place of bundles.
-              (setenv "USE_SYSTEM_QD" "1"))))))
+              (setenv "USE_SYSTEM_QD" "1")))
+          (add-before 'check 'build-extensions
+            (lambda _
+              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
     (native-inputs
      (list python-pytest
            python-setuptools-scm))
-- 
2.41.0





  parent reply	other threads:[~2023-10-27 19:16 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-27 22:08 [bug#66778] [PATCH 00/19] gnu: Astronomy 2023/10 updates Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 01/19] gnu: glnemo2: Fix home-page Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 02/19] gnu: imppg: Use standard configure phase Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 03/19] gnu: python-spherical-geometry: Simplify package Sharlatan Hellseher
2023-10-27 22:14 ` Sharlatan Hellseher [this message]
2023-10-27 22:14 ` [bug#66778] [PATCH 05/19] gnu: python-pynbody: Update to 1.4.1 Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 06/19] gnu: python-cdflib: Update to 1.2.2 Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 07/19] gnu: python-astroalign: Update to 2.5.0 Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 08/19] gnu: erfa: Update to 2.0.1 Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 09/19] gnu: python-pyerfa: Update to 2.0.1.1 Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 10/19] gnu: libxisf: Update to 0.2.10 Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 11/19] gnu: python-astropy: Update to 5.3.4 Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 12/19] gnu: python-cdflib: Update to 1.2.3 Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 13/19] gnu: python-crds: Update to 11.17.7 Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 14/19] gnu: python-ephem: Update to 4.1.5 Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 15/19] gnu: python-jwst: Update to 1.12.5 Sharlatan Hellseher
2023-10-27 22:14 ` [bug#66778] [PATCH 16/19] gnu: python-pytest-remotedata: Update to 0.4.1 Sharlatan Hellseher
2023-10-27 22:15 ` [bug#66778] [PATCH 17/19] gnu: python-pytest-doctestplus: Update to 1.0.0 Sharlatan Hellseher
2023-10-27 22:15 ` [bug#66778] [PATCH 18/19] gnu: python-pytest-astropy: Update to 0.11.0 Sharlatan Hellseher
2023-10-27 22:15 ` [bug#66778] [PATCH 19/19] gnu: python-asdf: Update to 3.0.0 Sharlatan Hellseher
2023-11-05 18:29 ` bug#66778: [PATCH 00/19] gnu: Astronomy 2023/10 updates Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cf71644ac87d4723fa1af63a7d1fabbb7bad6b28.1698444193.git.sharlatanus@gmail.com \
    --to=sharlatanus@gmail.com \
    --cc=66778@debbugs.gnu.org \
    --cc=andreas@enge.fr \
    --cc=bavier@posteo.net \
    --cc=efraim@flashner.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).