-
Notifications
You must be signed in to change notification settings - Fork 134
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
--new-version: 4.0.1.dev2 becomes 4.0 instead of 4.0.1 #45
Comments
Let's hope c4urself/bump2version#45 gets fixed soon, or else all that version numbers in there will be horrible to maintain...
Encountered a similar problem when I tried to set up support for release candidates. I came up with
But it has troublesome usage. For bump I'd like to bump |
@luckydonald I just ran into the same thing. You probably already figured it out by now, but note that your parsing only detects @c4urself it would be great if the repo had instructions or examples of how to write these "parsing regex" strings for serializers with multiple options, e.g.
It's not that easy to figure out what the string should be without reading the code in detail. |
@drastawi I did not so far 😅 You're right indeed. |
However it still shouldn't bump from |
@luckydonald, I think you are trying to bump to an "invalid" version, so the code just tries its best guess, and I think it's the right choice since there is no patch that the serializer could recognize. After I moved the dot to dev/pre part of the serializer, bumping the patch worked very well for me. |
What happens is, bump2version parses And We can't block bumping from 4.0.1 to 4.0.0 because bumping down is valid in some cases (e.g. move back from 4.0.0 to 3.9.9). |
I am currently at version
4.0.1.dev2
, and want to proceed to non-dev4.0.1
. Instead I end up with4.0
.Reproduction
The command is
$ bump2version dev --new-version 4.0.1
,the code is luckydonald/pytgbot@85bf22.
Other issues
This might probably be related to #30, and could benefit from #22.
Details
Here is the full output, fully how it at some point just changes the version number to be wrong.
The text was updated successfully, but these errors were encountered: