Skip to content

Resolve splash version from installed package metadata - #4

Merged
overthelex merged 1 commit into
masterfrom
feat/splash-runtime-version
Apr 18, 2026
Merged

Resolve splash version from installed package metadata#4
overthelex merged 1 commit into
masterfrom
feat/splash-runtime-version

Conversation

@overthelex

Copy link
Copy Markdown
Owner

Summary

  • Splash now reads the actual installed version via importlib.metadata.version("aisisstant") at startup, so pip/source installs stop showing the stale hardcoded constant.
  • Re-applies CalVer zero-padding (PEP 440 normalizes 2026.04.182026.4.18; we want the padded form on the UI).
  • Keeps _BUNDLED_VERSION as a fallback; CI now patches that name instead of VERSION.

Test plan

  • Full pytest suite passes (167/167)
  • CI sed pattern dry-run replaces _BUNDLED_VERSION correctly
  • Next release builds a .deb whose splash shows the new tag
  • Launch aisisstant-setup --wizard on the installed pip version and confirm splash shows VERSION 2026.04.18.1 (current latest), not 2026.04.16

The splash screen's VERSION constant was a hardcoded string, patched by
CI only while building the .deb. Pip and source installs therefore kept
showing 2026.04.16 long after newer releases shipped.

VERSION is now computed at startup from importlib.metadata, with a
_BUNDLED_VERSION fallback preserved for environments where the package
is not registered (editable/dev runs). CalVer zero-padding is reapplied
so the splash reads 2026.04.18 rather than the PEP 440 normalized
2026.4.18. CI now patches _BUNDLED_VERSION instead of VERSION.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@overthelex
overthelex merged commit 1cbf373 into master Apr 18, 2026
3 checks passed
@overthelex
overthelex deleted the feat/splash-runtime-version branch April 18, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant