annotate rhodecode/__init__.py @ 3892:3a1cf70e0f42 beta

Fix check statements from () which had no effect really
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 22 May 2013 20:14:48 +0200
parents d7488551578e
children a2de0de0a4a9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
807
e8c9ff1da9ba added revision into version for beta
Marcin Kuzminski <marcin@python-works.com>
parents: 710
diff changeset
1 # -*- coding: utf-8 -*-
e8c9ff1da9ba added revision into version for beta
Marcin Kuzminski <marcin@python-works.com>
parents: 710
diff changeset
2 """
827
c3480c69fa4e small fixes to get_version
Marcin Kuzminski <marcin@python-works.com>
parents: 807
diff changeset
3 rhodecode.__init__
c3480c69fa4e small fixes to get_version
Marcin Kuzminski <marcin@python-works.com>
parents: 807
diff changeset
4 ~~~~~~~~~~~~~~~~~~
807
e8c9ff1da9ba added revision into version for beta
Marcin Kuzminski <marcin@python-works.com>
parents: 710
diff changeset
5
e8c9ff1da9ba added revision into version for beta
Marcin Kuzminski <marcin@python-works.com>
parents: 710
diff changeset
6 RhodeCode, a web based repository management based on pylons
2136
b70721d03e84 pep386 versioning
Marcin Kuzminski <marcin@python-works.com>
parents: 2135
diff changeset
7 versioning implementation: http://www.python.org/dev/peps/pep-0386/
807
e8c9ff1da9ba added revision into version for beta
Marcin Kuzminski <marcin@python-works.com>
parents: 710
diff changeset
8
e8c9ff1da9ba added revision into version for beta
Marcin Kuzminski <marcin@python-works.com>
parents: 710
diff changeset
9 :created_on: Apr 9, 2010
e8c9ff1da9ba added revision into version for beta
Marcin Kuzminski <marcin@python-works.com>
parents: 710
diff changeset
10 :author: marcink
1824
89efedac4e6c 2012 copyrights
Marcin Kuzminski <marcin@python-works.com>
parents: 1822
diff changeset
11 :copyright: (C) 2010-2012 Marcin Kuzminski <marcin@python-works.com>
807
e8c9ff1da9ba added revision into version for beta
Marcin Kuzminski <marcin@python-works.com>
parents: 710
diff changeset
12 :license: GPLv3, see COPYING for more details.
e8c9ff1da9ba added revision into version for beta
Marcin Kuzminski <marcin@python-works.com>
parents: 710
diff changeset
13 """
1206
a671db5bdd58 fixed license issue #149
Marcin Kuzminski <marcin@python-works.com>
parents: 1205
diff changeset
14 # This program is free software: you can redistribute it and/or modify
a671db5bdd58 fixed license issue #149
Marcin Kuzminski <marcin@python-works.com>
parents: 1205
diff changeset
15 # it under the terms of the GNU General Public License as published by
a671db5bdd58 fixed license issue #149
Marcin Kuzminski <marcin@python-works.com>
parents: 1205
diff changeset
16 # the Free Software Foundation, either version 3 of the License, or
a671db5bdd58 fixed license issue #149
Marcin Kuzminski <marcin@python-works.com>
parents: 1205
diff changeset
17 # (at your option) any later version.
1203
6832ef664673 source code cleanup: remove trailing white space, normalize file endings
Marcin Kuzminski <marcin@python-works.com>
parents: 1194
diff changeset
18 #
252
3782a6d698af licensing updates, code cleanups
Marcin Kuzminski <marcin@python-works.com>
parents: 246
diff changeset
19 # This program is distributed in the hope that it will be useful,
3782a6d698af licensing updates, code cleanups
Marcin Kuzminski <marcin@python-works.com>
parents: 246
diff changeset
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
3782a6d698af licensing updates, code cleanups
Marcin Kuzminski <marcin@python-works.com>
parents: 246
diff changeset
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3782a6d698af licensing updates, code cleanups
Marcin Kuzminski <marcin@python-works.com>
parents: 246
diff changeset
22 # GNU General Public License for more details.
1203
6832ef664673 source code cleanup: remove trailing white space, normalize file endings
Marcin Kuzminski <marcin@python-works.com>
parents: 1194
diff changeset
23 #
252
3782a6d698af licensing updates, code cleanups
Marcin Kuzminski <marcin@python-works.com>
parents: 246
diff changeset
24 # You should have received a copy of the GNU General Public License
1206
a671db5bdd58 fixed license issue #149
Marcin Kuzminski <marcin@python-works.com>
parents: 1205
diff changeset
25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1964
b1ad9efeec14 fixed requires files, added distinction on win vs other platforms
Marcin Kuzminski <marcin@python-works.com>
parents: 1903
diff changeset
26 import sys
1118
b0e2c949c34b Fixed Windows installation based on work of Mantis406 fork: "Replace py-bcrypt to make Windows installation easier"
Marcin Kuzminski <marcin@python-works.com>
parents: 902
diff changeset
27 import platform
185
3380ca40cdba added version generation to pylons_app and showed it into template. Propagated baseController with some data for acces into each controller. Fixed simplehg middleware to get proper name of application
Marcin Kuzminski <marcin@python-works.com>
parents: 0
diff changeset
28
3702
a79bb3277b32 bump version of development
Marcin Kuzminski <marcin@python-works.com>
parents: 3699
diff changeset
29 VERSION = (1, 7, 0, 'dev')
3797
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
30 BACKENDS = {
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
31 'hg': 'Mercurial repository',
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
32 'git': 'Git repository',
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
33 }
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
34
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
35 CELERY_ON = False
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
36 CELERY_EAGER = False
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
37
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
38 # link to config for pylons
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
39 CONFIG = {}
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
40
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
41 # Linked module for extensions
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 3714
diff changeset
42 EXTENSIONS = {}
2136
b70721d03e84 pep386 versioning
Marcin Kuzminski <marcin@python-works.com>
parents: 2135
diff changeset
43
b70721d03e84 pep386 versioning
Marcin Kuzminski <marcin@python-works.com>
parents: 2135
diff changeset
44 try:
b70721d03e84 pep386 versioning
Marcin Kuzminski <marcin@python-works.com>
parents: 2135
diff changeset
45 from rhodecode.lib import get_current_revision
b70721d03e84 pep386 versioning
Marcin Kuzminski <marcin@python-works.com>
parents: 2135
diff changeset
46 _rev = get_current_revision()
2171
28d9893d6a23 add dev version only for beta
Marcin Kuzminski <marcin@python-works.com>
parents: 2170
diff changeset
47 if _rev and len(VERSION) > 3:
3702
a79bb3277b32 bump version of development
Marcin Kuzminski <marcin@python-works.com>
parents: 3699
diff changeset
48 VERSION += ('%s' % _rev[0],)
2136
b70721d03e84 pep386 versioning
Marcin Kuzminski <marcin@python-works.com>
parents: 2135
diff changeset
49 except ImportError:
b70721d03e84 pep386 versioning
Marcin Kuzminski <marcin@python-works.com>
parents: 2135
diff changeset
50 pass
b70721d03e84 pep386 versioning
Marcin Kuzminski <marcin@python-works.com>
parents: 2135
diff changeset
51
b70721d03e84 pep386 versioning
Marcin Kuzminski <marcin@python-works.com>
parents: 2135
diff changeset
52 __version__ = ('.'.join((str(each) for each in VERSION[:3])) +
b70721d03e84 pep386 versioning
Marcin Kuzminski <marcin@python-works.com>
parents: 2135
diff changeset
53 '.'.join(VERSION[3:]))
3714
7e3d89d9d3a2 - Manage User’s Groups: create, delete, rename, add/remove users inside.
Marcin Kuzminski <marcin@python-works.com>
parents: 3702
diff changeset
54 __dbversion__ = 12 # defines current db version for migrations
1118
b0e2c949c34b Fixed Windows installation based on work of Mantis406 fork: "Replace py-bcrypt to make Windows installation easier"
Marcin Kuzminski <marcin@python-works.com>
parents: 902
diff changeset
55 __platform__ = platform.system()
1205
f4807acf643d added __license__ into main of rhodecode, PEP8ify
Marcin Kuzminski <marcin@python-works.com>
parents: 1203
diff changeset
56 __license__ = 'GPLv3'
1964
b1ad9efeec14 fixed requires files, added distinction on win vs other platforms
Marcin Kuzminski <marcin@python-works.com>
parents: 1903
diff changeset
57 __py_version__ = sys.version_info
2563
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2464
diff changeset
58 __author__ = 'Marcin Kuzminski'
9382e88eae22 removed import rhodecode from setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 2464
diff changeset
59 __url__ = 'http://rhodecode.org'
185
3380ca40cdba added version generation to pylons_app and showed it into template. Propagated baseController with some data for acces into each controller. Fixed simplehg middleware to get proper name of application
Marcin Kuzminski <marcin@python-works.com>
parents: 0
diff changeset
60
3892
3a1cf70e0f42 Fix check statements from () which had no effect really
Marcin Kuzminski <marcin@python-works.com>
parents: 3797
diff changeset
61 is_windows = __platform__ in ['Windows']
2634
4b17216f2110 Deprecated validation of operating system, we just care if it's windows, let approve all other
Marcin Kuzminski <marcin@python-works.com>
parents: 2563
diff changeset
62 is_unix = not is_windows