unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 48703@debbugs.gnu.org
Subject: [bug#48703] [PATCH 0/4] Update python-numpy
Date: Wed, 16 Jun 2021 09:10:52 +0000	[thread overview]
Message-ID: <462a8613b51f255d4c004c1619c8200535574086.camel@posteo.net> (raw)
In-Reply-To: <CA+3U0Zno9wPf7jGtse0GeuGvAFV0zzPEocWuWLdUSzGYeZveuw@mail.gmail.com>

Hello,

Since this is a mid to long term update (the packages have quite a few
[heavy] dependents), I'd like to suggest some refactoring. I will talk
about each package separately.

- python-numpy:

1. Why is it sourced from a tar.gz in the github releases page and not
from PyPI or a checkout? I had a look at the PyPI source file and the
tests are provided. If that source is required, a comment would help.

2.

> ;; Tests can only be run after the library has been installed and not
> ;; within the source directory.

I'm not sure if pytest was invoked manually or if the runtests.py
script was executed to reach that conclusion.

Numpy uses the tests under subdirectories structure. In that case,
tests should run with "python -m pytest --pyargs numpy" or "pytest --
pyargs numpy". I have this generic template that worked for all of my
packages so far:

> (replace 'check
>   (lambda* (#:key inputs outputs tests? #:allow-other-keys)
>     (when tests?
>       (add-installed-pythonpath inputs outputs)
>       (invoke "python" "-m" "pytest" "--pyargs" "numpy"))))

NumPy could be a special case, but a more detailed comment would help.

3. #:tests? is not respected.

4. Don't return #t in the phases.

- python-scipy

1. Same comment about tests from NumPy. Overriding the check would also
allow removing the 'disable-broken-tests phase.

2. #:tests? is not respected here either.

3. Don't return #t in the phases.

4. Since documentation is being built, it would be good to have the
sphinx theme for scipy ready. The current documentation doesn't have
any CSS. Not a big problem though.

- python-matplotlib

1. Respect #:tests?.

2. Don't return #t in the phases.

LGTM otherwise.

- python-pandas

1. I think the check phase could be simplified by using the same pytest
structure suggested in numpy and scipy.
2. Respect #:tests?
3. Don't return #t in the phases.





  parent reply	other threads:[~2021-06-16  9:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-27 15:10 [bug#48703] [PATCH 0/4] Update python-numpy Greg Hogan
2021-06-02 19:14 ` Xinglu Chen
2021-06-16  9:10 ` Vinicius Monego [this message]
     [not found] ` <handler.48703.B.16221282921408.ack@debbugs.gnu.org>
2022-01-28 11:48   ` bug#48703: Acknowledgement ([PATCH 0/4] Update python-numpy) Greg Hogan

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=462a8613b51f255d4c004c1619c8200535574086.camel@posteo.net \
    --to=monego@posteo.net \
    --cc=48703@debbugs.gnu.org \
    /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).