Mercurial > kallithea
comparison rhodecode/__init__.py @ 2165:dc2584ba5fbc
merged beta into default branch
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 28 Mar 2012 19:54:16 +0200 |
parents | 934906f028b5 edbf8c9c21d2 |
children | af8f25f76784 |
comparison
equal
deleted
inserted
replaced
2097:8fd6650bb436 | 2165:dc2584ba5fbc |
---|---|
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://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. |
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, 3) | 29 VERSION = (1, 3, 4) |
30 __version__ = '.'.join((str(each) for each in VERSION[:4])) | 30 |
31 try: | |
32 from rhodecode.lib import get_current_revision | |
33 _rev = get_current_revision() | |
34 if _rev: | |
35 VERSION += ('dev%s' % _rev[0],) | |
36 except ImportError: | |
37 pass | |
38 | |
39 __version__ = ('.'.join((str(each) for each in VERSION[:3])) + | |
40 '.'.join(VERSION[3:])) | |
31 __dbversion__ = 5 # defines current db version for migrations | 41 __dbversion__ = 5 # defines current db version for migrations |
32 __platform__ = platform.system() | 42 __platform__ = platform.system() |
33 __license__ = 'GPLv3' | 43 __license__ = 'GPLv3' |
34 __py_version__ = sys.version_info | 44 __py_version__ = sys.version_info |
35 | 45 |
37 PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') | 47 PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS') |
38 | 48 |
39 requirements = [ | 49 requirements = [ |
40 "Pylons==1.0.0", | 50 "Pylons==1.0.0", |
41 "Beaker==1.6.3", | 51 "Beaker==1.6.3", |
42 "WebHelpers>=1.2", | 52 "WebHelpers==1.3", |
43 "formencode==1.2.4", | 53 "formencode==1.2.4", |
44 "SQLAlchemy==0.7.4", | 54 "SQLAlchemy==0.7.6", |
45 "Mako==0.5.0", | 55 "Mako==0.6.2", |
46 "pygments>=1.4", | 56 "pygments>=1.4", |
47 "whoosh>=2.3.0,<2.4", | 57 "whoosh>=2.3.0,<2.4", |
48 "celery>=2.2.5,<2.3", | 58 "celery>=2.2.5,<2.3", |
49 "babel", | 59 "babel", |
50 "python-dateutil>=1.5.0,<2.0.0", | 60 "python-dateutil>=1.5.0,<2.0.0", |
51 "dulwich>=0.8.0,<0.9.0", | 61 "dulwich>=0.8.4,<0.9.0", |
52 "webob==1.0.8", | 62 "webob==1.0.8", |
53 "markdown==2.1.1", | 63 "markdown==2.1.1", |
54 "docutils==0.8.1", | 64 "docutils==0.8.1", |
55 ] | 65 ] |
56 | 66 |
63 else: | 73 else: |
64 requirements.append("py-bcrypt") | 74 requirements.append("py-bcrypt") |
65 requirements.append("mercurial>=2.1,<2.2") | 75 requirements.append("mercurial>=2.1,<2.2") |
66 | 76 |
67 | 77 |
68 try: | |
69 from rhodecode.lib import get_current_revision | |
70 _rev = get_current_revision(quiet=True) | |
71 except ImportError: | |
72 # this is needed when doing some setup.py operations | |
73 _rev = False | |
74 | |
75 if len(VERSION) > 3 and _rev: | |
76 __version__ += ' [rev:%s]' % _rev[0] | |
77 | |
78 | |
79 def get_version(): | 78 def get_version(): |
80 """Returns shorter version (digit parts only) as string.""" | 79 """Returns shorter version (digit parts only) as string.""" |
81 | 80 |
82 return '.'.join((str(each) for each in VERSION[:3])) | 81 return '.'.join((str(each) for each in VERSION[:3])) |
83 | 82 |
88 | 87 |
89 CELERY_ON = False | 88 CELERY_ON = False |
90 | 89 |
91 # link to config for pylons | 90 # link to config for pylons |
92 CONFIG = {} | 91 CONFIG = {} |
92 | |
93 # Linked module for extensions | |
94 EXTENSIONS = {} |