Skip to content

Making the numpy test suite separately installable #26289

@rgommers

Description

@rgommers

No longer shipping the tests with the numpy wheels uploaded to PyPI was discussed in gh-25737. This is now possible after gh-26274. Here are some questions about how we want to go about this. My assumption is that we want to do this in a fairly non-disruptive way, meaning no moving of all tests files (that would yield a ton of merge conflicts on all open PRs).

I think these will be the next steps in a follow-up PR to gh-26274:

  • Drop the tests label from the default set of install tags in pyproject.toml or modify our cibuildwheel config to do that (this needs deciding)
  • Start producing an installable test suite (numpy-tests wheels).
    • Decision 2: do we want that to land in-tree inside a numpy install, or out-of-tree (e.g. in a separate numpy-tests directory)? The latter seems cleaner, but may require some more tweaks to test structure (e.g., import numpy._core._multiarray_tests needs modifying).
  • Tweak our CI for wheel building to make everything work again.
  • Ensure that python -c "import numpy; numpy.test()" gives a clear error message when the tests are not installed
  • Add docs for distro packagers and others who want to run the tests.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions