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