Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Commit

Permalink
Always include the micro version in project version
Browse files Browse the repository at this point in the history
  • Loading branch information
bruth committed Dec 23, 2013
1 parent 146f36d commit 716fe60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions harvest_project/__init__.py
Expand Up @@ -8,9 +8,7 @@

def get_version(short=False):
assert __version_info__['releaselevel'] in ('alpha', 'beta', 'final')
vers = ["%(major)i.%(minor)i" % __version_info__, ]
if __version_info__['micro']:
vers.append(".%(micro)i" % __version_info__)
vers = ["%(major)i.%(minor)i.%(micro)i" % __version_info__]
if __version_info__['releaselevel'] != 'final' and not short:
vers.append('%s%i' % (__version_info__['releaselevel'][0], __version_info__['serial']))
return ''.join(vers)
Expand Down

0 comments on commit 716fe60

Please sign in to comment.