versioning

This commit is contained in:
2025-12-14 23:26:39 -05:00
parent 68a4f1800c
commit 0af9ac9c92

View File

@@ -2,11 +2,11 @@
# file: config/version.py # file: config/version.py
import os import os
BASE_VERSION = "1.0.0" # update manually when releasing features BASE_VERSION = "1.0.1" # update manually when releasing features
def get_full_version() -> str: def get_full_version() -> str:
""" """
Return semantic version with optional Jenkins build metadata, e.g. 1.2.3+build.456. Return semantic version with optional Jenkins build metadata, e.g. 1.2.3-456.
""" """
build = os.environ.get("BUILD_NUMBER") or os.environ.get("APP_BUILD") build = os.environ.get("BUILD_NUMBER") or os.environ.get("APP_BUILD")
return f"{BASE_VERSION}+build.{build}" if build else BASE_VERSION return f"{BASE_VERSION}-{build}" if build else BASE_VERSION