Support vendoring this test suite by removing need for `array-api` submodule
honno opened this issue · 1 comments
honno commented
In #104 we introduce a git submodule of the array-api repo, which going forward is required for the test suite to function (e.g. special case tests). This is not ideal for some vendoring use cases where array libraries such as NumPy might like to ship the test suite in their own repo, and a git submodule would be a big nuisance to that end.
There are two current options I see:
- Hard code the
signaturesfiles ala the ones we generated withgenerate_stubs.py. A pre-commit hook could alleviate the pain somewhat of having an out-of-sync repo, which was a common problem before. - Allow the user to specify somewhere (variable? env? package?) where the
signaturesfolder/package is, so someone vendoring can vendor the spec too and use that.
honno commented
Relevant data-apis/array-api#488