git repo's reporting the wrong version

Bug #1351490 reported by Derek Higgins
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Unassigned

Bug Description

(venv)[derekh@fido tripleo-image-elements]$ python setup.py --version
0.0.1.dev67.gaeb7741
(venv)[derekh@fido tripleo-image-elements]$ git tag | sort -V | tail -n 1
0.8.1
(venv)[derekh@fido tripleo-image-elements]$

shouldn't it be 0.8.1.dev67.gaeb7741 ?

looks like dib, heat-templates and incubator also have the same problem

the correct version is reported when the tag and current HEAD match
(venv)[derekh@fido tripleo-image-elements]$ git reset --hard 0.8.1
HEAD is now at c304a06 Merge "Fix argparse issue for RHEL 6.5."
(venv)[derekh@fido tripleo-image-elements]$ python setup.py --version
0.8.1
(venv)[derekh@fido tripleo-image-elements]$

Revision history for this message
Robert Collins (lifeless) wrote :

So this is due to preversioned setup.cfgs, which we shouldn't have. See https://etherpad.openstack.org/p/bad-setup-cfg-versions for the bulk work to fix.

Changed in tripleo:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.