[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/27: gnu: python-poliastro: Improve package style.
From: |
guix-commits |
Subject: |
25/27: gnu: python-poliastro: Improve package style. |
Date: |
Sat, 18 Nov 2023 20:57:49 -0500 (EST) |
bavier pushed a commit to branch master
in repository guix.
commit ba3a3aa311147afc4c1be941e79c557c73726a44
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Nov 17 12:16:13 2023 +0000
gnu: python-poliastro: Improve package style.
* gnu/package/astronomy.scm (python-poliastro): Improve package style.
[arguments]: Swap to use {test-flags} and standard {check} phase.
Change-Id: I0dde01af97adc883e8a3ce82a8448f4d10fdab64
Signed-off-by: Eric Bavier <bavier@posteo.net>
---
gnu/packages/astronomy.scm | 27 +++++++++++----------------
1 file changed, 11 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index d12dccc208..f19f40a69d 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2118,27 +2118,22 @@ of astronomical sources.")
(build-system pyproject-build-system)
(arguments
(list
+ #:test-flags
+ #~(list "-m" "not remote_data"
+ ;; TODO: Review failing tests later when any upstream
+ ;; suggestions are provided:
+ ;; https://github.com/poliastro/poliastro/issues/1618
+ "-k" (string-append "not test_czml_add_trajectory"
+ " and not test_czml_custom_packet"
+ " and not test_czml_ground_station"
+ " and not test_czml_groundtrack"
+ " and not test_czml_preamble"))
#:phases
#~(modify-phases %standard-phases
;; NOTE: Tests take about 7-10 minutes to pass.
(add-before 'check 'prepare-test-environment
(lambda _
- (setenv "HOME" "/tmp")
- ;; TODO: Review failing tests later when any upstream
- ;; suggestions are provided:
- ;; https://github.com/poliastro/poliastro/issues/1618
- (substitute* "tests/test_czml.py"
- (("def test_czml_add_trajectory") "def
__off_test_czml_add_trajectory")
- (("def test_czml_custom_packet") "def
__off_test_czml_custom_packet")
- (("def test_czml_ground_station") "def
__off_test_czml_ground_station")
- (("def test_czml_groundtrack") "def __off_test_czml_groundtrack")
- (("def test_czml_preamble") "def __off_test_czml_preamble"))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "-m" "pytest"
- ;; Skip tests that need remote data.
- "-m" "not remote_data")))))))
+ (setenv "HOME" "/tmp"))))))
(native-inputs
(list python-coverage
python-hypothesis
- 15/27: gnu: python-pynbody: Update to 1.4.2., (continued)
- 15/27: gnu: python-pynbody: Update to 1.4.2., guix-commits, 2023/11/18
- 11/27: gnu: python-casa-formats-io: Update to 0.2.2., guix-commits, 2023/11/18
- 16/27: gnu: python-pynbody: Prepare for cross compilation., guix-commits, 2023/11/18
- 17/27: gnu: python-rad: Update to 0.18.0., guix-commits, 2023/11/18
- 18/27: gnu: python-roman-datamodels: Update to 0.18.0., guix-commits, 2023/11/18
- 19/27: gnu: python-sgp4: Update to 2.23., guix-commits, 2023/11/18
- 20/27: gnu: python-wiimatch: Update to 0.3.2., guix-commits, 2023/11/18
- 21/27: gnu: splash: Update to 3.9.0., guix-commits, 2023/11/18
- 23/27: gnu: python-stsci-imagestats: Swap to pyproject-build-system., guix-commits, 2023/11/18
- 24/27: gnu: python-astroquery: Improve package style., guix-commits, 2023/11/18
- 25/27: gnu: python-poliastro: Improve package style.,
guix-commits <=
- 10/27: gnu: python-astroalign: Update to 2.5.1., guix-commits, 2023/11/18
- 12/27: gnu: python-crds: Update to 11.17.9., guix-commits, 2023/11/18
- 22/27: gnu: python-drms: Simplify package., guix-commits, 2023/11/18
- 02/27: gnu: qd: Update to 2.3.24., guix-commits, 2023/11/18
- 26/27: gnu: python-synphot: Enable tests., guix-commits, 2023/11/18
- 27/27: gnu: python-stsci-stimage: Enable tests., guix-commits, 2023/11/18