You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
if (upgrade_from-upgrade_to).major:
print("Warning: breaking change(s) ahead!")
...
I haven't though about how to handle prereleases/build versions but I think it may be a nice addition (especially the second solution, which feels more "pythonic" to me) but of course using v_a.major != v_b.major is plenty enough too.
Just wanted to throw this idea here :)
The text was updated successfully, but these errors were encountered:
I needed to check for a breaking change in my program and made the following utility function:
And I thought that this would be an easy addition to the library, although using operators directly seems more "pure":
And I also thought about just implementing subtraction, so you could check the difference in the number of patches, minor and/or major bumps:
So that checking for breaking changes would be:
I haven't though about how to handle prereleases/build versions but I think it may be a nice addition (especially the second solution, which feels more "pythonic" to me) but of course using
v_a.major != v_b.major
is plenty enough too.Just wanted to throw this idea here :)
The text was updated successfully, but these errors were encountered: