-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion.py
More file actions
31 lines (26 loc) · 881 Bytes
/
version.py
File metadata and controls
31 lines (26 loc) · 881 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
"""
Version configuration for Web Style Extractor
"""
__version__ = "1.2.0"
__release_status__ = "stable" # options: alpha, beta, rc, stable
__build_date__ = "2025-09-03"
def get_version_string():
"""Get formatted version string"""
return f"v{__version__}"
def get_full_version_info():
"""Get complete version information"""
return {
'version': __version__,
'status': __release_status__,
'build_date': __build_date__,
'display_name': f"Web Style Extractor v{__version__}"
}
def is_stable():
"""Check if this is a stable release"""
return __release_status__ == "stable"
def get_display_name():
"""Get display name for the application"""
if __release_status__ == "stable":
return f"Web Style Extractor v{__version__}"
else:
return f"Web Style Extractor v{__version__}-{__release_status__}"