Merge lp:~javier.collado/utah/bug1152216 into lp:utah
Status: | Merged |
---|---|
Approved by: | Javier Collado |
Approved revision: | no longer in the source branch. |
Merged at revision: | 869 |
Proposed branch: | lp:~javier.collado/utah/bug1152216 |
Merge into: | lp:utah |
Diff against target: |
88 lines (+29/-1) 5 files modified
debian/changelog (+1/-0) debian/control (+1/-1) debian/rules (+7/-0) examples/run_utah_tests.py (+2/-0) utah/__init__.py (+18/-0) |
To merge this branch: | bzr merge lp:~javier.collado/utah/bug1152216 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Javier Collado (community) | Approve | ||
Max Brustkern (community) | Approve | ||
Review via email: mp+158437@code.launchpad.net |
Description of the change
This branch writes to log the utah version number as soon as logging is
configured. Besides this, two new attributes have been created for the utah
module: __revno__ and __version__.
The idea is to reproduce the same version number as the one for the packages in
the launchpad PPA in a way that doesn't need to check the apt cache and with a
fallback version number when running the code from the branch:
$ python -c "import utah; print utah.__version__"
dev-r865~quantal
$ python -c "import utah; print utah.__version__"
0.10ubuntu1-
The new logging statement has only been added to run_utah_test.py, since the
other scripts are now considered to be deprecated.
There's a problem with `bzr revno` when building the package with pbuilder. I'm
looking into it, so that the version number is correctly generated when
building in a PPA.