godot-release-dashboard-kit 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Godot Release Dashboard Kit contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: godot-release-dashboard-kit
3
+ Version: 0.1.0
4
+ Summary: Build static release dashboards from Godot Production Toolkit reports.
5
+ Author: Godot Release Dashboard Kit contributors
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/NonniGB/godot-production-toolkit/tree/main/godot-release-dashboard-kit
8
+ Project-URL: Issues, https://github.com/NonniGB/godot-production-toolkit/issues
9
+ Keywords: godot,dashboard,release,qa,gamedev,ci
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Topic :: Software Development :: Quality Assurance
16
+ Classifier: Topic :: Utilities
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Dynamic: license-file
21
+
22
+ # Godot Release Dashboard Kit
23
+
24
+ `godot-release-dashboard-kit` builds a small static dashboard from JSON and
25
+ Markdown reports produced by Godot Production Toolkit commands.
26
+
27
+ It is intentionally simple: point it at a reports folder and it writes a
28
+ self-contained HTML file suitable for a CI artifact or release checklist.
29
+
30
+ ## Install
31
+
32
+ ```powershell
33
+ python -m pip install godot-release-dashboard-kit
34
+ ```
35
+
36
+ From a source checkout:
37
+
38
+ ```powershell
39
+ python -m pip install -e .\godot-release-dashboard-kit
40
+ ```
41
+
42
+ ## Quick Start
43
+
44
+ ```powershell
45
+ godot-release-dashboard build reports\godot-project-doctor --output reports\dashboard.html
46
+ ```
47
+
48
+ Write a machine-readable dashboard summary:
49
+
50
+ ```powershell
51
+ godot-release-dashboard build reports\godot-project-doctor --format json --output reports\dashboard.json
52
+ ```
53
+
54
+ ## Inputs
55
+
56
+ The first release scans a folder recursively for `.json` and `.md` files.
57
+ Toolkit JSON reports are summarized through their `tool`, `kind`, and `summary`
58
+ fields when available.
59
+
60
+ ## Outputs
61
+
62
+ - `html`: self-contained static dashboard.
63
+ - `json`: summary for scripts or later dashboard tooling.
@@ -0,0 +1,42 @@
1
+ # Godot Release Dashboard Kit
2
+
3
+ `godot-release-dashboard-kit` builds a small static dashboard from JSON and
4
+ Markdown reports produced by Godot Production Toolkit commands.
5
+
6
+ It is intentionally simple: point it at a reports folder and it writes a
7
+ self-contained HTML file suitable for a CI artifact or release checklist.
8
+
9
+ ## Install
10
+
11
+ ```powershell
12
+ python -m pip install godot-release-dashboard-kit
13
+ ```
14
+
15
+ From a source checkout:
16
+
17
+ ```powershell
18
+ python -m pip install -e .\godot-release-dashboard-kit
19
+ ```
20
+
21
+ ## Quick Start
22
+
23
+ ```powershell
24
+ godot-release-dashboard build reports\godot-project-doctor --output reports\dashboard.html
25
+ ```
26
+
27
+ Write a machine-readable dashboard summary:
28
+
29
+ ```powershell
30
+ godot-release-dashboard build reports\godot-project-doctor --format json --output reports\dashboard.json
31
+ ```
32
+
33
+ ## Inputs
34
+
35
+ The first release scans a folder recursively for `.json` and `.md` files.
36
+ Toolkit JSON reports are summarized through their `tool`, `kind`, and `summary`
37
+ fields when available.
38
+
39
+ ## Outputs
40
+
41
+ - `html`: self-contained static dashboard.
42
+ - `json`: summary for scripts or later dashboard tooling.
@@ -0,0 +1,37 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "godot-release-dashboard-kit"
7
+ version = "0.1.0"
8
+ description = "Build static release dashboards from Godot Production Toolkit reports."
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = "MIT"
12
+ authors = [{ name = "Godot Release Dashboard Kit contributors" }]
13
+ keywords = ["godot", "dashboard", "release", "qa", "gamedev", "ci"]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Environment :: Console",
17
+ "Intended Audience :: Developers",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Topic :: Software Development :: Quality Assurance",
21
+ "Topic :: Utilities"
22
+ ]
23
+ dependencies = []
24
+
25
+ [project.urls]
26
+ Homepage = "https://github.com/NonniGB/godot-production-toolkit/tree/main/godot-release-dashboard-kit"
27
+ Issues = "https://github.com/NonniGB/godot-production-toolkit/issues"
28
+
29
+ [project.scripts]
30
+ godot-release-dashboard = "godot_release_dashboard_kit.cli:entrypoint"
31
+
32
+ [tool.setuptools.packages.find]
33
+ where = ["src"]
34
+
35
+ [tool.ruff]
36
+ line-length = 100
37
+ target-version = "py311"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """Static release dashboards for Godot toolkit reports."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,5 @@
1
+ from .cli import entrypoint
2
+
3
+
4
+ if __name__ == "__main__":
5
+ entrypoint()
@@ -0,0 +1,40 @@
1
+ from __future__ import annotations
2
+
3
+ import argparse
4
+ from pathlib import Path
5
+ import sys
6
+
7
+ from .dashboard import build_dashboard, render_html, render_json
8
+
9
+ VERSION_LABEL = "godot-release-dashboard 0.1.0"
10
+
11
+
12
+ def main(argv: list[str] | None = None) -> int:
13
+ parser = argparse.ArgumentParser(description="Build a static dashboard from Godot toolkit reports.")
14
+ parser.add_argument("--version", action="version", version=VERSION_LABEL)
15
+ subparsers = parser.add_subparsers(dest="command")
16
+
17
+ build_parser = subparsers.add_parser("build", help="Build a dashboard from a reports directory.")
18
+ build_parser.add_argument("reports_dir")
19
+ build_parser.add_argument("--title", default="Godot Release Dashboard")
20
+ build_parser.add_argument("--format", choices=["html", "json"], default="html")
21
+ build_parser.add_argument("--output", default="release-dashboard.html")
22
+
23
+ args = parser.parse_args(argv)
24
+ if args.command != "build":
25
+ parser.print_help()
26
+ return 2
27
+ dashboard = build_dashboard(Path(args.reports_dir), args.title)
28
+ rendered = render_json(dashboard) if args.format == "json" else render_html(dashboard)
29
+ output = Path(args.output)
30
+ output.parent.mkdir(parents=True, exist_ok=True)
31
+ output.write_text(rendered + "\n", encoding="utf-8")
32
+ return 0
33
+
34
+
35
+ def entrypoint() -> None:
36
+ raise SystemExit(main())
37
+
38
+
39
+ if __name__ == "__main__":
40
+ sys.exit(main())
@@ -0,0 +1,107 @@
1
+ from __future__ import annotations
2
+
3
+ from html import escape
4
+ import json
5
+ from pathlib import Path
6
+ from typing import Any
7
+
8
+ from . import __version__
9
+
10
+
11
+ def build_dashboard(reports_dir: Path, title: str = "Godot Release Dashboard") -> dict[str, Any]:
12
+ reports = [_report_card(path) for path in sorted(reports_dir.rglob("*")) if path.suffix.lower() in {".json", ".md"}]
13
+ summary = {
14
+ "reports": len(reports),
15
+ "errors": sum(int(report.get("errors", 0)) for report in reports),
16
+ "warnings": sum(int(report.get("warnings", 0)) for report in reports),
17
+ }
18
+ return {
19
+ "tool": "godot-release-dashboard-kit",
20
+ "tool_version": __version__,
21
+ "schema_version": "1.0",
22
+ "kind": "release_dashboard",
23
+ "title": title,
24
+ "summary": summary,
25
+ "reports": reports,
26
+ }
27
+
28
+
29
+ def render_html(dashboard: dict[str, Any]) -> str:
30
+ cards = "\n".join(_card(report) for report in dashboard["reports"])
31
+ summary = dashboard["summary"]
32
+ return "\n".join(
33
+ [
34
+ "<!doctype html>",
35
+ "<html lang=\"en\"><head><meta charset=\"utf-8\">",
36
+ f"<title>{escape(str(dashboard['title']))}</title>",
37
+ "<style>body{font-family:system-ui,sans-serif;margin:2rem;color:#172033;background:#f7f8fb}.metrics{display:flex;gap:1rem;flex-wrap:wrap}.metric,.card{background:white;border:1px solid #d8dee9;border-radius:8px;padding:1rem}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-top:1rem}.ok{color:#147d3f}.warn{color:#a15c00}.err{color:#b42318}code{background:#eef2f7;padding:.1rem .3rem;border-radius:4px}</style>",
38
+ "</head><body>",
39
+ f"<h1>{escape(str(dashboard['title']))}</h1>",
40
+ "<div class=\"metrics\">",
41
+ f"<div class=\"metric\">Reports: {summary['reports']}</div>",
42
+ f"<div class=\"metric err\">Errors: {summary['errors']}</div>",
43
+ f"<div class=\"metric warn\">Warnings: {summary['warnings']}</div>",
44
+ "</div>",
45
+ "<div class=\"grid\">",
46
+ cards or "<p>No JSON or Markdown reports found.</p>",
47
+ "</div></body></html>",
48
+ ]
49
+ )
50
+
51
+
52
+ def render_json(dashboard: dict[str, Any]) -> str:
53
+ return json.dumps(dashboard, indent=2, sort_keys=True)
54
+
55
+
56
+ def _report_card(path: Path) -> dict[str, Any]:
57
+ if path.suffix.lower() == ".json":
58
+ return _json_card(path)
59
+ text = path.read_text(encoding="utf-8", errors="ignore")
60
+ return {
61
+ "path": path.as_posix(),
62
+ "tool": path.stem,
63
+ "kind": "markdown",
64
+ "errors": text.lower().count("error"),
65
+ "warnings": text.lower().count("warning"),
66
+ "summary": text.splitlines()[0] if text.splitlines() else path.name,
67
+ }
68
+
69
+
70
+ def _json_card(path: Path) -> dict[str, Any]:
71
+ try:
72
+ data = json.loads(path.read_text(encoding="utf-8"))
73
+ except json.JSONDecodeError as exc:
74
+ return {
75
+ "path": path.as_posix(),
76
+ "tool": path.stem,
77
+ "kind": "json",
78
+ "errors": 1,
79
+ "warnings": 0,
80
+ "summary": f"Unreadable JSON: {exc}",
81
+ }
82
+ summary = data.get("summary", {}) if isinstance(data, dict) else {}
83
+ return {
84
+ "path": path.as_posix(),
85
+ "tool": str(data.get("tool") or data.get("name") or path.stem) if isinstance(data, dict) else path.stem,
86
+ "kind": str(data.get("kind", "json")) if isinstance(data, dict) else "json",
87
+ "errors": int(summary.get("errors", summary.get("error_count", 0))) if isinstance(summary, dict) else 0,
88
+ "warnings": int(summary.get("warnings", summary.get("warning_count", 0))) if isinstance(summary, dict) else 0,
89
+ "summary": _summary_text(summary),
90
+ }
91
+
92
+
93
+ def _summary_text(summary: object) -> str:
94
+ if not isinstance(summary, dict):
95
+ return ""
96
+ parts = [f"{key}: {value}" for key, value in sorted(summary.items()) if isinstance(value, (str, int, float))]
97
+ return ", ".join(parts[:5])
98
+
99
+
100
+ def _card(report: dict[str, Any]) -> str:
101
+ level = "err" if int(report["errors"]) else "warn" if int(report["warnings"]) else "ok"
102
+ return (
103
+ f"<section class=\"card\"><h2>{escape(str(report['tool']))}</h2>"
104
+ f"<p><code>{escape(str(report['path']))}</code></p>"
105
+ f"<p class=\"{level}\">Errors: {report['errors']} | Warnings: {report['warnings']}</p>"
106
+ f"<p>{escape(str(report.get('summary', '')))}</p></section>"
107
+ )
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: godot-release-dashboard-kit
3
+ Version: 0.1.0
4
+ Summary: Build static release dashboards from Godot Production Toolkit reports.
5
+ Author: Godot Release Dashboard Kit contributors
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/NonniGB/godot-production-toolkit/tree/main/godot-release-dashboard-kit
8
+ Project-URL: Issues, https://github.com/NonniGB/godot-production-toolkit/issues
9
+ Keywords: godot,dashboard,release,qa,gamedev,ci
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Topic :: Software Development :: Quality Assurance
16
+ Classifier: Topic :: Utilities
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Dynamic: license-file
21
+
22
+ # Godot Release Dashboard Kit
23
+
24
+ `godot-release-dashboard-kit` builds a small static dashboard from JSON and
25
+ Markdown reports produced by Godot Production Toolkit commands.
26
+
27
+ It is intentionally simple: point it at a reports folder and it writes a
28
+ self-contained HTML file suitable for a CI artifact or release checklist.
29
+
30
+ ## Install
31
+
32
+ ```powershell
33
+ python -m pip install godot-release-dashboard-kit
34
+ ```
35
+
36
+ From a source checkout:
37
+
38
+ ```powershell
39
+ python -m pip install -e .\godot-release-dashboard-kit
40
+ ```
41
+
42
+ ## Quick Start
43
+
44
+ ```powershell
45
+ godot-release-dashboard build reports\godot-project-doctor --output reports\dashboard.html
46
+ ```
47
+
48
+ Write a machine-readable dashboard summary:
49
+
50
+ ```powershell
51
+ godot-release-dashboard build reports\godot-project-doctor --format json --output reports\dashboard.json
52
+ ```
53
+
54
+ ## Inputs
55
+
56
+ The first release scans a folder recursively for `.json` and `.md` files.
57
+ Toolkit JSON reports are summarized through their `tool`, `kind`, and `summary`
58
+ fields when available.
59
+
60
+ ## Outputs
61
+
62
+ - `html`: self-contained static dashboard.
63
+ - `json`: summary for scripts or later dashboard tooling.
@@ -0,0 +1,13 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/godot_release_dashboard_kit/__init__.py
5
+ src/godot_release_dashboard_kit/__main__.py
6
+ src/godot_release_dashboard_kit/cli.py
7
+ src/godot_release_dashboard_kit/dashboard.py
8
+ src/godot_release_dashboard_kit.egg-info/PKG-INFO
9
+ src/godot_release_dashboard_kit.egg-info/SOURCES.txt
10
+ src/godot_release_dashboard_kit.egg-info/dependency_links.txt
11
+ src/godot_release_dashboard_kit.egg-info/entry_points.txt
12
+ src/godot_release_dashboard_kit.egg-info/top_level.txt
13
+ tests/test_release_dashboard.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ godot-release-dashboard = godot_release_dashboard_kit.cli:entrypoint
@@ -0,0 +1,51 @@
1
+ from __future__ import annotations
2
+
3
+ import json
4
+ from pathlib import Path
5
+ import sys
6
+ import tempfile
7
+ import unittest
8
+
9
+ sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src"))
10
+
11
+ from godot_release_dashboard_kit.cli import main
12
+
13
+
14
+ class ReleaseDashboardTests(unittest.TestCase):
15
+ def test_builds_html_dashboard(self) -> None:
16
+ with tempfile.TemporaryDirectory() as tmp:
17
+ root = Path(tmp)
18
+ reports = root / "reports"
19
+ reports.mkdir()
20
+ (reports / "export.json").write_text(
21
+ json.dumps({"tool": "godot-export-doctor", "summary": {"errors": 1, "warnings": 2}}),
22
+ encoding="utf-8",
23
+ )
24
+ output = root / "dashboard.html"
25
+
26
+ exit_code = main(["build", str(reports), "--output", str(output)])
27
+
28
+ html = output.read_text(encoding="utf-8")
29
+ self.assertEqual(exit_code, 0)
30
+ self.assertIn("Godot Release Dashboard", html)
31
+ self.assertIn("godot-export-doctor", html)
32
+ self.assertIn("Errors: 1", html)
33
+
34
+ def test_builds_json_dashboard(self) -> None:
35
+ with tempfile.TemporaryDirectory() as tmp:
36
+ root = Path(tmp)
37
+ reports = root / "reports"
38
+ reports.mkdir()
39
+ (reports / "notes.md").write_text("# Notes\n\nwarning: check this", encoding="utf-8")
40
+ output = root / "dashboard.json"
41
+
42
+ exit_code = main(["build", str(reports), "--format", "json", "--output", str(output)])
43
+
44
+ data = json.loads(output.read_text(encoding="utf-8"))
45
+ self.assertEqual(exit_code, 0)
46
+ self.assertEqual(data["tool_version"], "0.1.0")
47
+ self.assertEqual(data["summary"]["reports"], 1)
48
+
49
+
50
+ if __name__ == "__main__":
51
+ unittest.main()