upstream version string updates require packaging branch changes or manual assignment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned | ||
bzr-builder |
Triaged
|
High
|
Unassigned |
Bug Description
One of the things that has to be updated most often about a daily build is the upstream version. {debupstream} only works if the packaging branch is up to date (and it won't update itself).
It would be great if there was some way to update the upstream version string from the branch that is being built. This will usually depend on the project, but should in general be possible. E.g. in bzr there is a bzrlib.__version__ string, in Samba there is a source4/VERSION file, a lot of python projects have this information in setup.py, etc.
The run command would be one way to support this, but there are other concerns with it (see bug 608450). The run command also doesn't have a way to install extra dependencies that the code it runs might need.
I'm not sure what the best way is to allow upstream version strings to be provided. Perhaps we can allow a custom (Python) script to be provided, which just spits out a version string on stdout ? This could then be made part of the manifest, so the manifest would be repeatable.
tags: | added: recipe |
Changed in launchpad-code: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in bzr-builder: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in launchpad: | |
importance: | Medium → High |
Even just being able to grab a tag would be amazing...
bzr tag 2.9.5-1ppa1
bzr push lp:mycode
recipe: {lasttag:mycode} or latesttag or ...
Then the user can pick what branch (probably packaging branch) that they tag. Of course that would imply that the tag is exactly what's needed for the version string. Example would be.. "2.3.4-9ppa1" or "2.3.9" or "2.3.9-1" would work - but "foo bar" would not work.
I think this is a patch that I could perhaps create.... I'll try but no guarantees what so ever...