diff --git a/scripts/__init__.py b/scripts/__init__.py deleted file mode 100644 index 1f98303..0000000 --- a/scripts/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Scripts for MCP-Python project.""" diff --git a/scripts/generate_benchmark_badges.py b/scripts/generate_benchmark_badges.py deleted file mode 100644 index 81a3a45..0000000 --- a/scripts/generate_benchmark_badges.py +++ /dev/null @@ -1,45 +0,0 @@ -"""Generate benchmark badges from pytest-benchmark results.""" - -import json -from pathlib import Path - - -def generate_badge(label: str, value: str) -> str: - """Generate a simple SVG badge.""" - # Simple badge template - return f""" - - - {label} - {value} -""" - - -def main() -> None: - """Generate badges from benchmark results.""" - benchmark_file = Path("benchmark.json") - badges_dir = Path(".github/badges") - - if not benchmark_file.exists(): - return - - with benchmark_file.open() as f: - data = json.load(f) - - # Extract average times for each benchmark - for benchmark in data.get("benchmarks", []): - name = benchmark["name"].split("::")[-1] - mean_time = benchmark["stats"]["mean"] - value = f"{mean_time * 1e9:.2f} ns" - - badge_svg = generate_badge(name, value) - badge_path = badges_dir / f"{name}.svg" - - with badge_path.open("w") as f: - f.write(badge_svg) - - -if __name__ == "__main__": - main()