Questions tagged [bump2version]
8 questions
16
votes
1 answer
Is there a need for bumpversion (or bump2version) when setuptools_scm is available?
TLDR;
The question is as the title says.
To bump or not to bump?
I started using bump2version and then discovered setuptools_scm (fairly new to developing full-fledged python programs) and now I am…

Ahmed Masud
- 21,655
- 3
- 33
- 58
7
votes
1 answer
bump2version to increment pre-release while removing post-release segment
How would I use bump2version (with regards to its invocation and/or its configuration) to increment:
1.0.0.a2.post0 # post-release of a pre-release a2
to
1.0.0.a3 # pre-release a3
Reproducible example:
$ python3 -m pip install…

Brad Solomon
- 38,521
- 31
- 149
- 235
4
votes
1 answer
How to use bump2version to create a custom version tag
We use bump2version to version our builds and releases in Gitlab, using a simple major.minor.patch (1.1.17) format.
Sometimes, however, it's useful to create versions outside the regular pipeline, with a custom version format, e.g.…

Totte Karlsson
- 1,261
- 1
- 20
- 55
2
votes
1 answer
How can I use multi-line matching in a bump2version config file?
I want to use bump2version for a file that looks like this (it's a rust Cargo.toml):
[package]
name = "my_super_package"
version = "0.1.34"
...
[dependencies]
my_other_super_package = { path = "../yadayadayada", version = "0.1.34", registry =…

mpersico
- 766
- 7
- 19
1
vote
1 answer
No Pre-Release Tags if Major Version is 0
I am using bump2version with semantic versioning. Is there a way to prevent the pre-release components of a tag from appearing if the major verison is 0 (i.e. rapid development?). As it stands, my .bumpversion.cfg is
[bumpversion]
current_version =…

adam.hendry
- 4,458
- 5
- 24
- 51
1
vote
1 answer
Automation of releases with gitlab CI and bump2version
I am new on gitlab and I have a python package for which I want to automate the next releases. I would like to have for :
A merge on master => creates a new minor version
A tag => creates a new major version.
I need a help to do this. does my…

LotF
- 31
- 4
0
votes
0 answers
App working on Android 13 in release and debug mode but crashes on Android 12 and earlier release mode after updating react native version
I'm currently upgrading react native version in my app from 0.64.3 to 0.69.2, I'm also moving to new architecture, i made all the necessary changes for updating, made changes in manifest and so on to bump to api level 31 from 30, and updated some…

Zero0
- 371
- 4
- 15
0
votes
1 answer
bump2version fails to find the current release tag
I've been upgrading our workflow to add an automatic version bump. The problem is that I accidentally added these steps with a typo in the .bumpversion.cfg file and from that moment, the workflow is sure that the releases start at tag 1.0.0. I've…

Killerz0ne
- 254
- 1
- 2
- 12