[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70489] [PATCH 41/47] gnu: python-reproject: Enable tests.
From: |
Sharlatan Hellseher |
Subject: |
[bug#70489] [PATCH 41/47] gnu: python-reproject: Enable tests. |
Date: |
Sun, 21 Apr 2024 00:22:30 +0100 |
* gnu/packages/astronomy.scm (python-reproject): Enable tests.
[arguments]: <#:tests-flags>: Add them as seen in tox.ini.
<#:phases>: Rename 'writable-home to 'prepare-test-environment to reflect
purpose and build extension before tests.
[native-inputs]: Add python-xdist.
Change-Id: I7a5454e3ce241b7a54626f8aba27602b4965c25b
---
gnu/packages/astronomy.scm | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 32c70b9bdf..58bf607059 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2742,16 +2742,11 @@ (define-public python-reproject
(build-system pyproject-build-system)
(arguments
(list
- ;; FIXME: Failing tests
- ;;
- ;; reproject/adaptive/core.py:7: in <module>
- ;; from .deforest import map_coordinates
- ;; E ModuleNotFoundError: No module named 'reproject.adaptive.deforest'
- ;;
- ;; Project removed setup.py and there is no alternative to `python
- ;; setup.py build_ext'
- ;; See: https://github.com/pypa/setuptools/discussions/3388
- #:tests? #f
+ #:test-flags
+ #~(list "--arraydiff"
+ "--arraydiff-default-format=fits"
+ "--numprocesses" "auto"
+ "--pyargs" "reproject")
#:phases
#~(modify-phases %standard-phases
;; setup.py was removed in a659a260bdd7635cddc8f33c4ea04a3b6d8c1f84
@@ -2771,9 +2766,11 @@ (define-public python-reproject
(add-before 'check 'writable-compiler
(lambda _
(make-file-writable "reproject/_compiler.c")))
- (add-before 'check 'writable-home
+ (add-before 'check 'prepare-test-environment
(lambda _
- (setenv "HOME" (getcwd)))))))
+ (setenv "HOME" "/tmp")
+ ;; Cython extensions have to be built before running the tests.
+ (invoke "python" "setup.py" "build_ext" "--inplace"))))))
(propagated-inputs
(list python-asdf
python-astropy
@@ -2791,9 +2788,11 @@ (define-public python-reproject
(native-inputs
(list python-cython-3
python-extension-helpers
+ python-pytest
python-pytest-astropy
+ python-pytest-xdist
+ ;; python-sunpy ; circular dependencies, test optional
python-semantic-version
- python-pytest
python-setuptools-scm))
(home-page "https://reproject.readthedocs.io")
(synopsis "Astronomical image reprojection in Python")
--
2.41.0
- [bug#70489] [PATCH 05/47] gnu: python-pytest-socket: Update to 0.7.0., (continued)
- [bug#70489] [PATCH 05/47] gnu: python-pytest-socket: Update to 0.7.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 26/47] gnu: python-ginga: Set HOME for sanity check., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 25/47] gnu: python-ginga: Update to 5.0.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 29/47] gnu: python-bayesicfitting: Update to 3.2.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 36/47] gnu: python-roman-datamodels: Update to 0.19.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 38/47] gnu: python-specutils: Update to 1.14.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 35/47] gnu: python-regions: Update to 0.9., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 39/47] gnu: python-photutils: Update to 1.12., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 43/47] gnu: python-crds: Update to 11.17.20., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 44/47] gnu: python-stsci-stimage: Update to 0.2.8., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 41/47] gnu: python-reproject: Enable tests.,
Sharlatan Hellseher <=
- [bug#70489] [PATCH 40/47] gnu: python-reproject: Update to 0.13.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 45/47] gnu: python-stsci-stimage: Adjust test steps., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 47/47] gnu: Add psfex., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 46/47] gnu: Add scamp., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 42/47] gnu: python-asdf: Adjust inputs., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 28/47] gnu: python-bayesicfitting: Refresh package style., Sharlatan Hellseher, 2024/04/20