Show More
@@ -1,18 +1,18 b'' | |||||
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. |
|
5 | SQLAlchemy==0.7.8 | |
6 | Mako==0.7.0 |
|
6 | Mako==0.7.0 | |
7 | pygments>=1.4 |
|
7 | pygments>=1.4 | |
8 | whoosh>=2.4.0,<2.5 |
|
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 | simplejson==2.5.2 |
|
16 | simplejson==2.5.2 | |
17 | py-bcrypt |
|
17 | py-bcrypt | |
18 | mercurial>=2.2.2,<2.3 No newline at end of file |
|
18 | mercurial>=2.2.2,<2.3 |
@@ -1,98 +1,98 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://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, 4, 0, 'b') |
|
29 | VERSION = (1, 4, 0, '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__ = 6 # defines current db version for migrations |
|
41 | __dbversion__ = 6 # 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 | is_windows = __platform__ in PLATFORM_WIN |
|
49 | is_windows = __platform__ in PLATFORM_WIN | |
50 | is_unix = __platform__ in PLATFORM_OTHERS |
|
50 | is_unix = __platform__ in PLATFORM_OTHERS | |
51 |
|
51 | |||
52 | requirements = [ |
|
52 | requirements = [ | |
53 | "Pylons==1.0.0", |
|
53 | "Pylons==1.0.0", | |
54 | "Beaker==1.6.3", |
|
54 | "Beaker==1.6.3", | |
55 | "WebHelpers==1.3", |
|
55 | "WebHelpers==1.3", | |
56 | "formencode==1.2.4", |
|
56 | "formencode==1.2.4", | |
57 |
"SQLAlchemy==0.7. |
|
57 | "SQLAlchemy==0.7.8", | |
58 | "Mako==0.7.0", |
|
58 | "Mako==0.7.0", | |
59 | "pygments>=1.4", |
|
59 | "pygments>=1.4", | |
60 | "whoosh>=2.4.0,<2.5", |
|
60 | "whoosh>=2.4.0,<2.5", | |
61 | "celery>=2.2.5,<2.3", |
|
61 | "celery>=2.2.5,<2.3", | |
62 | "babel", |
|
62 | "babel", | |
63 | "python-dateutil>=1.5.0,<2.0.0", |
|
63 | "python-dateutil>=1.5.0,<2.0.0", | |
64 | "dulwich>=0.8.5,<0.9.0", |
|
64 | "dulwich>=0.8.5,<0.9.0", | |
65 | "webob==1.0.8", |
|
65 | "webob==1.0.8", | |
66 | "markdown==2.1.1", |
|
66 | "markdown==2.1.1", | |
67 | "docutils==0.8.1", |
|
67 | "docutils==0.8.1", | |
68 | "simplejson==2.5.2", |
|
68 | "simplejson==2.5.2", | |
69 | ] |
|
69 | ] | |
70 |
|
70 | |||
71 | if __py_version__ < (2, 6): |
|
71 | if __py_version__ < (2, 6): | |
72 | requirements.append("pysqlite") |
|
72 | requirements.append("pysqlite") | |
73 |
|
73 | |||
74 | if is_windows: |
|
74 | if is_windows: | |
75 | requirements.append("mercurial>=2.2.2,<2.3") |
|
75 | requirements.append("mercurial>=2.2.2,<2.3") | |
76 | else: |
|
76 | else: | |
77 | requirements.append("py-bcrypt") |
|
77 | requirements.append("py-bcrypt") | |
78 | requirements.append("mercurial>=2.2.2,<2.3") |
|
78 | requirements.append("mercurial>=2.2.2,<2.3") | |
79 |
|
79 | |||
80 |
|
80 | |||
81 | def get_version(): |
|
81 | def get_version(): | |
82 | """Returns shorter version (digit parts only) as string.""" |
|
82 | """Returns shorter version (digit parts only) as string.""" | |
83 |
|
83 | |||
84 | return '.'.join((str(each) for each in VERSION[:3])) |
|
84 | return '.'.join((str(each) for each in VERSION[:3])) | |
85 |
|
85 | |||
86 | BACKENDS = { |
|
86 | BACKENDS = { | |
87 | 'hg': 'Mercurial repository', |
|
87 | 'hg': 'Mercurial repository', | |
88 | 'git': 'Git repository', |
|
88 | 'git': 'Git repository', | |
89 | } |
|
89 | } | |
90 |
|
90 | |||
91 | CELERY_ON = False |
|
91 | CELERY_ON = False | |
92 | CELERY_EAGER = False |
|
92 | CELERY_EAGER = False | |
93 |
|
93 | |||
94 | # link to config for pylons |
|
94 | # link to config for pylons | |
95 | CONFIG = {} |
|
95 | CONFIG = {} | |
96 |
|
96 | |||
97 | # Linked module for extensions |
|
97 | # Linked module for extensions | |
98 | EXTENSIONS = {} |
|
98 | EXTENSIONS = {} |
General Comments 0
You need to be logged in to leave comments.
Login now