Mercurial > kallithea
comparison rhodecode/__init__.py @ 1965:2ba965341189
freeze hg version to 2.0.1 for windows due to a bug in mercurial that breaks forking in rhodecode-win
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 28 Jan 2012 18:11:45 +0200 |
parents | afe8cfa32a0f |
children | 82a88013a3fd |
comparison
equal
deleted
inserted
replaced
1962:1ce36a5f2305 | 1965:2ba965341189 |
---|---|
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 platform | 27 import platform |
27 | 28 |
28 VERSION = (1, 2, 5) | 29 VERSION = (1, 2, 5) |
29 __version__ = '.'.join((str(each) for each in VERSION[:4])) | 30 __version__ = '.'.join((str(each) for each in VERSION[:4])) |
30 __dbversion__ = 3 # defines current db version for migrations | 31 __dbversion__ = 3 # defines current db version for migrations |
31 __platform__ = platform.system() | 32 __platform__ = platform.system() |
32 __license__ = 'GPLv3' | 33 __license__ = 'GPLv3' |
34 __py_version__ = sys.version_info | |
33 | 35 |
34 PLATFORM_WIN = ('Windows') | 36 PLATFORM_WIN = ('Windows') |
35 PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') | 37 PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') |
36 | 38 |
37 requirements = [ | 39 requirements = [ |
40 "WebHelpers>=1.2", | 42 "WebHelpers>=1.2", |
41 "formencode==1.2.4", | 43 "formencode==1.2.4", |
42 "SQLAlchemy==0.7.4", | 44 "SQLAlchemy==0.7.4", |
43 "Mako==0.5.0", | 45 "Mako==0.5.0", |
44 "pygments>=1.4", | 46 "pygments>=1.4", |
45 "mercurial>=2.0,<2.1", | |
46 "whoosh<1.8", | 47 "whoosh<1.8", |
47 "celery>=2.2.5,<2.3", | 48 "celery>=2.2.5,<2.3", |
48 "babel", | 49 "babel", |
49 "python-dateutil>=1.5.0,<2.0.0", | 50 "python-dateutil>=1.5.0,<2.0.0", |
50 "dulwich>=0.8.0,<0.9.0", | 51 "dulwich>=0.8.0,<0.9.0", |
51 "vcs==0.2.2", | 52 "vcs==0.2.2", |
52 "webob==1.0.8" | 53 "webob==1.0.8" |
53 ] | 54 ] |
55 | |
56 if __py_version__ < (2, 6): | |
57 requirements.append("simplejson") | |
58 requirements.append("pysqlite") | |
59 | |
60 if __platform__ in PLATFORM_WIN: | |
61 requirements.append("mercurial==2.0.1") | |
62 else: | |
63 requirements.append("py-bcrypt") | |
64 requirements.append("mercurial==2.0.2") | |
54 | 65 |
55 | 66 |
56 try: | 67 try: |
57 from rhodecode.lib import get_current_revision | 68 from rhodecode.lib import get_current_revision |
58 _rev = get_current_revision(quiet=True) | 69 _rev = get_current_revision(quiet=True) |