Debian Codegraph @

ipapython/version.py.in

raw
1 # Authors: Rob Crittenden <[email protected]>
2 #
3 # Copyright (C) 2007 Red Hat
4 # see file 'COPYING' for use and warranty information
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #
19
20 from packaging.version import parse as parse_version
21
22 # The full version including strings
23 VERSION = "@VERSION@"
24
25 # A fuller version including the vendor tag (e.g. 3.3.3-34.fc20)
26 VENDOR_VERSION = "@VERSION@@VENDOR_SUFFIX@"
27
28
29 # Just the numeric portion of the version so one can do direct numeric
30 # comparisons to see if the API is compatible.
31 #
32 # How NUM_VERSION was generated changed over time:
33 # Before IPA 3.1.3, it was simply concatenated decimal numbers:
34 # IPA 2.2.2: NUM_VERSION=222
35 # IPA 2.2.99: NUM_VERSION=2299 (development version)
36 # IPA 3.1.0: NUM_VERSION=310
37 # IPA 3.1.3: NUM_VERSION=313
38 # In IPA 3.1.4 and 3.2.0, the version was taken as an octal number due to a bug
39 # (https://fedorahosted.org/freeipa/ticket/3622):
40 # IPA 3.1.4: NUM_VERSION=12356 (octal 030104)
41 # IPA 3.2.0: NUM_VERSION=12416 (octal 030200)
42 # After IPA 3.2.0, it is decimal number where each part has two digits:
43 # IPA 3.2.1: NUM_VERSION=30201
44 # IPA 3.2.99: NUM_VERSION=30299 (development version)
45 # IPA 3.3.0: NUM_VERSION=30300
46 NUM_VERSION = @NUM_VERSION@
47
48
49 # The version of the API.
50 API_VERSION = "@API_VERSION@"
51
52
53 DEFAULT_PLUGINS = frozenset(l.strip() for l in """
54 @DEFAULT_PLUGINS@
55 """.strip().splitlines())
56
57 KRB5_BUILD_VERSION = parse_version("@KRB5_BUILD_VERSION@")