Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include __array_api_version__ in API specification section #480

Merged
merged 3 commits into from
Oct 17, 2022

Conversation

honno
Copy link
Member

@honno honno commented Sep 21, 2022

xp.__array_api_version__ has been specified in our Versioning section for a while now (~2yrs), but no such mention of it is found in the API specification section, which is probably why this wasn't implemented in numpy/numpy/pull/18585 and all subsequent adoption efforts across the ecosystem (happy to submit respective PRs after we get this in).

So this PR simply creates a spec/API_specification/version.rst file which includes a documented __array_api_version__ attribute, which also will show up in our array-api/latest/API_specification/ page (as well as the sidebar).

@Zac-HD
Copy link

Zac-HD commented Sep 21, 2022

After this is merged, let's also add a test to the conformance suite.

@honno honno force-pushed the dunder-version-namespace-attr branch from 624c403 to 1b0491b Compare October 6, 2022 11:43
@leofang
Copy link
Contributor

leofang commented Oct 17, 2022

Merging as this got two green checks and is what we should have had.

@leofang leofang merged commit 67d5e26 into data-apis:main Oct 17, 2022
@kgryte kgryte added this to the v2022 milestone Oct 17, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants