Skip to content
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

Please post configuration to implement the semver tutorial #100

Closed
irons opened this issue Dec 3, 2023 · 2 comments · Fixed by #126
Closed

Please post configuration to implement the semver tutorial #100

irons opened this issue Dec 3, 2023 · 2 comments · Fixed by #126
Labels
documentation Improvements or additions to documentation

Comments

@irons
Copy link

irons commented Dec 3, 2023

  • bump-my-version version: 0.12.0
  • Python version: 3.11.5
  • Operating System: macOS 13.6.2, debian 12.2 (latest)

Description

I am not finding sample configuration to support the workflow described at https://callowayproject.github.io/bump-my-version/tutorials/semantic-versioning-example.html, and I've been unable to recreate it. I'll elaborate in another case because my goals differ slightly from what's described there, but seeing how to do what's described there would have been helpful.

@coordt coordt added the documentation Improvements or additions to documentation label Dec 18, 2023
@hottwaj
Copy link

hottwaj commented Jan 9, 2024

This issue is a bit of a blocker for new potential users (like me 😄)

Is this the relevant config (found in unit tests)?
https://github.com/callowayproject/bump-my-version/blob/master/tests/fixtures/pep440.toml

@irons
Copy link
Author

irons commented Jan 14, 2024

While overstuffed, this config you've found is a working model of semver pre_labels, once you uncomment line 47.

I didn't end up creating the other ticket I alluded to, because I found a workaround, but this example config highlights my main question about the would-be semver tutorial, which is how in step 5 we can go from 1.0.1-rc2 to 1.0.1, in a single command which doesn't include any explicit state (such as the undesirable bump-my-version bump patch --new-version 1.0.1).

With this config, the tutorial's syntax of bump-my-version release returns Unknown version part: release. And running bump pre_label when the current version is already an rc returns a stack trace ending with the complaint, ValueError: The part has already the maximum value among ['final', 'a', 'b', 'rc'] and cannot be bumped. So one can either bump patch to a later version than the release candidate, or specify a version explicitly; I'm not finding a third option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants