-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathversion.py
More file actions
31 lines (26 loc) · 716 Bytes
/
Copy pathversion.py
File metadata and controls
31 lines (26 loc) · 716 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
#!/usr/bin/env python3
"""
Version management for IdleOutpostClaimer
"""
# Current version of the application
__version__ = "1.0.11"
def get_version():
"""
Get the current version string
Returns:
str: Current version number
"""
return __version__
def get_version_info():
"""
Get detailed version information
Returns:
dict: Version information including major, minor, and patch numbers
"""
parts = __version__.split('.')
return {
'major': int(parts[0]) if len(parts) > 0 else 0,
'minor': int(parts[1]) if len(parts) > 1 else 0,
'patch': int(parts[2]) if len(parts) > 2 else 0,
'version_string': __version__
}