-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update python version regex and fix version ordering #10613
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a merged python regex update changes related to this test cases? Or this is refining the test cases? I couldn't see the regex changes here?
5b5c2f8
to
1ee202d
Compare
It's coming. It's got python regex features and converting those to ruby has been problematic so far.
|
1ee202d
to
49a1514
Compare
49a1514
to
caae23c
Compare
89cc502
to
5308ab8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good in general. My only concern is I'm not sure how widespread adherence to this standard is across the python community. Projects which deviate, but were "allowed" under the old regex will now fail to get updates.
Thanks @pavera . I'll add your concern to the discussion but so far I haven't encountered a version that was valid under the previous regex that is no longer valid under the new regex. |
5308ab8
to
7b5de61
Compare
@pavera I've had to add a feature flag, in case, things go wrong after deploying. It's mostly code that I'll clean up soon after deploying but do let me know if you have any additional feedback. |
06199e5
to
9085677
Compare
What are you trying to accomplish?
Link to issue
Update our python version implementation to be conformant with the python version specification here: https://peps.python.org/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions
I'm updating the regex for version formats to be the one specified in the python version specification.
Anything you want to highlight for special attention from reviewers?
How will you know you've accomplished your goal?
Checklist