-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion.py
More file actions
41 lines (32 loc) · 910 Bytes
/
Copy pathversion.py
File metadata and controls
41 lines (32 loc) · 910 Bytes
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
36
37
38
39
40
41
"""
FuzeKeys Version Information
This module contains version information for FuzeKeys following semantic versioning (semver).
"""
__version__ = "1.0.0"
__version_info__ = (1, 0, 0)
# Version components
MAJOR = 1
MINOR = 0
PATCH = 0
# Pre-release and build metadata (optional)
PRERELEASE = None # e.g., "alpha", "beta", "rc.1"
BUILD = None # e.g., "20231215.1"
def get_version():
"""Get the full version string"""
version = f"{MAJOR}.{MINOR}.{PATCH}"
if PRERELEASE:
version += f"-{PRERELEASE}"
if BUILD:
version += f"+{BUILD}"
return version
def get_version_info():
"""Get version information as a dictionary"""
return {
"version": get_version(),
"major": MAJOR,
"minor": MINOR,
"patch": PATCH,
"prerelease": PRERELEASE,
"build": BUILD,
"version_tuple": (MAJOR, MINOR, PATCH)
}