##// END OF EJS Templates
typo fix
marcink -
r2273:7b4bd52e default
parent child Browse files
Show More
@@ -1,97 +1,97 b''
1 1 # -*- coding: utf-8 -*-
2 2 """
3 3 rhodecode.__init__
4 4 ~~~~~~~~~~~~~~~~~~
5 5
6 6 RhodeCode, a web based repository management based on pylons
7 7 versioning implementation: http://www.python.org/dev/peps/pep-0386/
8 8
9 9 :created_on: Apr 9, 2010
10 10 :author: marcink
11 11 :copyright: (C) 2010-2012 Marcin Kuzminski <marcin@python-works.com>
12 12 :license: GPLv3, see COPYING for more details.
13 13 """
14 14 # This program is free software: you can redistribute it and/or modify
15 15 # it under the terms of the GNU General Public License as published by
16 16 # the Free Software Foundation, either version 3 of the License, or
17 17 # (at your option) any later version.
18 18 #
19 19 # This program is distributed in the hope that it will be useful,
20 20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 22 # GNU General Public License for more details.
23 23 #
24 24 # You should have received a copy of the GNU General Public License
25 25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 26 import sys
27 27 import platform
28 28
29 29 VERSION = (1, 3, 6)
30 30
31 31 try:
32 32 from rhodecode.lib import get_current_revision
33 _rev = get_current_revision(quite=True)
33 _rev = get_current_revision(quiet=True)
34 34 if _rev and len(VERSION) > 3:
35 35 VERSION += ('dev%s' % _rev[0],)
36 36 except ImportError:
37 37 pass
38 38
39 39 __version__ = ('.'.join((str(each) for each in VERSION[:3])) +
40 40 '.'.join(VERSION[3:]))
41 41 __dbversion__ = 5 # defines current db version for migrations
42 42 __platform__ = platform.system()
43 43 __license__ = 'GPLv3'
44 44 __py_version__ = sys.version_info
45 45
46 46 PLATFORM_WIN = ('Windows')
47 47 PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS')
48 48
49 49 is_windows = __platform__ in PLATFORM_WIN
50 50 is_unix = __platform__ in PLATFORM_OTHERS
51 51
52 52 requirements = [
53 53 "Pylons==1.0.0",
54 54 "Beaker==1.6.3",
55 55 "WebHelpers==1.3",
56 56 "formencode==1.2.4",
57 57 "SQLAlchemy==0.7.6",
58 58 "Mako==0.7.0",
59 59 "pygments>=1.4",
60 60 "whoosh>=2.4.0,<2.5",
61 61 "celery>=2.2.5,<2.3",
62 62 "babel",
63 63 "python-dateutil>=1.5.0,<2.0.0",
64 64 "dulwich>=0.8.5,<0.9.0",
65 65 "webob==1.0.8",
66 66 "markdown==2.1.1",
67 67 "docutils==0.8.1",
68 68 "simplejson==2.5.2",
69 69 ]
70 70
71 71 if __py_version__ < (2, 6):
72 72 requirements.append("pysqlite")
73 73
74 74 if is_windows:
75 75 requirements.append("mercurial>=2.2.1,<2.3")
76 76 else:
77 77 requirements.append("py-bcrypt")
78 78 requirements.append("mercurial>=2.2.1,<2.3")
79 79
80 80
81 81 def get_version():
82 82 """Returns shorter version (digit parts only) as string."""
83 83
84 84 return '.'.join((str(each) for each in VERSION[:3]))
85 85
86 86 BACKENDS = {
87 87 'hg': 'Mercurial repository',
88 88 'git': 'Git repository',
89 89 }
90 90
91 91 CELERY_ON = False
92 92
93 93 # link to config for pylons
94 94 CONFIG = {}
95 95
96 96 # Linked module for extensions
97 97 EXTENSIONS = {}
General Comments 0
You need to be logged in to leave comments. Login now