← Back to team overview

dailydebs-team team mailing list archive

Deriving the version number

 

Hi,

In bzr-builder you can use information to build up parts of the
version number from say the revno of the branch. This works well
for the job it does, but there is still one thing that could work
better.

The "main" version number of the package generally depends on what
version number has been assigned to the branch you are working on,
so it will generally change when releases are made.

Currently this requires you to edit the recipe to bump the version
number.

It would be great to do this automatically if the information could
be extracted programatically, e.g. from a setup.py file, or tags on
the branch.

For the setup.py case there are many different ways of doing this,
so there would have to be something like a command to run that output
the version number, but I'm not sure what an elegant way to do this
would be.

For the tag case it would be possible to have a heuristic that used
the tag name from the last revision (like git-describe for those that
know it), but this would fall down in some cases. Are there projects
where doing this would be enough for people?

Thanks,

James