forked from openlp/openlp
Pull the version number from the tag.
This commit is contained in:
parent
77e55da0d3
commit
7efd037024
6
setup.py
6
setup.py
@ -8,15 +8,15 @@ try:
|
|||||||
b = Branch.open_containing('.')[0]
|
b = Branch.open_containing('.')[0]
|
||||||
b.lock_read()
|
b.lock_read()
|
||||||
try:
|
try:
|
||||||
revno = b.revno()
|
|
||||||
# Add the latest tag in here too
|
|
||||||
verno = b.tags.get_tag_dict().keys()[0]
|
verno = b.tags.get_tag_dict().keys()[0]
|
||||||
|
revno = b.revno()
|
||||||
finally:
|
finally:
|
||||||
b.unlock()
|
b.unlock()
|
||||||
except:
|
except:
|
||||||
|
verno = '1.9.0'
|
||||||
revno = 0
|
revno = 0
|
||||||
|
|
||||||
version = '1.9.1-bzr%s' % revno
|
version = '%s-bzr%s' % (verno, revno)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='OpenLP',
|
name='OpenLP',
|
||||||
|
Loading…
Reference in New Issue
Block a user