comparison rhodecode/__init__.py @ 807:e8c9ff1da9ba beta

added revision into version for beta
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 05 Dec 2010 00:52:11 +0100
parents e2f3c8e6939d
children c3480c69fa4e
comparison
equal deleted inserted replaced
806:499fa8e87c90 807:e8c9ff1da9ba
1 #!/usr/bin/env python 1 # -*- coding: utf-8 -*-
2 # encoding: utf-8 2 """
3 # RhodeCode, a web based repository management based on pylons 3 package.rhodecode.__init__
4 # Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> 4 ~~~~~~~~~~~~~~
5 # 5
6 RhodeCode, a web based repository management based on pylons
7 versioning implementation: http://semver.org/
8
9 :created_on: Apr 9, 2010
10 :author: marcink
11 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
12 :license: GPLv3, see COPYING for more details.
13 """
6 # This program is free software; you can redistribute it and/or 14 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License 15 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; version 2 16 # as published by the Free Software Foundation; version 2
9 # of the License or (at your opinion) any later version of the license. 17 # of the License or (at your opinion) any later version of the license.
10 # 18 #
15 # 23 #
16 # You should have received a copy of the GNU General Public License 24 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software 25 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 26 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 # MA 02110-1301, USA. 27 # MA 02110-1301, USA.
20 """ 28
21 Created on April 9, 2010
22 RhodeCode, a web based repository management based on pylons
23 versioning implementation: http://semver.org/
24 @author: marcink
25 """
26 29
27 VERSION = (1, 1, 0, 'beta') 30 VERSION = (1, 1, 0, 'beta')
31 __version__ = '.'.join((str(each) for each in VERSION[:4]))
28 32
29 __version__ = '.'.join((str(each) for each in VERSION[:4])) 33
34 from rhodecode.lib.utils import get_current_revision
35 _rev = get_current_revision()
36 if 'beta' in VERSION and _rev:
37 __version__ += ' [rev:%s]' % _rev[0]
30 38
31 def get_version(): 39 def get_version():
32 """ 40 """
33 Returns shorter version (digit parts only) as string. 41 Returns shorter version (digit parts only) as string.
34 """ 42 """