comparison rhodecode/__init__.py @ 1209:45fed9a435b7

merges for upcoming release
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 05 Apr 2011 12:08:34 +0200
parents bd102f45950f
children 73434499fa72
comparison
equal deleted inserted replaced
1172:bd102f45950f 1209:45fed9a435b7
6 RhodeCode, a web based repository management based on pylons 6 RhodeCode, a web based repository management based on pylons
7 versioning implementation: http://semver.org/ 7 versioning implementation: http://semver.org/
8 8
9 :created_on: Apr 9, 2010 9 :created_on: Apr 9, 2010
10 :author: marcink 10 :author: marcink
11 :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> 11 :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
12 :license: GPLv3, see COPYING for more details. 12 :license: GPLv3, see COPYING for more details.
13 """ 13 """
14 # This program is free software; you can redistribute it and/or 14 # This program is free software: you can redistribute it and/or modify
15 # modify it under the terms of the GNU General Public License 15 # it under the terms of the GNU General Public License as published by
16 # as published by the Free Software Foundation; version 2 16 # the Free Software Foundation, either version 3 of the License, or
17 # of the License or (at your opinion) any later version of the license. 17 # (at your option) any later version.
18 # 18 #
19 # This program is distributed in the hope that it will be useful, 19 # This program is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of 20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details. 22 # GNU General Public License for more details.
23 # 23 #
24 # 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
25 # along with this program; if not, write to the Free Software 25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
27 # MA 02110-1301, USA.
28 import platform 26 import platform
29 27
30 VERSION = (1, 1, 7) 28 VERSION = (1, 1, 8)
31 __version__ = '.'.join((str(each) for each in VERSION[:4])) 29 __version__ = '.'.join((str(each) for each in VERSION[:4]))
32 __dbversion__ = 2 #defines current db version for migrations 30 __dbversion__ = 2 # defines current db version for migrations
33 __platform__ = platform.system() 31 __platform__ = platform.system()
32 __license__ = 'GPLv3'
34 33
35 PLATFORM_WIN = ('Windows',) 34 PLATFORM_WIN = ('Windows',)
36 PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD',) 35 PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD',)
37 36
38 try: 37 try:
43 _rev = False 42 _rev = False
44 43
45 if len(VERSION) > 3 and _rev: 44 if len(VERSION) > 3 and _rev:
46 __version__ += ' [rev:%s]' % _rev[0] 45 __version__ += ' [rev:%s]' % _rev[0]
47 46
47
48 def get_version(): 48 def get_version():
49 """Returns shorter version (digit parts only) as string.""" 49 """Returns shorter version (digit parts only) as string."""
50 50
51 return '.'.join((str(each) for each in VERSION[:3])) 51 return '.'.join((str(each) for each in VERSION[:3]))
52 52