-
Notifications
You must be signed in to change notification settings - Fork 57
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
Extend version.bump()
to allow bumping minor|major|patch
#449
Comments
(happy to work on it myself) |
Hey @hadim ! This is not completely trivial. For instance how would you bump: I have no strong preference for either API! |
Indeed, it is not! But supporting something like |
I gave it a first try: #452 |
…last` (#452) See #449 for context. - [x] add new enum `VersionBumpType` - [x] refactor `Version.bump()` to `Version.bump(bump_type: VersionBumpType)` - [x] add unit tests - [x] adapt the python binding This PR is breaking backward compat but since rust does not support overloading or default args, I could not find a more creative way to keep backward compat. That being said, it might not be that much of a problem. If it is, please let me know, and I can always keep `bump()` as it is and create a new function. --------- Co-authored-by: Tarun Pratap Singh <[email protected]>
Closed by #452 |
See prefix-dev/pixi#579 (comment) for context.
API could be one of those:
version.bump_{minor|major|patch}()
version.bump(BumpType::{Major|Minor|Patch|Last})
Any preference?
The text was updated successfully, but these errors were encountered: