-
Notifications
You must be signed in to change notification settings - Fork 31
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
Use verlib2.Version
for comparing versions
#591
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.
👍
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.
great! but it seems not to work as expected as a lot of test fail?
@property | ||
def version(self) -> tuple: | ||
""" | ||
PATCH: Return version tuple for backward-compatibility. | ||
""" | ||
return self._version.release |
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.
@seut: This little polyfill needs to be added to verlib2, to make it compatible with the previous LooseVersion/StrictVersion classes from distutils
.
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.
The snippet to gain backwards-compatibility has been added with verlib2 0.2.0. It resolves the issue of failing test cases.
5a97eb2
to
251543c
Compare
About
For not duplicating corresponding code any longer, there is the verlib2 package now, which includes the same canonical code from
packaging.version
as before, see GH-513.