Skip to content

Commit 4436a63

Browse files
committed
chore: add developer attribution to HTML footers, startup banner, and OCI labels; add release make target
1 parent 1a84cf3 commit 4436a63

4 files changed

Lines changed: 20 additions & 5 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ COPY . .
1616
LABEL org.opencontainers.image.title="SQLumAI" \
1717
org.opencontainers.image.description="AI-powered SQL Server proxy and data quality assistant" \
1818
org.opencontainers.image.version=${VERSION} \
19+
org.opencontainers.image.authors="Johan Caripson" \
20+
org.opencontainers.image.vendor="Johan Caripson" \
1921
org.opencontainers.image.licenses="MIT" \
2022
org.opencontainers.image.source="https://github.com/Caripson/SQLumAI"
2123

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ SHELL := /bin/bash
33
PY ?= python3
44
PIP ?= pip3
55

6-
.PHONY: help setup dev test fmt lint coverage clean clean-all clean-reports clean-metrics version bump-version tag-release
6+
.PHONY: help setup dev test fmt lint coverage clean clean-all clean-reports clean-metrics version bump-version tag-release release
77

88
help: ## Show common targets
99
@echo "Targets: setup, dev, test, test-85, test-90, fmt, lint, coverage, validate-rules, report-dryrun, simulate, docs-serve, llm-pull, integration-up, integration-up-ci, integration-down, metrics-up, metrics-down, clean, clean-all"
10-
@echo "Version: version, bump-version NEW=x.y.z, tag-release"
10+
@echo "Version: version, bump-version NEW=x.y.z, tag-release, release NEW=x.y.z"
1111

1212
setup: ## Install dependencies across supported stacks
1313
@echo "[setup] Installing dependencies (best-effort)..."
@@ -177,3 +177,9 @@ tag-release: ## Create and push git tag v<version> from src/version.py
177177
@v=$$($(PY) -c 'from src.version import __version__; print(__version__)'); \
178178
echo "Tagging v$$v"; \
179179
git tag -a v$$v -m "v$$v" && git push origin v$$v
180+
181+
# Usage: make release NEW=0.1.1 – bump version and tag
182+
release: ## Bump version and create tag v<version>
183+
@if [ -z "$(NEW)" ]; then echo "Usage: make release NEW=x.y.z"; exit 1; fi
184+
$(MAKE) bump-version NEW=$(NEW)
185+
$(MAKE) tag-release

src/api.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def metrics_html(limit: int = 50):
164164
{rows}
165165
</table>
166166
<hr/>
167-
<p style="color:#666;font-size:12px;">SQLumAI version {__version__}</p>
167+
<p style="color:#666;font-size:12px;">SQLumAI version {__version__}. Developed by Johan Caripson.</p>
168168
</body></html>
169169
"""
170170
return html
@@ -214,7 +214,12 @@ def insights_html():
214214
else:
215215
lines.append(f"<p>{html.escape(ln)}</p>")
216216
body = "\n".join(lines)
217-
html_doc = f"<html><body>{body}<hr/><p><a href='/rules'>Rules</a></p></body></html>"
217+
html_doc = (
218+
f"<html><body>{body}<hr/>"
219+
f"<p style=\"color:#666;font-size:12px;\">SQLumAI version {__version__}. Developed by Johan Caripson.</p>"
220+
f"<p><a href='/rules'>Rules</a></p>"
221+
f"</body></html>"
222+
)
218223
return Response(content=html_doc, media_type="text/html")
219224

220225

@@ -252,6 +257,8 @@ def dryrun_html(rule: str | None = None, action: str | None = None, date: str |
252257
<tr><th>Rule</th><th>Counts by Action</th></tr>
253258
{rows}
254259
</table>
260+
<hr/>
261+
<p style="color:#666;font-size:12px;">SQLumAI version {__version__}. Developed by Johan Caripson.</p>
255262
</body></html>
256263
"""
257264
return html

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
async def main() -> None:
1818
load_dotenv()
1919
# Startup log with version for visibility
20-
print(f"[sqlumai] starting version {__version__}")
20+
print(f"[sqlumai] starting version {__version__} – Developed by Johan Caripson")
2121
listen_host = os.getenv("PROXY_LISTEN_ADDR", "0.0.0.0")
2222
listen_port = int(os.getenv("PROXY_LISTEN_PORT", "61433"))
2323
sql_host = os.getenv("SQL_HOST", "localhost")

0 commit comments

Comments
 (0)