mbox series

[0/2,v5] numpy: upgrade and ptest fix

Message ID 20250429183801.1125000-1-tgamblin@baylibre.com
Headers show
Series numpy: upgrade and ptest fix | expand

Message

Trevor Gamblin April 29, 2025, 6:37 p.m. UTC
v5 removes gcc from ptest RDEPENDS and skips the related tests, cleans up the
run-ptest script, skips test_big_arrays via the pytest CLI arguments so we don't
have to carry a patch for it, and adjusts the commit messages to match. This new
iteration still takes almost 90 seconds to run, so it remains in PTEST_SLOW.

v4 tweaks the run-ptest script to use `pytest --automake` and adds the
corresponding python-unittest-automake-output module to ptest RDEPENDS.

v3 includes the patch to disable a consistently-failing ptest - this was
mentioned in the previous series and the numpy recipe file, but was missed
during final commit.

v2 was re-sent with a few cleanups compared to the previous version (which
didn't have a cover letter).

With the introduction of patch 2/2, numpy ptests should work (they're listed in
PTESTS_SLOW instead of PTESTS_PROBLEMS, so the recipe-specific ptest image can
also be built). More tests could be run with the presence of gcc (present in an
earlier version), python3-mypy (in meta-python), and a Fortran compiler, but
there are enough tests being run right now and doing those things would add more
complexity. Further detail on the changes to make this possible are found in
that commit log.

Trevor Gamblin (2):
  python3-numpy: upgrade 2.2.4 -> 2.2.5
  python3-numpy: fix ptests

 .../distro/include/ptest-packagelists.inc     |  3 +-
 meta/recipes-core/images/core-image-ptest.bb  |  4 +++
 .../python/python3-numpy/run-ptest            | 16 +++++++--
 ...-numpy_2.2.4.bb => python3-numpy_2.2.5.bb} | 34 +++++++++++--------
 4 files changed, 37 insertions(+), 20 deletions(-)
 rename meta/recipes-devtools/python/{python3-numpy_2.2.4.bb => python3-numpy_2.2.5.bb} (88%)