Bug #2022
Fix way version of Python distribution is extracted from 'git describe'
Status: | Feedback | Start date: | 02/09/2012 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | Kostas Papadimitriou | % Done: | 0% |
|
Category: | deployment | Spent time: | - | |
Target version: | v0.9.0 |
Description
Current snf-common/synnefo/util/version.py extracts the python distribution version from the output of 'git describe' but fails if the latest tag does not start with 'v':
snf-common/synnefo/util/version.py: return "-".join(vcs_info()[3].lstrip('v').split("-")[:-1])
For example, if 'git describe' returns 'packaging/v0.8.3' or 'debian/v0.8.3', the python egg version produced is faulty ('packaging-0.8.3', etc.).
Suggest to remove everything up to the initial '/'.
Associated revisions
Fixed version extraction from git describe
Refs #2022
Fixed version extraction from git describe
Refs #2022
History
#1 Updated by Vangelis Koukis over 11 years ago
Also, this seems to fail for "python setup.py install". The version is determined as "0.0.0".
#2 Updated by Kostas Papadimitriou over 10 years ago
fixed in 0fb30b2
#3 Updated by Kostas Papadimitriou over 10 years ago
- Status changed from Assigned to Feedback