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