[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70489] [PATCH 21/47] gnu: python-synphot: Add custom check phase.
From: |
Sharlatan Hellseher |
Subject: |
[bug#70489] [PATCH 21/47] gnu: python-synphot: Add custom check phase. |
Date: |
Sun, 21 Apr 2024 00:22:10 +0100 |
* gnu/packages/astronomy.scm (python-synphot): [arguments] <#:phases>:
Remove 'prepare-test-environment phase; add custom 'check phase.
Change-Id: I9cb6d65c226a555ccd62a3a6c08d00868a66f109
---
gnu/packages/astronomy.scm | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 4fea09067c..7ca051aa79 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -4348,19 +4348,14 @@ (define-public python-synphot
(list
#: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"))))))))
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (when tests?
+ (invoke "python" "setup.py" "build_ext" "--inplace")
+ ;; Step out of the source directory to avoid interference; we
+ ;; want to run the installed code with extensions etc.
+ (with-directory-excursion "/tmp"
+ (apply invoke "pytest" "-v" test-flags))))))))
(propagated-inputs
(list python-astropy
python-dust-extinction
--
2.41.0
- [bug#70489] [PATCH 07/47] gnu: python-exif-read: Update to 3.0.0., (continued)
- [bug#70489] [PATCH 07/47] gnu: python-exif-read: Update to 3.0.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 15/47] gnu: python-astropy-healpix: Update to 1.0.3., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 11/47] gnu: python-asdf-astropy: Update to 0.6.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 14/47] gnu: python-astropy: Update to 6.0.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 08/47] gnu: Add python-pysiaf., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 16/47] gnu: python-jwst: Update to 1.14.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 17/47] gnu: python-stcal: Update to 1.7.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 18/47] gnu: python-stdatamodels: Update to 1.10.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 06/47] gnu: parfive: Update to 2.1.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 19/47] gnu: python-stsci-imagestats: Update to 1.8.2., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 21/47] gnu: python-synphot: Add custom check phase.,
Sharlatan Hellseher <=
- [bug#70489] [PATCH 20/47] gnu: python-stsci-image: Refresh package style., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 22/47] gnu: python-synphot: Update to 1.4.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 23/47] gnu: python-tweakwcs: Adjust indentation., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 32/47] gnu: python-sunpy: Update to 5.1.2., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 27/47] gnu: python-gatspy: Refresh package style., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 33/47] gnu: python-astroplan: Update to 0.10., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 31/47] gnu: python-skyfield: Enable tests., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 34/47] gnu: python-rad: Update to 0.19.2., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 30/47] gnu: Add python-assay., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 37/47] gnu: python-casa-formats-io: Update to 0.3.0., Sharlatan Hellseher, 2024/04/20