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

ENH: Support major version larger than 9 in NumpyVersion #19240

Merged
merged 2 commits into from
Jun 13, 2021

Conversation

charris
Copy link
Member

@charris charris commented Jun 13, 2021

Backport of #19214.

This PR fixes numpy.lib.NumpyVersion to be able to parse major versions larger than 9, as the docstring says:

numbers given are examples; they can be > 9 in principle

Currently minor and bugfix version supports > 9 but major is not.

Motivation: I'm maintaining CuPy, and we are expecting the next major release to be v10.x. I understand this enhancement is not necessary for NumPy for the foreseeable future, but it would be great if CuPy's version strings (which follows the NumPy's convention) can be parsed as well.

@charris charris added 01 - Enhancement 08 - Backport Used to tag backport PRs labels Jun 13, 2021
@charris charris added this to the 1.21.0 release milestone Jun 13, 2021
@charris charris merged commit 5da37d5 into numpy:maintenance/1.21.x Jun 13, 2021
@charris charris deleted the backport-19214 branch June 13, 2021 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
01 - Enhancement 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants