##// END OF EJS Templates
release: 0.3
Andrew Shadura -
r5528:9b3e9e24 0.3 stable
parent child Browse files
Show More
@@ -1,95 +1,95 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 # This program is free software: you can redistribute it and/or modify
2 # This program is free software: you can redistribute it and/or modify
3 # it under the terms of the GNU General Public License as published by
3 # it under the terms of the GNU General Public License as published by
4 # the Free Software Foundation, either version 3 of the License, or
4 # the Free Software Foundation, either version 3 of the License, or
5 # (at your option) any later version.
5 # (at your option) any later version.
6 #
6 #
7 # This program is distributed in the hope that it will be useful,
7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 # GNU General Public License for more details.
10 # GNU General Public License for more details.
11 #
11 #
12 # You should have received a copy of the GNU General Public License
12 # You should have received a copy of the GNU General Public License
13 # along with this program. If not, see <http://www.gnu.org/licenses/>.
13 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14 """
14 """
15 kallithea
15 kallithea
16 ~~~~~~~~~
16 ~~~~~~~~~
17
17
18 Kallithea, a web based repository management based on pylons
18 Kallithea, a web based repository management based on pylons
19 versioning implementation: http://www.python.org/dev/peps/pep-0386/
19 versioning implementation: http://www.python.org/dev/peps/pep-0386/
20
20
21 This file was forked by the Kallithea project in July 2014.
21 This file was forked by the Kallithea project in July 2014.
22 Original author and date, and relevant copyright and licensing information is below:
22 Original author and date, and relevant copyright and licensing information is below:
23 :created_on: Apr 9, 2010
23 :created_on: Apr 9, 2010
24 :author: marcink
24 :author: marcink
25 :copyright: (c) 2013 RhodeCode GmbH, (C) 2014 Bradley M. Kuhn, and others.
25 :copyright: (c) 2013 RhodeCode GmbH, (C) 2014 Bradley M. Kuhn, and others.
26 :license: GPLv3, see LICENSE.md for more details.
26 :license: GPLv3, see LICENSE.md for more details.
27 """
27 """
28
28
29 import sys
29 import sys
30 import platform
30 import platform
31
31
32 VERSION = (0, 2, 9)
32 VERSION = (0, 3)
33 BACKENDS = {
33 BACKENDS = {
34 'hg': 'Mercurial repository',
34 'hg': 'Mercurial repository',
35 'git': 'Git repository',
35 'git': 'Git repository',
36 }
36 }
37
37
38 CELERY_ON = False
38 CELERY_ON = False
39 CELERY_EAGER = False
39 CELERY_EAGER = False
40
40
41 # link to config for pylons
41 # link to config for pylons
42 CONFIG = {}
42 CONFIG = {}
43
43
44 # Linked module for extensions
44 # Linked module for extensions
45 EXTENSIONS = {}
45 EXTENSIONS = {}
46
46
47 # BRAND controls internal references in database and config to the products
47 # BRAND controls internal references in database and config to the products
48 # own name.
48 # own name.
49 #
49 #
50 # NOTE: If you want compatibility with a database that was originally created
50 # NOTE: If you want compatibility with a database that was originally created
51 # for use with the RhodeCode software product, change BRAND to "rhodecode",
51 # for use with the RhodeCode software product, change BRAND to "rhodecode",
52 # either by editing here or by creating a new file:
52 # either by editing here or by creating a new file:
53 # echo "BRAND = 'rhodecode'" > kallithea/brand.py
53 # echo "BRAND = 'rhodecode'" > kallithea/brand.py
54
54
55 BRAND = "kallithea"
55 BRAND = "kallithea"
56 try:
56 try:
57 from kallithea.brand import BRAND
57 from kallithea.brand import BRAND
58 except ImportError:
58 except ImportError:
59 pass
59 pass
60
60
61 # Prefix for the ui and settings table names
61 # Prefix for the ui and settings table names
62 DB_PREFIX = (BRAND + "_") if BRAND != "kallithea" else ""
62 DB_PREFIX = (BRAND + "_") if BRAND != "kallithea" else ""
63
63
64 # Users.extern_type and .extern_name value for local users
64 # Users.extern_type and .extern_name value for local users
65 EXTERN_TYPE_INTERNAL = BRAND if BRAND != 'kallithea' else 'internal'
65 EXTERN_TYPE_INTERNAL = BRAND if BRAND != 'kallithea' else 'internal'
66
66
67 # db_migrate_version.repository_id value, same as kallithea/lib/dbmigrate/migrate.cfg
67 # db_migrate_version.repository_id value, same as kallithea/lib/dbmigrate/migrate.cfg
68 DB_MIGRATIONS = BRAND + "_db_migrations"
68 DB_MIGRATIONS = BRAND + "_db_migrations"
69
69
70 try:
70 try:
71 from kallithea.lib import get_current_revision
71 from kallithea.lib import get_current_revision
72 _rev = get_current_revision(quiet=True)
72 _rev = get_current_revision(quiet=True)
73 if _rev and len(VERSION) > 3:
73 if _rev and len(VERSION) > 3:
74 VERSION += (_rev[0],)
74 VERSION += (_rev[0],)
75 except ImportError:
75 except ImportError:
76 pass
76 pass
77
77
78 __version__ = ('.'.join((str(each) for each in VERSION[:3])))
78 __version__ = ('.'.join((str(each) for each in VERSION[:3])))
79 __dbversion__ = 31 # defines current db version for migrations
79 __dbversion__ = 31 # defines current db version for migrations
80 __platform__ = platform.system()
80 __platform__ = platform.system()
81 __license__ = 'GPLv3'
81 __license__ = 'GPLv3'
82 __py_version__ = sys.version_info
82 __py_version__ = sys.version_info
83 __author__ = "Various Authors"
83 __author__ = "Various Authors"
84 __url__ = 'https://kallithea-scm.org/'
84 __url__ = 'https://kallithea-scm.org/'
85
85
86 is_windows = __platform__ in ['Windows']
86 is_windows = __platform__ in ['Windows']
87 is_unix = not is_windows
87 is_unix = not is_windows
88
88
89 if len(VERSION) > 3:
89 if len(VERSION) > 3:
90 __version__ += '.'+VERSION[3]
90 __version__ += '.'+VERSION[3]
91
91
92 if len(VERSION) > 4:
92 if len(VERSION) > 4:
93 __version__ += VERSION[4]
93 __version__ += VERSION[4]
94 else:
94 else:
95 __version__ += '0'
95 __version__ += '0'
General Comments 0
You need to be logged in to leave comments. Login now