-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathversion.py
More file actions
35 lines (29 loc) · 1.22 KB
/
version.py
File metadata and controls
35 lines (29 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -------------------------------------------------------------------------
#
# Part of the CodeChecker project, under the Apache License v2.0 with
# LLVM Exceptions. See LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# -------------------------------------------------------------------------
"""
This module stores constants that are shared between the CodeChecker server
and client, related to API and other version-specific information.
"""
# The name of the cookie which contains the user's authentication session's
# token.
# DEPRECATED: Session-based authentication will be removed in a future version.
# Use the Authorization header instead.
SESSION_COOKIE_NAME = '__ccPrivilegedAccessToken'
# The newest supported minor version (value) for each supported major version
# (key) in this particular build.
SUPPORTED_VERSIONS = {
6: 70
}
# Used by the client to automatically identify the latest major and minor
# version.
CLIENT_API = \
f'{max(SUPPORTED_VERSIONS.keys())}.' \
f'{SUPPORTED_VERSIONS[max(SUPPORTED_VERSIONS.keys())]}'
def get_version_str():
return ', '.join(f"v{str(major)}.{str(minor)}"
for major, minor in SUPPORTED_VERSIONS.items())