Show More
@@ -1,56 +1,56 b'' | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | """ |
|
2 | """ | |
3 | rhodecode.__init__ |
|
3 | rhodecode.__init__ | |
4 | ~~~~~~~~~~~~~~~~~~ |
|
4 | ~~~~~~~~~~~~~~~~~~ | |
5 |
|
5 | |||
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 modify |
|
14 | # This program is free software: you can redistribute it and/or modify | |
15 | # it under the terms of the GNU General Public License as published by |
|
15 | # it under the terms of the GNU General Public License as published by | |
16 | # the Free Software Foundation, either version 3 of the License, or |
|
16 | # the Free Software Foundation, either version 3 of the License, or | |
17 | # (at your option) any later version. |
|
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, see <http://www.gnu.org/licenses/>. |
|
25 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
26 | import platform |
|
26 | import platform | |
27 |
|
27 | |||
28 | VERSION = (1, 2, 2) |
|
28 | VERSION = (1, 2, 2) | |
29 | __version__ = '.'.join((str(each) for each in VERSION[:4])) |
|
29 | __version__ = '.'.join((str(each) for each in VERSION[:4])) | |
30 | __dbversion__ = 3 #defines current db version for migrations |
|
30 | __dbversion__ = 3 #defines current db version for migrations | |
31 | __platform__ = platform.system() |
|
31 | __platform__ = platform.system() | |
32 | __license__ = 'GPLv3' |
|
32 | __license__ = 'GPLv3' | |
33 |
|
33 | |||
34 | PLATFORM_WIN = ('Windows') |
|
34 | PLATFORM_WIN = ('Windows') | |
35 | PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') |
|
35 | PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') | |
36 |
|
36 | |||
37 | try: |
|
37 | try: | |
38 | from rhodecode.lib import get_current_revision |
|
38 | from rhodecode.lib import get_current_revision | |
39 | _rev = get_current_revision() |
|
39 | _rev = get_current_revision(quiet=True) | |
40 | except ImportError: |
|
40 | except ImportError: | |
41 | #this is needed when doing some setup.py operations |
|
41 | #this is needed when doing some setup.py operations | |
42 | _rev = False |
|
42 | _rev = False | |
43 |
|
43 | |||
44 | if len(VERSION) > 3 and _rev: |
|
44 | if len(VERSION) > 3 and _rev: | |
45 | __version__ += ' [rev:%s]' % _rev[0] |
|
45 | __version__ += ' [rev:%s]' % _rev[0] | |
46 |
|
46 | |||
47 |
|
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 | |||
53 | BACKENDS = { |
|
53 | BACKENDS = { | |
54 | 'hg': 'Mercurial repository', |
|
54 | 'hg': 'Mercurial repository', | |
55 | #'git': 'Git repository', |
|
55 | #'git': 'Git repository', | |
56 | } |
|
56 | } |
General Comments 0
You need to be logged in to leave comments.
Login now