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