From: Vinicius Monego <monego@posteo.net>
To: Sharlatan Hellseher <sharlatanus@gmail.com>, 63542@debbugs.gnu.org
Subject: [bug#63542] [PATCH 04/19] gnu: python-sunpy: Update to 4.1.5.
Date: Tue, 23 May 2023 22:10:55 +0000 [thread overview]
Message-ID: <8fce5f3160c4808c81f7c1c565b94c3e8351cde1.camel@posteo.net> (raw)
In-Reply-To: <a67c96261594703c5d6d673402418503906ecee5.1684276664.git.sharlatanus@gmail.com>
Em qua, 2023-05-17 às 00:23 +0100, Sharlatan Hellseher escreveu:
> * gnu/packages/astronomy.scm (python-sunpy): Update to 4.1.5,
> simplify
> package.
> [arguments]{test-flags}: Disable 2 failing tests.
> [arguments]{phases}: Simplify prepare-test-environment by remove
> redundant substitution.
> [inputs]: Add opencv for OpenCV-Pyton support.
> ---
> gnu/packages/astronomy.scm | 31 ++++++++++---------------------
> 1 file changed, 10 insertions(+), 21 deletions(-)
>
> diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
> index 5c07ff2c8d..10c435b00e 100644
> --- a/gnu/packages/astronomy.scm
> +++ b/gnu/packages/astronomy.scm
> @@ -1885,16 +1885,21 @@ (define-public python-sgp4
> (define-public python-sunpy
> (package
> (name "python-sunpy")
> - (version "4.1.1")
> + (version "4.1.5")
> (source
> (origin
> (method url-fetch)
> (uri (pypi-uri "sunpy" version))
> (sha256
> - (base32
> "1h8dnsic96bxm5l278vk6jj5h4bh1b143fghsvv5rhigk137vysp"))))
> + (base32
> "1j5g0ivsrc5ji9s7jc3kcbi2injfs3y31pm3priycljwcsxspkpm"))))
> (build-system pyproject-build-system)
> (arguments
> (list
> + #:test-flags
> + #~(list "-k" (string-append
> + ;; XXX: Failed: DID NOT RAISE <class
> 'ModuleNotFoundError'>
> + "not test_main_nonexisting_module"
> + " and not test_main_stdlib_module"))
> #:phases
> #~(modify-phases %standard-phases
> (add-before 'install 'writable-compiler
> @@ -1902,24 +1907,7 @@ (define-public python-sunpy
> (make-file-writable "sunpy/_compiler.c")))
> (add-before 'check 'prepare-test-environment
> (lambda _
> - (setenv "HOME" "/tmp")
> - (make-file-writable "sunpy/_compiler.c")
> - ;; TODO: (Sharlatan-20221106T115800+0000): Review
> failing tests
> - (substitute* "sunpy/image/tests/test_transform.py"
> - (("def test_clipping") "def __off_test_clipping")
> - (("def test_nans") "def __off_test_nans")
> - (("def test_endian") "def __off_test_endian"))
> - (substitute* "sunpy/map/tests/test_mapbase.py"
> - (("def test_derotating_nonpurerotation_pcij")
> - "def __off_test_derotating_nonpurerotation_pcij"))
> - (substitute*
> "sunpy/map/sources/tests/test_mdi_source.py"
> - (("def test_synoptic_source")
> - "def __off_test_synoptic_source"))
> - (substitute* "sunpy/tests/tests/test_self_test.py"
> - (("def test_main_nonexisting_module")
> - "def __off_test_main_nonexisting_module")
> - (("def test_main_stdlib_module")
> - "def __off_test_main_stdlib_module")))))))
> + (setenv "HOME" "/tmp"))))))
> (native-inputs
> (list python-aiohttp
> python-extension-helpers
> @@ -1932,6 +1920,8 @@ (define-public python-sunpy
> python-pytest-mpl
> python-pytest-xdist
> python-setuptools-scm))
> + (inputs
> + (list opencv)) ; Includes OpenCV-Python
>
Judging from the SunPy source code on GitHub, OpenCV is only used for
one function (cv2_filter2d), a faster implementation of scipy's
convolve2d. In setup.cfg it is listed a test and docs dependency only.
To reduce size and breakage, IMO it shouldn't be an input. It seems to
be used only at runtime so it could be installed separately.
> (propagated-inputs
> (list parfive
> python-asdf
> @@ -1950,7 +1940,6 @@ (define-public python-sunpy
> python-matplotlib
> python-mpl-animators
> python-numpy
> - ;; python-opencv-python ; not packed yet
The opencv package builds opencv-python (cv2 namespace), as mentioned
in the (inputs) comment, although it doesn't ship with the python-
prefix.
> python-pandas
> python-reproject
> python-scikit-image
[...]
Vinicius
next prev parent reply other threads:[~2023-05-23 22:12 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-16 23:20 [bug#63542] [PATCH 00/19]: gnu: astronomy: May updates Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 01/19] gnu: python-asdf-astropy: Update to 0.4.0 Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 02/19] gnu: python-asdf-wcs-schemas: Symplify Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 03/19] gnu: python-gwcs: Update to 0.18.3 Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 04/19] gnu: python-sunpy: Update to 4.1.5 Sharlatan Hellseher
2023-05-23 22:10 ` Vinicius Monego [this message]
2023-05-16 23:23 ` [bug#63542] [PATCH 05/19] gnu: python-spherical-geometry: Add update note Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 06/19] gnu: python-sgp4: Update to 2.22 Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 07/19] gnu: python-ccdproc: Enable tests Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 08/19] gnu: python-reproject: Update to 0.10.0 Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 09/19] gnu: python-pyvo: Update to 1.4.1 Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 10/19] gnu: python-fitsio: Use Gexp Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 11/19] gnu: python-astropy-healpix: " Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 12/19] gnu: python-astroquery: " Sharlatan Hellseher
2023-05-23 22:15 ` Vinicius Monego
2023-05-16 23:23 ` [bug#63542] [PATCH 13/19] gnu: python-pynbody: Update to 1.3.1, simplify Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 14/19] gnu: python-astral: Update to 3.2 Sharlatan Hellseher
2023-05-23 22:19 ` Vinicius Monego
2023-05-16 23:23 ` [bug#63542] [PATCH 15/19] gnu: python-poppy: Update to 1.1.1 Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 16/19] gnu: python-photutils: Update to 1.7.0 Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 17/19] gnu: python-ephem: Update to 4.1.4 Sharlatan Hellseher
2023-05-16 23:23 ` [bug#63542] [PATCH 18/19] gnu: python-asdf: Update to 2.15.0 Sharlatan Hellseher
2023-05-23 22:21 ` Vinicius Monego
2023-05-16 23:23 ` [bug#63542] [PATCH 19/19] gnu: python-asdf-coordinates-schemas: Update to 0.2.0 Sharlatan Hellseher
2023-05-23 18:33 ` [bug#63542] Sharlatan Hellseher
2023-05-23 22:26 ` [bug#63542] Vinicius Monego
2023-05-24 6:55 ` [bug#63542] Astronomy May updates Efraim Flashner
2023-05-24 21:51 ` [bug#63542] [PATCH v2 00/20]: Cover review points Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 01/20] gnu: python-asdf-astropy: Update to 0.4.0 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 02/20] gnu: python-asdf-wcs-schemas: Symplify Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 03/20] gnu: python-gwcs: Update to 0.18.3 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 04/20] gnu: python-sunpy: Update to 4.1.5 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 05/20] gnu: python-spherical-geometry: Add update note Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 06/20] gnu: python-sgp4: Update to 2.22 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 07/20] gnu: python-ccdproc: Enable tests Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 08/20] gnu: python-reproject: Update to 0.10.0 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 09/20] gnu: python-pyvo: Update to 1.4.1 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 10/20] gnu: python-fitsio: Use Gexp Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 11/20] gnu: python-astropy-healpix: " Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 12/20] gnu: python-astroquery: " Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 13/20] gnu: python-pynbody: Update to 1.3.1, simplify Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 14/20] gnu: python-astral: Update to 3.2 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 15/20] gnu: python-poppy: Update to 1.1.1 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 16/20] gnu: python-photutils: Update to 1.7.0 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 17/20] gnu: python-ephem: Update to 4.1.4 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 18/20] gnu: python-asdf: Update to 2.15.0 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 19/20] gnu: python-asdf-coordinates-schemas: Update to 0.2.0 Sharlatan Hellseher
2023-05-24 21:51 ` [bug#63542] [PATCH v2 20/20] gnu: python-asdf: Enable tests Sharlatan Hellseher
2023-05-26 0:42 ` bug#63542: [PATCH v2 00/20]: Cover review points Vinicius Monego
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8fce5f3160c4808c81f7c1c565b94c3e8351cde1.camel@posteo.net \
--to=monego@posteo.net \
--cc=63542@debbugs.gnu.org \
--cc=sharlatanus@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).