myxce/.kiro/specs/build-time-versioning
Rongsong Shen 7f5c87ce9d
feat(build-time-versioning): xceadmin committed fallback stub and CLI version wiring
Commits a fallback src/xceadmin/src/xceadmin/_build_info.py (GIT_COMMIT/
BUILD_TIME both "unknown") for install paths that never run meson-build.sh
(e.g. `pip install -e .`), and wires click.version_option() on cli.py's
top-level group. cli.py imports _build_info defensively (try/except
ImportError with an inline fallback) and composes the version string from
importlib.metadata.version("xceadmin") plus both build-info fields.

Verified independently by review: editable install shows "unknown" for
both fields with no import error; the meson-built wheel shows real,
matching commit id + build time; full xceadmin suite 261 passed/3 skipped
(258 baseline + 3 new tests); ruff clean.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-20 14:47:20 +00:00
..
design.md feat(build-time-versioning): xcecli --version via Cobra rootCmd.Version 2026-08-20 14:07:38 +00:00
requirements.md docs(build-time-versioning): add spec (requirements, design, research) 2026-08-20 08:29:57 +00:00
research.md feat(build-time-versioning): nix packages compute build time at build phase 2026-08-20 09:32:34 +00:00
spec.json docs(build-time-versioning): add spec (requirements, design, research) 2026-08-20 08:29:57 +00:00
tasks.md feat(build-time-versioning): xceadmin committed fallback stub and CLI version wiring 2026-08-20 14:47:20 +00:00