-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·36 lines (27 loc) · 926 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·36 lines (27 loc) · 926 Bytes
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
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT_DIR"
echo "Building OmniClaw release artifacts..."
if ! command -v uv >/dev/null 2>&1; then
echo "Error: uv is required to run build.sh"
echo "Install it from https://docs.astral.sh/uv/"
exit 1
fi
echo "Cleaning previous build artifacts..."
rm -rf dist build .pytest_cache
find . -maxdepth 2 -type d \( -name "*.egg-info" -o -name "*.dist-info" \) -prune -exec rm -rf {} +
echo "Running release-oriented SDK checks..."
uv run pytest tests/test_setup.py tests/test_payment_intents.py tests/test_client.py tests/test_webhook_verification.py
echo "Building sdist and wheel..."
uv build
echo "Validating package metadata..."
uv run twine check dist/*
echo
echo "Build complete."
echo "Artifacts:"
ls -1 dist
echo
echo "Next:"
echo " 1. Inspect dist/"
echo " 2. Upload with: uv run twine upload dist/*"