You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by gs...@apache.org on 2026/08/12 19:41:06 UTC

(tooling-llmao) branch main updated: add clone commit hash into the footer, using dunamai

This is an automated email from the ASF dual-hosted git repository.

gstein pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-llmao.git


The following commit(s) were added to refs/heads/main by this push:
     new d6f7fe1  add clone commit hash into the footer, using dunamai
d6f7fe1 is described below

commit d6f7fe17772468d560bdd486a31bf3d1acdfe750
Author: Greg Stein <gs...@gmail.com>
AuthorDate: Wed Aug 12 14:40:56 2026 -0500

    add clone commit hash into the footer, using dunamai
---
 pages.py             |  7 +++++++
 pyproject.toml       |  1 +
 templates/footer.ezt |  4 ++++
 uv.lock              | 14 ++++++++++++++
 4 files changed, 26 insertions(+)

diff --git a/pages.py b/pages.py
index 882895c..fcaa917 100644
--- a/pages.py
+++ b/pages.py
@@ -27,6 +27,7 @@ import asfquart.session
 import asfquart.utils
 import quart
 from easydict import EasyDict as edict
+from dunamai import Version
 
 from llmao.auth import current_identity
 from llmao.litellm_client import BackendUnavailable, KeyInfo
@@ -39,6 +40,8 @@ THIS_DIR = pathlib.Path(__file__).resolve().parent
 TEMPLATES = THIS_DIR / "templates"
 STATICDIR = THIS_DIR / "static"
 
+REPO_URL = "https://github.com/apache/tooling-llmao"
+
 
 def _render(template_name: str, data) -> str:
     return asfquart.utils.render(APP.load_template(TEMPLATES / template_name), data)
@@ -99,6 +102,10 @@ async def basic_info() -> edict:
         basic.can_create_automation = False
         basic.admin_projects = []
 
+    version = Version.from_git()
+    basic.commit = version.commit
+    basic.repo = REPO_URL
+
     return basic
 
 
diff --git a/pyproject.toml b/pyproject.toml
index 015ee21..b661793 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -11,6 +11,7 @@ dependencies = [
     "litellm[proxy,extra-proxy]",  # proxy stack + prisma (DB client)
     "PyYAML>=6.0.1",  # model_list.yaml / config loading
     "easydict>=1.13",  # APP.cfg dotted access / tests
+    "dunamai>=1.26.0",
 ]
 
 [dependency-groups]
diff --git a/templates/footer.ezt b/templates/footer.ezt
index 5cdaa9a..c8bb0aa 100644
--- a/templates/footer.ezt
+++ b/templates/footer.ezt
@@ -3,6 +3,10 @@
         <p class="text-muted mb-0 small">
             Apache llmao — gateway seam for ASF LiteLLM access.
         </p>
+        <p class="text-muted mb-0 small">
+            See <a href="[repo]">the webapp source</a>; running on
+            <a href="[repo]/commit/[commit]">[commit]</a>
+        </p>
     </div>
 </footer>
 
diff --git a/uv.lock b/uv.lock
index 3046c35..37039da 100644
--- a/uv.lock
+++ b/uv.lock
@@ -609,6 +609,18 @@ wheels = [
     { url = "https://files.pythonhosted.org/packages/ba/5a/18ad964b0086c6e62e2e7500f7edc89e3faa45033c71c1893d34eed2b2de/dnspython-2.8.0-py3-none-any.whl", hash = "sha256:01d9bbc4a2d76bf0db7c1f729812ded6d912bd318d3b1cf81d30c0f845dbf3af", size = 331094, upload-time = "2025-09-07T18:57:58.071Z" },
 ]
 
+[[package]]
+name = "dunamai"
+version = "1.26.2"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+    { name = "packaging" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/12/18/020d3b27a10450ddb11429f637404e8ea67ecf4d9fd999d4f1d553f25506/dunamai-1.26.2.tar.gz", hash = "sha256:84ea45eddf9bb4b40df7610b1b22a03137365e6257dbf9d7b72128fdccca564c", size = 46536, upload-time = "2026-08-02T03:32:50.276Z" }
+wheels = [
+    { url = "https://files.pythonhosted.org/packages/f0/31/2aaabe7d03f395c7b6d955f09a4d1440a2c49920abea42fde88cacc2ef97/dunamai-1.26.2-py3-none-any.whl", hash = "sha256:4234be3a90c3ec13ecf75d94a2248068e5a3018e8112892fcd9f3a1f287c9c32", size = 27478, upload-time = "2026-08-02T03:32:49.348Z" },
+]
+
 [[package]]
 name = "easydict"
 version = "1.13"
@@ -1470,6 +1482,7 @@ version = "0.1.0"
 source = { editable = "." }
 dependencies = [
     { name = "asfquart" },
+    { name = "dunamai" },
     { name = "easydict" },
     { name = "httpx" },
     { name = "litellm", extra = ["extra-proxy", "proxy"] },
@@ -1485,6 +1498,7 @@ dev = [
 [package.metadata]
 requires-dist = [
     { name = "asfquart" },
+    { name = "dunamai", specifier = ">=1.26.0" },
     { name = "easydict", specifier = ">=1.13" },
     { name = "httpx", specifier = ">=0.27" },
     { name = "litellm", extras = ["proxy", "extra-proxy"] },


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org