[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
41/47: gnu: python-reproject: Enable tests.
From: |
guix-commits |
Subject: |
41/47: gnu: python-reproject: Enable tests. |
Date: |
Tue, 30 Apr 2024 16:42:45 -0400 (EDT) |
sharlatan pushed a commit to branch master
in repository guix.
commit 03776790b707f6c4572c8ea85a22301ab6b632b3
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Apr 18 10:20:21 2024 +0100
gnu: python-reproject: Enable tests.
* 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 efd364277b..47a8517b58 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2742,16 +2742,11 @@ setup(ext_modules=get_extensions())")))))
(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 @@ setup(ext_modules=get_extensions())")))))
(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 @@ setup(ext_modules=get_extensions())")))))
(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")
- 35/47: gnu: python-regions: Update to 0.9., (continued)
- 35/47: gnu: python-regions: Update to 0.9., guix-commits, 2024/04/30
- 16/47: gnu: python-jwst: Update to 1.14.0., guix-commits, 2024/04/30
- 23/47: gnu: python-tweakwcs: Adjust indentation., guix-commits, 2024/04/30
- 28/47: gnu: python-bayesicfitting: Refresh package style., guix-commits, 2024/04/30
- 31/47: gnu: python-skyfield: Enable tests., guix-commits, 2024/04/30
- 33/47: gnu: python-astroplan: Update to 0.10., guix-commits, 2024/04/30
- 37/47: gnu: python-casa-formats-io: Update to 0.3.0., guix-commits, 2024/04/30
- 39/47: gnu: python-photutils: Update to 1.12., guix-commits, 2024/04/30
- 24/47: gnu: python-tweakwcs: Update to 0.8.7., guix-commits, 2024/04/30
- 34/47: gnu: python-rad: Update to 0.19.2., guix-commits, 2024/04/30
- 41/47: gnu: python-reproject: Enable tests.,
guix-commits <=
- 18/47: gnu: python-stdatamodels: Update to 1.10.1., guix-commits, 2024/04/30
- 21/47: gnu: python-synphot: Add custom check phase., guix-commits, 2024/04/30
- 36/47: gnu: python-roman-datamodels: Update to 0.19.1., guix-commits, 2024/04/30
- 42/47: gnu: python-asdf: Adjust inputs., guix-commits, 2024/04/30
- 43/47: gnu: python-crds: Update to 11.17.20., guix-commits, 2024/04/30
- 22/47: gnu: python-synphot: Update to 1.4.0., guix-commits, 2024/04/30
- 25/47: gnu: python-ginga: Update to 5.0.1., guix-commits, 2024/04/30
- 30/47: gnu: Add python-assay., guix-commits, 2024/04/30
- 32/47: gnu: python-sunpy: Update to 5.1.2., guix-commits, 2024/04/30
- 40/47: gnu: python-reproject: Update to 0.13.1., guix-commits, 2024/04/30