Repository navigation
Conversation
The try-except was ugly, and it's better to have this in `numpy/_core` where it's used. Related to the smoke test introduction, which must work without `pytest` installed.
rgommers
force-pushed
the
enh-smoke-test
branch
from
November 22, 2026 16:23
b77f359 to
661fefa
Compare
jorenham
reviewed
Nov 22, 2026
jorenham
left a comment
Member
There was a problem hiding this comment.
Nice! Stub changes look fine.
This is helpful to test installs where the test suite is left out, as well as for downstream/distro testing (e.g., see the conda-forge numpy recipe, which lists many separate modules for import testing right now - that can now be a one-liner).
rgommers
force-pushed
the
enh-smoke-test
branch
from
November 22, 2026 18:46
661fefa to
68cd0d8
Compare
Member
|
I've recently been chatting to a linux package maintainer about this kind of thing. There are certainly things we could be doing better to improve their life with regards to how we package and release numpy. Hopefully they can contribute to the conversation here. |
Member
Author
|
That's be very welcome! I think I have a decent sense of distro maintainer wishes (this is probably not near the top, more a nice-to-have), but getting first-hand input is always nice. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There are two motivations for adding smoke testing:
The idea is to check (1) imports of all public modules and a set of key extension modules, (2) do some basic functionality tests, one test per module so this is very quick (~1 second).
AI Disclosure
Developed with Codex Terra 6.1. Ideas mine, and all diffs manually polished.