-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
NumpyVersion does not handle the post
suffix correctly.
#6431
Comments
@charris |
You can, but I'm not sure what the right solution is :-) Option 1 would be to just never use the .post suffix again, so the problem Option 2 would be to find and steal an existing PEP 440 implementation from Option 3 would be to hack up NumpyVersion to handle what we need directly. On Thu, Oct 8, 2015 at 11:18 PM, Sumit Binnani notifications@github.com
Nathaniel J. Smith -- http://vorpus.org |
+1 for option 1. option 2: I looked quite hard for an implementation that did the right thing before writing (and given that |
After rereading PEP440 a couple of times, I'm inclined towards 1. also. PEP440 was too flexible, making it difficult to understand, let alone to parse, the allowable versions. It should have come with a reference implementation as a demonstration of concept ;) |
Supposedly there is a reference implementation somewhere -- it was in the
|
@rgommers I have seen |
So can we close this as wontfix / not a bug? |
Might a well. |
Should we add a line or two of code to make import bomb out when the
|
@njsmith That would be appropriate. |
That sounds good. Anything other than |
So as a regex, does this look right: ^[0-9]+.[0-9]+.[0-9]+(.dev0+([0-9a-f]+|Unknown))?$ ?
|
Actually no, because my description above is wrong. It doesn't allow for alpha/beta/rc version numbers. Should add |
FYI: This is breaking the statsmodels package - could be others affected: statsmodels/statsmodels#2645 |
Implements idea suggested in numpygh-6431.
Implements idea suggested in numpygh-6431.
The text was updated successfully, but these errors were encountered: