__init__.py
59 lines
| 1.7 KiB
| text/x-python
|
PythonLexer
/ kallithea / __init__.py
Bradley M. Kuhn
|
r4187 | # -*- coding: utf-8 -*- | ||
# This program is free software: you can redistribute it and/or modify | ||||
# it under the terms of the GNU General Public License as published by | ||||
# the Free Software Foundation, either version 3 of the License, or | ||||
# (at your option) any later version. | ||||
# | ||||
# This program is distributed in the hope that it will be useful, | ||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
# GNU General Public License for more details. | ||||
# | ||||
# You should have received a copy of the GNU General Public License | ||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
""" | ||||
Mads Kiilerich
|
r5376 | kallithea | ||
~~~~~~~~~ | ||||
Bradley M. Kuhn
|
r4187 | |||
Thomas De Schampheleire
|
r6178 | Kallithea, a web based repository management system. | ||
Versioning implementation: http://www.python.org/dev/peps/pep-0386/ | ||||
Bradley M. Kuhn
|
r4187 | |||
Bradley M. Kuhn
|
r4211 | This file was forked by the Kallithea project in July 2014. | ||
Original author and date, and relevant copyright and licensing information is below: | ||||
Bradley M. Kuhn
|
r4187 | :created_on: Apr 9, 2010 | ||
:author: marcink | ||||
Bradley M. Kuhn
|
r4219 | :copyright: (c) 2013 RhodeCode GmbH, (C) 2014 Bradley M. Kuhn, and others. | ||
Bradley M. Kuhn
|
r4208 | :license: GPLv3, see LICENSE.md for more details. | ||
Bradley M. Kuhn
|
r4187 | """ | ||
Mads Kiilerich
|
r7718 | import platform | ||
Bradley M. Kuhn
|
r4187 | import sys | ||
Mads Kiilerich
|
r7718 | |||
Bradley M. Kuhn
|
r4187 | |||
Mads Kiilerich
|
r8053 | if sys.version_info < (3, 6): | ||
raise Exception('Kallithea requires python 3.6 or later') | ||||
Thomas De Schampheleire
|
r7852 | VERSION = (0, 5, 99) | ||
Bradley M. Kuhn
|
r4187 | BACKENDS = { | ||
'hg': 'Mercurial repository', | ||||
'git': 'Git repository', | ||||
} | ||||
CELERY_ON = False | ||||
CELERY_EAGER = False | ||||
CONFIG = {} | ||||
# Linked module for extensions | ||||
EXTENSIONS = {} | ||||
Mads Kiilerich
|
r6164 | __version__ = '.'.join(str(each) for each in VERSION) | ||
Bradley M. Kuhn
|
r4187 | __platform__ = platform.system() | ||
__license__ = 'GPLv3' | ||||
__py_version__ = sys.version_info | ||||
Bradley M. Kuhn
|
r4211 | __author__ = "Various Authors" | ||
Bradley M. Kuhn
|
r4187 | __url__ = 'https://kallithea-scm.org/' | ||
is_windows = __platform__ in ['Windows'] | ||||
is_unix = not is_windows | ||||