22 lines
554 B
Python
22 lines
554 B
Python
from __future__ import annotations
|
|
|
|
import os
|
|
import platform
|
|
from datetime import UTC, datetime
|
|
|
|
from . import __version__
|
|
|
|
|
|
def build_info() -> dict[str, str]:
|
|
return {
|
|
"name": "Importarr",
|
|
"version": os.getenv("IMPORTARR_VERSION", __version__),
|
|
"build_date": os.getenv("IMPORTARR_BUILD_DATE", "development"),
|
|
"git_sha": os.getenv("IMPORTARR_GIT_SHA", "development"),
|
|
"python": platform.python_version(),
|
|
"started_at": STARTED_AT,
|
|
}
|
|
|
|
|
|
STARTED_AT = datetime.now(UTC).isoformat(timespec="seconds")
|