[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
26/27: gnu: python-synphot: Enable tests.
From: |
guix-commits |
Subject: |
26/27: gnu: python-synphot: Enable tests. |
Date: |
Sat, 18 Nov 2023 20:57:49 -0500 (EST) |
bavier pushed a commit to branch master
in repository guix.
commit 1144680dab4aece86e21b6749ab19a4d2a3df23c
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Nov 17 12:16:19 2023 +0000
gnu: python-synphot: Enable tests.
* gnu/packages/astronomy.scm (python-synphot): Enable tests.
[arguments]{phases}: Add 'prepare-test-environment phase.
Change-Id: Ie577ef16794fbd99ec73e39bdc8d8e1645e35532
Signed-off-by: Eric Bavier <bavier@posteo.net>
---
gnu/packages/astronomy.scm | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index f19f40a69d..bf419ae526 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3712,9 +3712,21 @@ datetime object.")
(build-system pyproject-build-system)
(arguments
(list
- ;; XXX: Test needs more love to pass.
- ;; ERROR collecting synphot/tests/test_utils.py
- #:tests? #f))
+ #: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"))))))))
(propagated-inputs (list python-astropy python-numpy python-scipy))
(native-inputs (list python-pytest python-pytest-astropy
python-setuptools-scm))
- 19/27: gnu: python-sgp4: Update to 2.23., (continued)
- 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, 2023/11/18
- 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 <=
- 27/27: gnu: python-stsci-stimage: Enable tests., guix-commits, 2023/11/18