I've got some standard automation for a small mono-repo that I've setup and I'm managing it with Poetry since most of the library packages are Python. I'd really like to use automated versioning that's built into poetry combined with the poetry_bumpversion plugin. Since it supports file specific replacement of embedded versions
eg.... convert __version__= "0.0.1"
to __version__= "0.0.2"
I'm finding this tool works on incrementing DESCRIPTION file versions for R too, which is awesome. You just have to configure it as such in your pyproject toml file:
[[tool.poetry_bumpversion.replacements]]
files = ["DESCRIPTION"]
search = 'Version: {current_version}'
replace = 'Version: {new_version}'
Anyway, I'd like to use this tool not just for major, minor, and patch releases but also for the various pre- version bumps too using poetry. For example a pre-patch increment would increment from 2.1.1
to 2.1.2a0
or a pre-minor 2.1.1
to 2.2.0a0
. My question is does R/RStudio play nice with the appended values that come with Poetry's pre appended versioning?
I know you can be very specific about the version you install using devtools, for example:
devtools::install_version("coolPackage", version="2.2.0a0")
which is what I'd like but I'd rather not someone use install.packages("coolPackage")
and install 2.2.0a0
by default, I'd rather they stick with non-pre packages; 2.1.1
in this case.