Draft
Display application version in footer using uv-dynamic-versioning#52
Conversation
- Import get_version() function from __init__.py
- Inject APP_VERSION into Flask template context
- Display version in footer as "Malla v{version}"
- Update /health and /info endpoints to use get_version()
- Add get_version() function that returns git commit hash or falls back to package version
- Update integration tests to verify version is displayed correctly
- All tests pass (44 unit, 183 integration)
Co-authored-by: zenitraM <863975+zenitraM@users.noreply.github.com>
- Add uv-dynamic-versioning to build-system requirements - Configure uv-dynamic-versioning in pyproject.toml with PEP440 style - Generate _version.py file automatically during build with version info - Simplify __init__.py to import version from _version.py - Remove manual git subprocess calls - now handled by uv-dynamic-versioning - Add _version.py to .gitignore (auto-generated file) - Configure fallback version for non-git environments (PyPI installs) - All tests pass (44 unit + 183 integration) - Version now follows PEP440: 0.0.0.post3.dev0+60259be.dirty Co-authored-by: zenitraM <863975+zenitraM@users.noreply.github.com>
Co-authored-by: zenitraM <863975+zenitraM@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add version display at the bottom of pages
Display application version in footer using uv-dynamic-versioning
Dec 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds version display to page footers for the rolling release model. Uses
uv-dynamic-versioningto automatically generate version strings from git metadata.Changes
Version Display
Powered by Malla v{version}on all pages via template context injection/healthand/infoendpoints return dynamic versionBuild System
uv-dynamic-versioningfor automatic version management0.0.0.post3.dev0+abc1234.dirtysrc/malla/_version.pyduring build via Hatch hook0.1.0for non-git environments (PyPI installs)Implementation
Removed manual subprocess git calls in favor of build-time version generation. Check version with
uvx uv-dynamic-versioning.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.