Skip to content

Parse/Serialize with additional version numbers #34

@apetrynet

Description

@apetrynet

Hi!

I'm trying to implement bumpversion in my workflow.
What I want bumped is the version number for a *.deb package. The problem is that deb versioning has the following syntax:

mypackage_0.0.10-storm0_amd64.deb

I have this cfg:

[bumpversion]
current_version = 0.0.10-storm0
serialize = {major}.{minor}.{patch}-storm{package}
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)-storm(?P<package>\d+)
files = Makefile

And my Makefile to be bumped:

...
NAME = mypackage0
VERSION = 0.0.10-storm0
...

If I run the following command the package number (-storm0) part gets removed in both .bumpversion.cfg and Makefile.

bumpversion patch

But command line like this works:

bumpversion --parse '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)-storm(?P<package>\d+)' --serialize '{major}.{minor}.{patch}-storm{package}' patch

Is there something wrong with my config file or is this not possible to do?
Also, is there now or would it in the future be possible to bump the custom package number as well?

Thanks,
-Daniel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions