Version bumping works locally, but not in gitlab-ci. Is there a good working example you can share? #139
Unanswered
scollinstc
asked this question in
Q&A
Replies: 1 comment
-
|
The first thing I would suggest is changing Next, you didn't show any file configurations for places you want the version changed in your package. Do you have them? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I chose to use bump-my-version for a python package I developed.
Everything works great with it locally--- however, I noticed if I use it in my gitlab-ci.yml pipeline, when I build using
pyproject.toml, it's not picking up the version numbers and is setting them to 0.0.0.I am using simple semantic versioning and pretty much just copied and pasted the snippet from
bump-my-version sample-config --no-prompt --destination .bumpversion.tomlinto pyproject.toml under the tag , after setting that my version is variable.The pertinent parts of the files look like this:
And for the pertinent part of the gitlab-ci file:
What am I missing to make sure the new version number is actually available to the build process? Thanks!
NOTE: I'll be happy to do a pull request to the documentation with working examples addressing this once this question is answered, if desired.
Beta Was this translation helpful? Give feedback.
All reactions