The agent that turns websites into APIs!
#!/bin/bash
# Clean build script - removes all build artifacts and caches before building
set -e # Exit on error
echo "π§Ή Cleaning build artifacts..."
# Remove Python cache files
echo " β Removing __pycache__ directories..."
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true
find . -type f -name "*.pyo" -delete 2>/dev/null || true
# Remove build directories
echo " β Removing build directories..."
rm -rf dist/ build/ *.egg-info src/*.egg-info 2>/dev/null || true
# Remove any .pyc files in src
echo " β Removing compiled Python files in src/..."
find src -type f -name "*.pyc" -delete 2>/dev/null || true
echo "β
Clean complete!"
echo ""
echo "ποΈ Building package..."
uv build
echo ""
echo "β
Build complete!"
echo ""
echo "π¦ Built files:"
ls -lh dist/