##// END OF EJS Templates
fixed some problems with python setup.py operations due to import problems
marcink -
r852:b76da6f2 beta
parent child Browse files
Show More
@@ -1,48 +1,52
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-2010 Marcin Kuzminski <marcin@python-works.com>
11 :copyright: (C) 2009-2010 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
15 # modify it under the terms of the GNU General Public License
15 # modify it under the terms of the GNU General Public License
16 # as published by the Free Software Foundation; version 2
16 # as published by the Free Software Foundation; version 2
17 # 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.
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, write to the Free Software
26 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
26 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
27 # MA 02110-1301, USA.
27 # MA 02110-1301, USA.
28
28
29
29
30 VERSION = (1, 1, 0, 'beta')
30 VERSION = (1, 1, 0, 'beta')
31 __version__ = '.'.join((str(each) for each in VERSION[:4]))
31 __version__ = '.'.join((str(each) for each in VERSION[:4]))
32 __dbversion__ = 2 #defines current db version for migrations
32 __dbversion__ = 2 #defines current db version for migrations
33
33
34 try:
34 from rhodecode.lib.utils import get_current_revision
35 from rhodecode.lib.utils import get_current_revision
35 _rev = get_current_revision()
36 _rev = get_current_revision()
37 except ImportError:
38 #this is needed when doing some setup.py operations
39 _rev = False
36
40
37 if len(VERSION) > 3 and _rev:
41 if len(VERSION) > 3 and _rev:
38 __version__ += ' [rev:%s]' % _rev[0]
42 __version__ += ' [rev:%s]' % _rev[0]
39
43
40 def get_version():
44 def get_version():
41 """Returns shorter version (digit parts only) as string."""
45 """Returns shorter version (digit parts only) as string."""
42
46
43 return '.'.join((str(each) for each in VERSION[:3]))
47 return '.'.join((str(each) for each in VERSION[:3]))
44
48
45 BACKENDS = {
49 BACKENDS = {
46 'hg': 'Mercurial repository',
50 'hg': 'Mercurial repository',
47 #'git': 'Git repository',
51 #'git': 'Git repository',
48 }
52 }
General Comments 0
You need to be logged in to leave comments. Login now