-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathversion.py
More file actions
29 lines (24 loc) · 866 Bytes
/
version.py
File metadata and controls
29 lines (24 loc) · 866 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
"""
Version information for the KP Dashboard application.
This file is updated with each release.
"""
import os
from datetime import datetime
# Default version information
VERSION = "2.2.0"
VERSION_NAME = "AI 2.2.0"
BUILD_DATE = "2025-03-09"
# Check for environment variables that might override the version
# This is useful for CI/CD pipelines like GitHub Actions
if os.environ.get("CI_VERSION"):
VERSION = os.environ.get("CI_VERSION")
# If this is a development build, add the development tag
if "-dev" in VERSION:
VERSION_NAME = f"AI {VERSION} - Development Build"
BUILD_DATE = datetime.now().strftime("%Y-%m-%d")
# GitHub repository information
GITHUB_REPO_OWNER = "cryptekbits"
GITHUB_REPO_NAME = "KPAstroDashboard"
# Function to determine if this is a development version
def is_dev_version():
return "-dev" in VERSION