Show More
@@ -1,17 +1,17 b'' | |||
|
1 | 1 | Pylons==1.0.0 |
|
2 | 2 | Beaker==1.6.3 |
|
3 | 3 | WebHelpers==1.3 |
|
4 | 4 | formencode==1.2.4 |
|
5 | 5 | SQLAlchemy==0.7.5 |
|
6 |
Mako==0. |
|
|
6 | Mako==0.6.2 | |
|
7 | 7 | pygments>=1.4 |
|
8 | 8 | whoosh>=2.3.0,<2.4 |
|
9 | 9 | celery>=2.2.5,<2.3 |
|
10 | 10 | babel |
|
11 | 11 | python-dateutil>=1.5.0,<2.0.0 |
|
12 | 12 | dulwich>=0.8.0,<0.9.0 |
|
13 | 13 | webob==1.0.8 |
|
14 | 14 | markdown==2.1.1 |
|
15 | 15 | docutils==0.8.1 |
|
16 | 16 | py-bcrypt |
|
17 | 17 | mercurial>=2.1,<2.2 No newline at end of file |
@@ -1,95 +1,95 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://semver.org/ |
|
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, 4, 'beta') |
|
30 | 30 | __version__ = '.'.join((str(each) for each in VERSION[:4])) |
|
31 | 31 | __dbversion__ = 5 # defines current db version for migrations |
|
32 | 32 | __platform__ = platform.system() |
|
33 | 33 | __license__ = 'GPLv3' |
|
34 | 34 | __py_version__ = sys.version_info |
|
35 | 35 | |
|
36 | 36 | PLATFORM_WIN = ('Windows') |
|
37 | 37 | PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') |
|
38 | 38 | |
|
39 | 39 | requirements = [ |
|
40 | 40 | "Pylons==1.0.0", |
|
41 | 41 | "Beaker==1.6.3", |
|
42 | 42 | "WebHelpers==1.3", |
|
43 | 43 | "formencode==1.2.4", |
|
44 | 44 | "SQLAlchemy==0.7.5", |
|
45 |
"Mako==0. |
|
|
45 | "Mako==0.6.2", | |
|
46 | 46 | "pygments>=1.4", |
|
47 | 47 | "whoosh>=2.3.0,<2.4", |
|
48 | 48 | "celery>=2.2.5,<2.3", |
|
49 | 49 | "babel", |
|
50 | 50 | "python-dateutil>=1.5.0,<2.0.0", |
|
51 | 51 | "dulwich>=0.8.0,<0.9.0", |
|
52 | 52 | "webob==1.0.8", |
|
53 | 53 | "markdown==2.1.1", |
|
54 | 54 | "docutils==0.8.1", |
|
55 | 55 | ] |
|
56 | 56 | |
|
57 | 57 | if __py_version__ < (2, 6): |
|
58 | 58 | requirements.append("simplejson") |
|
59 | 59 | requirements.append("pysqlite") |
|
60 | 60 | |
|
61 | 61 | if __platform__ in PLATFORM_WIN: |
|
62 | 62 | requirements.append("mercurial>=2.1,<2.2") |
|
63 | 63 | else: |
|
64 | 64 | requirements.append("py-bcrypt") |
|
65 | 65 | requirements.append("mercurial>=2.1,<2.2") |
|
66 | 66 | |
|
67 | 67 | |
|
68 | 68 | try: |
|
69 | 69 | from rhodecode.lib import get_current_revision |
|
70 | 70 | _rev = get_current_revision() |
|
71 | 71 | except ImportError: |
|
72 | 72 | # this is needed when doing some setup.py operations |
|
73 | 73 | _rev = False |
|
74 | 74 | |
|
75 | 75 | if len(VERSION) > 3 and _rev: |
|
76 | 76 | __version__ += ' [rev:%s]' % _rev[0] |
|
77 | 77 | |
|
78 | 78 | |
|
79 | 79 | def get_version(): |
|
80 | 80 | """Returns shorter version (digit parts only) as string.""" |
|
81 | 81 | |
|
82 | 82 | return '.'.join((str(each) for each in VERSION[:3])) |
|
83 | 83 | |
|
84 | 84 | BACKENDS = { |
|
85 | 85 | 'hg': 'Mercurial repository', |
|
86 | 86 | 'git': 'Git repository', |
|
87 | 87 | } |
|
88 | 88 | |
|
89 | 89 | CELERY_ON = False |
|
90 | 90 | |
|
91 | 91 | # link to config for pylons |
|
92 | 92 | CONFIG = {} |
|
93 | 93 | |
|
94 | 94 | # Linked module for extensions |
|
95 | 95 | EXTENSIONS = {} |
General Comments 0
You need to be logged in to leave comments.
Login now