-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
107 lines (87 loc) · 2.5 KB
/
Copy pathMakefile
File metadata and controls
107 lines (87 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# PomPom-A2A Development Makefile
.PHONY: help install install-dev test test-cov lint format type-check clean build publish docs serve-docs
# Default target
help:
@echo "🍮 PomPom-A2A Development Commands"
@echo ""
@echo "Setup:"
@echo " install Install package in production mode"
@echo " install-dev Install package in development mode with dev dependencies"
@echo ""
@echo "Development:"
@echo " test Run tests"
@echo " test-cov Run tests with coverage report"
@echo " lint Run linting (ruff)"
@echo " format Format code (black + isort)"
@echo " type-check Run type checking (mypy)"
@echo " check Run all checks (lint + format + type-check)"
@echo ""
@echo "Examples:"
@echo " run-echo Start the echo agent"
@echo " run-client Run client examples"
@echo ""
@echo "Build & Publish:"
@echo " clean Clean build artifacts"
@echo " build Build package"
@echo " publish Publish to PyPI (requires PYPI_TOKEN)"
@echo ""
@echo "Documentation:"
@echo " docs Build documentation"
@echo " serve-docs Serve documentation locally"
# Installation
install:
pip install .
install-dev:
pip install -e ".[dev]"
# Testing
test:
pytest
test-cov:
pytest --cov=src/pompompurin_a2a --cov-report=html --cov-report=term-missing
# Code Quality
lint:
ruff check src/ tests/ samples/
format:
black src/ tests/ samples/
isort src/ tests/ samples/
type-check:
mypy src/
check: lint format type-check
@echo "✅ All checks passed!"
# Examples
run-echo:
python samples/echo_agent/main.py
run-client:
python samples/client_examples/basic_client.py
# Build & Publish
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
find . -type d -name __pycache__ -delete
find . -type f -name "*.pyc" -delete
build: clean
python -m build
publish: build
twine upload dist/*
# Documentation
docs:
@echo "📚 Building documentation..."
@echo "Documentation will be available in the README.md"
serve-docs:
@echo "📖 Serving documentation..."
@echo "Open http://localhost:8000 to view the README"
python -m http.server 8000
# Development helpers
setup: install-dev
@echo "🍮 PomPom-A2A development environment ready!"
@echo ""
@echo "Next steps:"
@echo " make test # Run tests"
@echo " make run-echo # Start echo agent"
@echo " make run-client # Test client"
# CI/CD helpers
ci-test: install-dev lint type-check test
# Quick development cycle
dev: format lint type-check test
@echo "🚀 Development cycle complete!"